August 5, 2007
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 ) );
Filed by Tomasz Janeczko at 10:43 am under Using WordPress
Comments Off on Code editor special characters demo