Hi, so far I have written a little indicator to show Gaps. But I want already closed gaps not to be shown, only the gaps that are still open.
Though I find it a bit complicated, anyone any algorithm idea? Thanks in advance, Chris
Hello,
>> Please update your country flag in your profile. Thank you 🙂 <<
Hi Christine.
There are some Gap screener code in the Screener library that could be useful.
Perhaps you could share your indicator code- it would be more useful if any suggestion should be made.
Cheers Kasper
Thanks for the feedback 😉
Indicator to find open gaps:
dx = 0.0001gap = 0
IF Low > High[1] +dx Then
gap = 1
IF High <Low[1]+dx then
gap = -1
return gap AS “opengaps”
I searched the screener library but I only found screeners that search open gaps, but no tests were made to see if the gap was closed.
What is the condition for a closed upgap? UPgab between candle A und B. Check if a future candle has a low <high[A]?
Check if a future candle has a low<high[A]
Yes, this could be a solution, but if a new upgap appears, the information about the old one will be erased and stored with this new gap. Is this a problem?