Support

Equilla Formula Language

IsFullEvaluation

Returns true if the script is evaluated for all available bars, false otherwise.

Examples

Write the initial and incremental market position to a text file
If IsFullEvaluation Then Begin If IsLastBar Then Begin PrintToFile( "status.txt", "Inital status generated on " + Now ); If MarketPosition = MarketPositionLong Then PrintToFile( "status.txt", "Long " + CurrentContracts ) Else If MarketPosition = MarketPositionShort Then PrintToFile( "status.txt", "Short " + CurrentContracts ) Else PrintToFile( "status.txt", "Flat"); End; End; If IsIncrementalEvaluation Then Begin PrintToFile( "status.txt", "Incremental status generated on " + Now ); If MarketPosition = MarketPositionLong Then PrintToFile( "status.txt", "Long " + CurrentContracts ) Else If MarketPosition = MarketPositionShort Then PrintToFile( "status.txt", "Short " + CurrentContracts ) Else PrintToFile( "status.txt", "Flat"); End;