I have been trying to code an ATR based stop loss, but so far I have not been able to do it. I am now wondering if it is possible at all.
Basically, I just want that, after the conditions are met, the order is open and its stop loss is also created according to the value of 3 times the ATR.
Stop Loss ATR
1
2
3
4
5
6
7
Condition1=Close[1]>Average[24]
IFCondition1THENBUY1CONTRACTSATMARKETEndif
X=(AverageTrueRange[10](close))*3
SET STOPLOSSX
I tryed this and it did not work out:Anybody has any ideas?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.