Hello at all
I would like to know if it is possible to add an atr stop loss at time for my strategy
example after my entry day for 5 days use stop loss atr
after a different stop loss
thx
Stop Loss a days
Re: Stop Loss a days
Yes, it can be done. You must use some fancy date arithmetic that takes into account the weekends and the holidays.
If Date < LastDateOf5 Then
SetstopLoss(ATR(5))
Else
SetstopLoss(500);
You must create a function that will determine the LastDateOf5 based on the CurrentDate.
If Date < LastDateOf5 Then
SetstopLoss(ATR(5))
Else
SetstopLoss(500);
You must create a function that will determine the LastDateOf5 based on the CurrentDate.