Because several persons were asking for it here an update version of the outsidebar indicator now showing a channel after an outsidebar occurred until the channel is breached by the close of a bar.
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
if range>=SignalbarHeight*pipsize then if high>high[1] and low<low[1] and close<open then bear=1 bull=0 T=high Bo=low elsif low<low[1] and high>high[1] and close>open then bull=1 bear=0 T=high Bo=low 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) r=255 g=0 b=0 elsif bull then DRAWARROWUP(barindex, low-offset) coloured(0,255,0) r=0 g=255 b=0 endif if T>0 and close>T then T=0 Bo=0 elsif Bo>0 and close<B then T=0 Bo=0 endif return T coloured(r,g,b) as "Top", Bo coloured(r,g,b) as "Bottom" |
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
I use mt4
This indecater work in mt4
No, it won’t work in MT4. This is for ProRealTime (like everything you find on this website).
thanks..i try and tell you
Thanks for sharing!
On the other hand can we remove the vertical gray lines?
Sorry I mean vertical red / green line
Found: just remove “T coloured(r,g,b) as “Top”, Bo coloured(r,g,b) as “Bottom”… after return
Hi
I tried to use indicator in a strategy code. But backtesting is asking to define SignalbarHeight. How could I do ?
Tku
JC