I've probably spent the last 3 hours trying to figure this out on both NT7 and NT8... as you can guess i'm new to NT.
How do I set an initial stop to be say 100 pips below the bar before the entry bar. In fact, is it possible to use any indicator or bar value with an initial stop, either through the builder or using code? All I can manage is to set a simple stop based on price, pips etc.
I want the stop to be sent to the broker at the same time as the order. Not a trailing stop or anything like that.
I figure the stop needs to be in the OnStateChange() method. I tried assigning Low[0]-0.01 to a variable in OnBarUpdate() at entry, then using that variable in SetStopLoss, but I can't get it to work. That's just one of a 100 different ways i've tried it. Please help!

Comment