Profile Picture

Need timespan between current Date and previous bar Date in SystemData

Posted By johan 3 Years Ago

Need timespan between current Date and previous bar Date in SystemData...

Message
Posted Monday July 21 2014
Can somebody please assist in providing a way to calculate the number of days between CurrentDate and the previous bar Date in SystemData. For CFD money manager, I need this to calculate interest over weekends.

Thanks

Johan
Posted Wednesday July 23 2014
SystemData.CurrentDate.Subtract(Bars.LookBack(1).BarStartTime.Date).TotalDays (or some derivation).

Duane
Posted Thursday July 24 2014
Thanks!


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems