For those who might be interested here is the code of a bullish trailing stop that seems to work well, sticking to the price while letting it breathe
———————————
1 2 3 4 5 |
c2=high c1=highest[3](c2)+1/3*AverageTrueRange[20](close) c3=lowest[10](c1) return C3 |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
also, for long trailing stop
d2=low
d1=lowest[3](d2)+1/3*AverageTrueRange[20](close)
d3=highest[10](d1)
return d3