setf (int Mode, int Flag)

Macro that sets a Flag or flag combination in the variable Mode. For instance, setf(TradeMode,TR_PHANTOM) sets the TR_PHANTOM flag for the TradeMode variable.

resf (int Mode, int Flag)

Macro that resets a Flag or flag combination in the variable Mode.

isf (int Mode, int Flag): int

Macro that evaluates to nonzero when the a Flag in the Mode variable is set.  For instance, if(isf(TrainMode,PEAK)) ... checks if the PEAK flag is set in the TrainMode variable.

Remarks

Example:

function run()
{
  setf(TrainMode,PEAK);
  setf(Detrend,SHUFFLE); 
  ...
}

See also:

 is, set, PlotMode, TrainMode, TradeMode ► latest version online