Supertrend and ATR bug

Created at 12 Apr 2013, 21:30
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!
BE

benderq3

Joined 12.04.2013

Supertrend and ATR bug
12 Apr 2013, 21:30


Hello

 

I downloaded the super trend indicator. If I then click on build I get the following error:

Build failed: error 1

 

In my search I found out that I need the ATR indicator yet.

This I have builded. After this selected on super trendy and on to "add Preference" and the ATR. if I'm going to build I get the following error:

 

Error: "calgo.indicators.averagetrueRange" contains no definition for "Result"

and there was no extension method "result" will be found ...

 

/algos/indicators/show/139 this is the ATR 

/algos/indicators/show/136 this is the Supertrend indicator

 

best regards

 


@benderq3
Replies

cAlgo_Fanatic
15 Apr 2013, 09:48

There is a mistake in the code of the ATR that you downloaded. It doesn't build as is.

Correct this line:

 _ema = Indicators.ExponentialMovingAverage(_tempBuffer, Period); 

The Referenced files (ATR) should be build first. It may be that you have another ATR downloaded and build and it is using different syntax than this one.

Alternatively, locate the other ATR file that you have in your system and see what is the name of the Ouput variable. Replace "Result" in Supertrend with that name.

ATR 1 --> Output variable name is ATR

ATR 2  --> Output variable name is atr

 


@cAlgo_Fanatic