Examples of analysis using Adx language


analyze "Anlyze Name" : // Comment
      param : nbDays = 14 "Number of days" ; // Comment
      param : maxValue = 50 + 20 "Max value" , minValue = 30 ;
      param : isOk = true or 1 > 2 ;
begin
      var : foo = nbDays * 5, foo2 = 18 + 2; // Local variables
      // Bearish rule, when it is validated, it's a bearish sign
      set "my bearish rule mane" as bearish rule : rsi(nbDays).workOn(MAX) <= minValue or not isOk ;
      var : rs = rsi(foo);
      // Bullish rule, when validated, it's a bullish sign
      set "my bullish rule mane 01" as bullish rule : rsi(nbDays).workOn(MAX) >= maxValue explain by "Explication de la règle" ;
      // Bullish rule, when it is validated, it is a bullish sign.
      set "my bullish rule mane 02" as bullish rule : rsi(nbDays).workOn(MAX) - foo > maxValue + 5 ;
end