Get variable value of the previous period

Created at 08 Jan 2018, 14:33
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!
irmscher9's avatar

irmscher9

Joined 22.12.2016

Get variable value of the previous period
08 Jan 2018, 14:33


Hey guys. 

Anyone can share the easiest way to get a value of the variable from the previous period?


@irmscher9
Replies

BeardPower
08 Jan 2018, 14:43

RE:

irmscher9 said:

Hey guys. 

Anyone can share the easiest way to get a value of the variable from the previous period?

For which variable? OHLC values?
E.g., for highs:

MarketSeries.High[index - 1]

 


@BeardPower

irmscher9
08 Jan 2018, 14:46

My own custom variable.


@irmscher9