Download - Tradesignal

Transcript
::
www.tradesignal.com
When calculating an indicator, it is often necessary to compare values and then execute certain functions. For value comparison,
several operators are available.
SIMPLE COMPARISONS BETWEEN TWO VALUES
//No subchart Meta: Subchart( false ); //Declare variables Variables: myFirstVar, mySecondVar, myThirdVar; //Query if two values are identical If isLastBar Then Begin If myFirstVar = mySecondVar Then Print( "Hello World" ); //Data is output if values are identical End; //Query if two values are unequal If isLastBar Then Begin If myFirstVar <> mySecondVar Then Print( "Hello World" ); // Data is output if values are unequal End; //Query if the first value is greater or equal to the second If isLastBar Then Begin If myFirstVar >= mySecondVar Then Print( "Hello World" ); // Data is output if the value is // greater or equal to the // second value End; //Query if the first value is smaller or equal to the second If isLastBar Then Begin If myFirstVar <= mySecondVar Then Print( "Hello World" ); // Data is output if the value is // smaller or equal to the // second value End; Tradesignal GmbH
Page 317
Version 7.0