Page 1 of 1

Adding Indicator to Open Equity Plot

Posted: 20 Apr 2012
by DibsTrader
Hi, is there any way to add indicators to a plot of open equity based on the plot1(i_openequity) function in MultiCharts? I'm looking to add a moving average and RSI to the open equity chart.
Thanks a lot in advance.

Re: Adding Indicator to Open Equity Plot

Posted: 20 Apr 2012
by JoshM
Hi, is there any way to add indicators to a plot of open equity based on the plot1(i_openequity) function in MultiCharts? I'm looking to add a moving average and RSI to the open equity chart.
It can be done, but it wouldn't be very useful since the RSI values range from 0-100, and I assume your open equity is higher. :) A better idea might be to make two open equity charts: one for the RSI, and one with the open equity and it's MA.

The code below plots all three in one panel:

Code: Select all

Inputs:
MALength(20),
RSILength(14);

Variables:
stratEquity(0), maValue(0), rsiValue(0);

stratEquity = i_OpenEquity;
maValue = Average(stratEquity, MALength);
rsiValue = RSI(stratEquity, RSILength);

Plot1(stratEquity, "OpenEquity");
Plot2(maValue, "MA");
Plot3(rsiValue, "RSI");

Re: Adding Indicator to Open Equity Plot

Posted: 20 Apr 2012
by DibsTrader
Excellent, thanks a lot Josh :)