Minimum and Maximum methods

Created at 25 May 2015, 17:36
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!
BO

botmaster

Joined 24.05.2015

Minimum and Maximum methods
25 May 2015, 17:36


I have an indicator that needs to know the min and max of a particular currency.

I'm using the Minimum and Maximum methods in the Initialize() method of my indicator.

double x = MarketSeries.Open.Maximum(3500);

Now, when I reference the indicator in my cBot I've noticed that the indicator doesn't receive the same value.   The return value for MarketSeries.Open.Maximum(3500) is different when it's executed via a cBot.     Even if I ensure that backtesting has at least 3500 periods it's still different. 

Thanks

 

 

 

 


@botmaster
Replies

Spotware
12 Jun 2015, 17:47

Dear Trader,

Could you provide us a code snippet that illustrates the problem?


@Spotware