detecting gaps

Created at 29 Mar 2019, 03:40
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
A.

a.fernandez.martinez

Joined 02.03.2019

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!


@a.fernandez.martinez
Replies

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

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