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/
c1= low> high
c2= high < low
if c1 then
DRAWTEXT("Gapup", barindex, high +AverageTrueRange(close),dialog,standard, 19)coloured(0,195,5,255)
elsif c2 then
DRAWTEXT("GapDn", barindex, low-AverageTrueRange(close),dialog,standard, 19)coloured(255,255,0,255)
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 :