formula for Stop loss
1 replies
deweymcg
11 years ago #110830
I need some help with this one. I am trying to use a formula to determine the stop loss using a variable so I can optimize for the best setting.
The code for a different platform looks like this:
Stop = (HH(2) – LL(2)) *variable
HH(2) is the highest High from the last 2 bars. LL(2) is the lowest low. I can seem to figure out how to do this with EA wizard.
Thanks for any help.
Mark Fric
11 years ago #120736
in EA Wizard there are functions (in Custom Indicators) [b]Highest[/b] and [b]Lowest[/b] – they return highest high or lowest low of given period of bars.
Mark
StrategyQuant architect
Viewing 1 replies (of 1 total)