I have a strategy that i want to create a stop loss for. The stop loss should be created by looking at an indicator at the entry time, and then fixing this value.
I use
double StopPts = Bollinger(BarsArray[0],StopRatio, BollDays).Upper[0]
i need the [0] to always represent the entry bar. As you see i use bars array. I enter on 5min data and exit on 1min.
I've tried
double StopPts = Bollinger(BarsArray[0],StopRatio, BollDays).Upper[BarssinceEntry()]
It compiles, but i get a multi time frame error
**NT** Error on calling 'OnBarUpdate' method for strategy 'BollRSIStopRatio/5505b53c30d04cf986f58b2788a7129c': You must use the overload that has a 'BarsInProgress' parameter when calling the BarsSinceEntry() method in the context of a multi-time frame and instrument strategy.
I need to either fix the BarsSinceEntry, or know how to "Special Paste" (I'm more an excel user :-P) the StopPts so it stays put for the duration of the trade.
Cheers
Comment