I have created a strategy that enters the market based on MACD cross signal if the price is above/below a few moving averages.
Now, for the SL/TP I would like to use ATR value (1.5 ATR for the stoploss and 3 ATR for the profit target).
For example, my '1 Set' is the conditions to enter SHORT,
Then in 'Do the following' I have 'Enter Short' and for the SL/TP
I have created variables: 'StopLossPrice' and 'TakeProfitPrice', where I am setting the SL/TP prices with the relevant offset from the last 'Close price' based on the ATR.
Then in '2 Set' conditions if 'current market position is short',
Do the following 'Exit short stop market' = 'StopLossPrice' from above and
'Exit short limit' = 'TakeProfitPrice' also from above.
Then when I am testing it, it looks not accurate. What am I doing wrong?
Thanks, Ilya.
Comment