Hello,
I am trying to set up a conditional order to buy or sell when price closes above or below a moving average, but I can't get it to work correctly. For example, I set up the following study condition for a 15 minute chart in the order rules section:
AUD/JPY '(price=bid);close is greater than MovAvgExponential("length"=21)."AvgExp";15m' IS TRUE.
However, the order is filled when price only prints above/below the moving average, instead of when the candle closes. What am I doing wrong? Should it be "close crosses above" instead, or...?
I am trying to set up a conditional order to buy or sell when price closes above or below a moving average, but I can't get it to work correctly. For example, I set up the following study condition for a 15 minute chart in the order rules section:
AUD/JPY '(price=bid);close is greater than MovAvgExponential("length"=21)."AvgExp";15m' IS TRUE.
However, the order is filled when price only prints above/below the moving average, instead of when the candle closes. What am I doing wrong? Should it be "close crosses above" instead, or...?