EndWhile
 

Nom: EndWhile

Définition: Signale la fin d’une construction “While”

Usage: while(test) ... action ... endWhile

Objectif:
  • Fait partie d’une construction “While”

Note:
  • Ne retourne rien

Examples:
  • Playing Around:
  • varRSI = RSI(14)
  • index = 0
  • while(index < 2)
  • if(index == 0) then
  • for(0,10)
  • valeur = var(varRSI,0)
  • accumulate(premier,valeur)
  • endfor
  • logresult(stddev(premier))
  • notifyresult
  • else
  • avg20 = avg(20)
  • avg50 = avg(50)
  • buy = crossabove(avg20,avg50)
  • sell = crossbelow(avg20,avg50)
  • notifyresult(buy,sell)
  • endif
  • increment(index,1)
  • endwhile
  • logresult(it works...)