I wrote a code for GapSearching. In the attachment there are 4 gaps. 3 gaps up and 1 gap down. The white arrows gives the closing of the gaps. The green coloured horizontal lines gives the gaps up and the yellow coloured horizontal lines give the gaps down. The green circle (not in the code) gives, 1 unclosed gap.
Can someone help me to code the unclosed gaps visualising are, even as good, let disapear the horizontal lines.
Discussions about gaps closing: https://www.prorealcode.com/topic/gaps-gapclosing-long-running-gaps/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
//Gaps //Zigo //3.09.2020 c1= low[1]> high[2] c2= high[1] < low[2] if c1 then c=low[1] DRAWTEXT("Gapup", barindex[1], high +AverageTrueRange[14](close),dialog,standard, 19)coloured(0,195,5,255) DRAWHLINE(c)coloured(0,255,0,255) elsif c2 then c7=high[1] DRAWTEXT("GapDn", barindex[1], low-AverageTrueRange[14](close),dialog,standard, 19)coloured(255,255,0,255) DRAWHLINE(c7)coloured(255,250,0,255) 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 :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials