Count back a month

Created at 16 Oct 2018, 12:41
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!
alexander.n.fedorov's avatar

alexander.n.fedorov

Joined 02.01.2018

Count back a month
16 Oct 2018, 12:41


Hi, Pangiotis!
Is there a function on method to count back a month from a given bar?
Or anything you can advise

Regards, 

Sasha


@alexander.n.fedorov
Replies

alexander.n.fedorov
16 Oct 2018, 12:41

Sorry for the misprint

 


@alexander.n.fedorov

PanagiotisCharalampous
16 Oct 2018, 12:48

Hi Sasha,

This should work

MarketSeries.OpenTime.LastValue.AddMonths(-1);

Best Regards,

Panagiotis


@PanagiotisCharalampous

alexander.n.fedorov
16 Oct 2018, 12:49

Fantastic! So simple!

 


@alexander.n.fedorov