Is there a way to call an entry bar ?
Context: I want to send in a fixed Stop Loss order when I enter a trade.
I use the SetStopLoss( ) in the OnBarUpdate method.
The problem is that with every new OnBarUpdate iteration,the stop loss value changes..
For example.... SetStopLoss(Close[1] + ATR(14))
With every new OnBarUpdate iteration, close and ATRs values change and this changes the stop price
Therefore, to remedy this.. I'd like something like SetStopLoss(EntryBar + ATRofEntryBar);
that would ensure that my stop loss value stays the same..
Is this possible ?
Is there a better way to fix a stop loss ?
Comment