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 ) );

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...Loading...

Comments are closed.