Posted Tuesday, July 30, 2013
Group: Forum Members
Last Active: Wednesday, July 31, 2013
Dear All,I am flummoxed...
I would like to show my two trailing stops on my graph
1. Buy TS is the highest value of (the last 20 highs - (ATR X multiplier)) which will not change if the next candle TS value is lower
2. Sell TS is the lowest value of (the last 20 lows + (ATR X multiplier)) which will not change if the next candle TS value is higher
3. Ideally the indicator would change from the high line to the low line if the candle crossed over (ie went from sell to buy if coming out of downtrend to uptrend)
Could anyone please point me in the direction of some code that might help as I understand that it is not possible to create an indictor off an indicator so need to utilise the raw data and manipupate it?