Adding Indicator to Open Equity Plot

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
DibsTrader
Posts: 7
Joined: 16 Mar 2012
Has thanked: 2 times

Adding Indicator to Open Equity Plot

Postby DibsTrader » 20 Apr 2012

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.

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Adding Indicator to Open Equity Plot

Postby JoshM » 20 Apr 2012

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");

DibsTrader
Posts: 7
Joined: 16 Mar 2012
Has thanked: 2 times

Re: Adding Indicator to Open Equity Plot

Postby DibsTrader » 20 Apr 2012

Excellent, thanks a lot Josh :)


Return to “User Contributed Studies and Indicator Library”