stop-and-reverse TSL
hi everybody,
i am trying to find an indicator and ea that would set a benchmark distance a stop-and-reverse stoploss level at
X pips from the lowest low (highest high) since the last triggered bearish (bullish) trend.
say eur/usd is 1.2210 in a bearish trend, and lowest low since the indicator triggered the bearish trend at 1.2250 about 45 minutes ago, is 1.2200. if i set X=40, the benchmark for SAR system should be fixed at 1.2240. if price makes a new low to 1.2180, the new benchmark will move to 1.2220, down 20 pips as price did. else if price goes up to 1.2215, the benchmark will do nothing and wait for being hit. if it is hit at 1.2240, a long will be triggered with the initial highest high at 1.2240, so new benchmark SAR level will be 1.2240-50pips=1.2190.
i would appreciate if anyone can point out to something useful for this kind of a stoploss indicator and/or EA.
importantly, i dont want "close" prices to be referenced in calculations, either high or low of any of the bars should be referenced in calculating the SAR.
i think it is very simple to code but most of the programmers i asked for help was either busy or was not interested i suppose. but i need such a thing to stop me, or i am losing a lot of money :.(
thanks
|