Massindex

Created at 17 Dec 2015, 15:04
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!
AH

Ahlam Ahmad

Joined 12.12.2015

Massindex
17 Dec 2015, 15:04


High guys..

 

does anyone know how can i insert MassIndex in a cbot?

 

I struggles a lot trying but to no avail..

 

all i need to do is compare the Massindex value for the last two bars..

Typically in an if statement..

if

{

massindex[index - 1] < massindex[index - 2] 

}

else {}

 

On another note.. do you know how i could convert any value to be always a positive value even if the actual is a negative?


@Ahlam Ahmad
Replies

Spotware
17 Dec 2015, 22:54

Dear Trader,

Please have a look at the "Nested Indicators" section of our API Programmers Guides.

Regarding the absolute values we recommend you to check the Math.Abs method.


@Spotware