How to transform any indicator in a histogram with TradeStation

In this EasyLanguage Tutorial, we show you how to use the TradeStation Histogram visual mode.

Many traders don’t like to have the chart flooded with lines, drawings, and indicators.

They prefer to see the naked price. Let’s take a simple example of a Moving Average from this link.

This moving average has an active slope function that indicates whether the direction is increasing or decreasing.

Obviously, we can view only this information through a histogram. However, this information is handy when we need a trend filter.

Let’s Start to transform a Moving Average into a TradeStation histogram

First of all, we modify the Tradestation EasyLanguage code in this way:



MA=average(Close, MA_length);

If MA>MA[1] and MA[1]>MA[2] then


If MA<MA[1] and MA[1]<MA[2] then


Plot1( MA_histo, “MA”,color,0,3 );

The TradeStation Indicator continues to calculate the moving average, but the command Plot1, instead of drawing the line with the value of the average price, will draw the fixed amount “1”.

This happens because, with this indicator, we are interested only in seeing the color that changes when the average is descending or ascending (red and green).

we must also change some indicator settings in Tradestation :


Now you have only the TradeStation Histogram in your chart. We can use the green-red histogram on TradeStation to display a large number of indicators.

tradestation histogram EasyLanguage Indicator

We can also create another histogram that shows us when prices are below or above the moving average.

Also, in this case, with a red and green histogram, we will have the red color when the prices are below the moving average while the green color will be above.



MA = average(Close, MA_length);

If Close>MA

If Close<MA then

Plot1( MA_histo, “MA”,color,0,3 );

Do you want to learn EasyLanguage & PowerLanguage for TradeStation and MultiCharts? Start here:

You can find many Indicator in the TradeStation TradingApp Store

tradestation TradingApp Store

More from Finance Strategy System

SuperTrend Multi Time Frame Indicator

The McClellan Summation Index || Technical Analysis

How to create a simple indicator

TradeStation Tutorials

EasyLanguage & PowerLanguage Tutorial – Time and Date

All about the Trend in Technical Analysis || Essential Tutorial

Free EasyLanguage Indicator

EasyLanguage – StartTime | EndTime | MultiCharts & TradeStation

TradeStation Forex Hourly Bias Indicator

NAAIM Exposure Index || What is and How to Use It