How Execute Market Order at starting European market session?

Created at 21 Mar 2018, 19:06
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!
AN

anton.kovalchuk

Joined 01.03.2016

How Execute Market Order at starting European market session?
21 Mar 2018, 19:06


Hi All.

How to add verification at the current time. Trend cBot works all time but should execute a market order during the European market session.

Thanks

 

 


@anton.kovalchuk
Replies

PanagiotisCharalampous
22 Mar 2018, 09:26

Hi Anton,

You could try to use a condition like the sample below

           if(DateTime.UtcNow.Hour >= 8 && DateTime.UtcNow.Hour < 4)
           {
           // Do something...
           }

Let me know if this helps,

Best Regards,

Panagiotis


@PanagiotisCharalampous

anton.kovalchuk
26 Mar 2018, 18:22

RE:

Panagiotis Charalampous said:

Hi Anton,

You could try to use a condition like the sample below

           if(DateTime.UtcNow.Hour >= 8 && DateTime.UtcNow.Hour < 4)
           {
           // Do something...
           }

Let me know if this helps,

Best Regards,

Panagiotis

Thank you a lot Panagiotis Charalampous.

 

 


@anton.kovalchuk