I find the Exrem statement works but I would like to use Applystop with a condition.
To replace this .... (Ref(ExRemSpan( Buy, 20), -20) AND Close < Ref(BuyPrice, -20)); I thought this would work .... IIf(Close < Ref(BuyPrice, -20), (ApplyStop( 3, stopModeBars, 20, 2)), 0); For immediate IIf SYNTAX iif( EXPRESSION, TRUE_PART, FALSE_PART ) RETURNS ARRAY FUNCTION "Immediate-IF" - a conditional function that returns the value of the second parameter (TRUE_PART) if the conditional expression defined by the first parameter (EXPRESSION) is true;
