Code editor special characters demo

I have been asked if it is possible to enter < > = characters in the code editor.
Of course it is possible. See this example:


variable = Close <= 100;

See the other, longer code:


function MarketFacilitationIndex()
{
return ( High – Low )/Volume;
}

mfac = MarketFacilitationIndex();
rm = ROC( mfac, 1 );
rv = ROC( Volume, 1 );

Color = IIf( rm > 0 AND rv > 0, colorGreen,
IIf( rm < 0 AND rv < 0, colorBlue, IIf( rm > 0 AND rv < 0, colorGrey40, IIf( rm < 0 AND rv > 0, colorRed, colorLightGrey ) ) ) );

Plot( mfac, _DEFAULT_NAME(), Color, ParamStyle(“Style”, styleHistogram | styleThick, maskHistogram ) );

Comments are closed.