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:

1
variable = Close <= 100;

See the other, longer code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 ...

No comments yet. Be the first.

Leave a reply