detecting gaps
Created at 29 Mar 2019, 03:40
A.
detecting gaps
29 Mar 2019, 03:40
Hello,
Is there a better way to detect gaps ?
if (current tick time frame != previous tick time frame && difference between current tick bid and previous tick bid > 0.0001) { }
It works fine on EURUSD and GBPUSD but when I switch it to USDCHF or USDJPY (modifying the value to 0.01 for this one), it doesn't detect gaps at all and marks everything as gaps.
Thanks!
Replies
a.fernandez.martinez
29 Mar 2019, 13:13
I was tired yesterday what I meant was this :
if (current tick open time != previous tick open time && difference between current tick bid and previous tick bid > 0.0001) { }
@a.fernandez.martinez
a.fernandez.martinez
29 Mar 2019, 03:44
it doesn't work very well at higher timeframe due to the pip difference condition
@a.fernandez.martinez