Countdown

Created at 26 Sep 2018, 23:32
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!
DelFonseca's avatar

DelFonseca

Joined 25.06.2017

Countdown
26 Sep 2018, 23:32


Good night,

Every open trade it assumes "private DateTime _lastExecutedOrder;" being as "_lastExecutedOrder = DateTime.Now;"

At each tick it checks permission to trade:
  PermissionToTrade = _lastExecutedOrder.AddHours(6) > DateTime.Now) ? true : false;
so that in the next 6 hours doesnt open any trade for that currency pair

I would like to put a label with countedown of these 6 hours, can anyone help me?

Thank you so much.
Good trades!


@DelFonseca