Hello Everyone,
I am trying to build a study that alerts me once a 10 min candle closes below 13EMA and opens a new candle.
I built the below script, but it's not working as expected.
When the price is above 13 EMA I am using this script in my alert to trigger when price closes below 13EMA
close from 1 bars ago is less than MovAvgExponential("length" = 13)."AvgExp" and open is less than MovAvgExponential("length" = 13)."AvgExp"
And when the price is below 13 EMA I am using this script in my alert to trigger when price closes above 13EMA
close from 1 bars ago is greater than MovAvgExponential("length" = 13)."AvgExp" and open is greater than MovAvgExponential("length" = 13)."AvgExp"
Interesting part is this is working when I am back testing and not working when I am live trading,
Can someone please help me with this script?
I am trying to build a study that alerts me once a 10 min candle closes below 13EMA and opens a new candle.
I built the below script, but it's not working as expected.
When the price is above 13 EMA I am using this script in my alert to trigger when price closes below 13EMA
close from 1 bars ago is less than MovAvgExponential("length" = 13)."AvgExp" and open is less than MovAvgExponential("length" = 13)."AvgExp"
And when the price is below 13 EMA I am using this script in my alert to trigger when price closes above 13EMA
close from 1 bars ago is greater than MovAvgExponential("length" = 13)."AvgExp" and open is greater than MovAvgExponential("length" = 13)."AvgExp"
Interesting part is this is working when I am back testing and not working when I am live trading,
Can someone please help me with this script?