A very simple indicator drawing an arrow up/below an bullish/bearish outsidebar. You can adapt the height of the signal candle in the setting.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
//SignalbarHeight=5 if range>=SignalbarHeight*pipsize then if high>high[1] and close<low[1] then bear=1 bull=0 elsif low<low[1] and close>high[1] then bull=1 bear=0 else bear=0 bull=0 endif else bear=0 bull=0 endif offset=AverageTrueRange[14](close)*2 if bear then DRAWARROWDOWN(barindex, high+offset) coloured(255,0,0) elsif bull then DRAWARROWUP(barindex, low-offset) coloured(0,255,0) endif return |
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
Thanks for sharing!
On the other hand can we remove the vertical gray lines?
Appreciated! Thanks 100%
good afternoon when i enter the code i get an error message Syntax error