Equilla Formula Language


Sets the evaluation mode for any stops that are set so that they are evaluated on the entire position profit.


Exit if we lose more than one percent
Input: Price( Close ), Period( 10, 1 ); If Average( Price, Period ) Crosses Price Then Buy This Bar at Market Else If Price Crosses Average( Price, Period ) Then Short This Bar at Market; SetStopPosition(); SetStopLoss( Price * GetDefaultQuantity() * 0.01 );