Taking Trades Only between two specific time

Created at 03 Jul 2022, 22:44
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!
AL

Alfie

Joined 23.06.2022

Taking Trades Only between two specific time
03 Jul 2022, 22:44


Hello,,

I am creating a new cBot and I only want to take trades between some market hours. 

How do I check this market session before taking trades.?


@Alfie
Replies

PanagiotisCharalampous
05 Jul 2022, 12:15

Hi tradeaccnt001,

You can check Server.Time to check the current time and MarketHours.Sessions for the sessions.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous