Return to site

Coding drawing objects in easylanguage tradestation 9.5

broken image

The blendbar color is determined by the user input strings: UpCol, DnCol and WickCol. Since the trendlines are drawn every tick, the persist property is used to ensure that the trendlines only stay on the chart on the last tick of the bar when persist is set to true.īecause having two many drawing objects on a chart can degrade performance, the program deletes the earliest trendlines after more than a user input number of trendlines have been drawn. To color of the bodies is changed depending on whether open is above or below close.

broken image

The trendline representing the wick is drawn with a lower weight setting than the trendline representing the body. The tutorial program does not work with MultiCharts With the second option the bars are drawn using the trendline objects. This tutorial demonstrates two ways that the blend bars can be included on the chart: Lowest low of BlendNum bars: Lowest( L, BlendNum ) Highest high of BlendNum bars: Highest( H, BlendNum )

broken image

In EasyLanguage these values can be found as follows:

broken image