Error 4. Incorrect type of argument(s). Expecting number here.

This occurs in ApplyStop function when Type, Mode, ExitAtStop or Volatile parameter is an array


// wrong - stop mode (precent/point) can not be array
ApplyStop( stopTypeLoss, IIf( C > O, stopModePercent, stopModePoint ), 5 );