1-tick chart. detecting green and red tick events

Created at 18 May 2020, 13:21
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!
JO

john_7ko

Joined 19.04.2020

1-tick chart. detecting green and red tick events
18 May 2020, 13:21


I've attached a 1-tick chart below and you can see that sometimes there will be a red dash, and sometimes a green dash,

which I assume correlates to a bid tick and an ask tick.

Is there any way to detect whether the dashes are red or green in an indicator without using Symbol.Bid?

 


@john_7ko
Replies

PanagiotisCharalampous
18 May 2020, 14:04

Hi John,

No there isn't. You need to check if the change occurred on Bid or on Ask price.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

john_7ko
18 May 2020, 14:45

RE:

PanagiotisCharalampous said:

Hi John,

No there isn't. You need to check if the change occurred on Bid or on Ask price.

Best Regards,

Panagiotis 

Join us on Telegram

 

 

I thought I had just thought of a way I could do it before reading your post. 

Could you tell me why this wouldn't work: Calculate function executes on each new tick, therefore couldn't you just

check to see if the close price of the 1 tick chart bar changed during that tick, and if not then that means it's an ask tick? and vice versa 


@john_7ko

PanagiotisCharalampous
18 May 2020, 14:56

Hi John,

On a second thought, yes that would work too.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous