InvestorsHub Logo
Followers 38
Posts 9736
Boards Moderated 2
Alias Born 06/03/2007

Re: Lazyman post# 103626

Thursday, 09/13/2012 1:01:58 AM

Thursday, September 13, 2012 1:01:58 AM

Post# of 140146
It is the moving average of the RSI Buffer which is actually the RSI. I believe the stock period is 7 for the moving average and the RSI is 13. So you have a 7 period moving average of the RSI(13). In the code below (last line), it is called the MbBuf and is indicator #6 if you wanted to call it from an EA.


{
RSIBuf = (iRSI(NULL,0,RSI_Period,RSI_Price,i));
MA = 0;
for(int x=i; x<i+Volatility_Band; x++)
{
RSI[x-i] = RSIBuf[x];
MA += RSIBuf[x]/Volatility_Band;
}
UpZone = (MA + (1.618 * StDev(RSI,Volatility_Band)));
DnZone = (MA - (1.618 * StDev(RSI,Volatility_Band)));
MdZone = ((UpZone + DnZone)/2);
}
for (i=limit-1;i>=0;i--)
{
MaBuf = (iMAOnArray(RSIBuf,0,RSI_Price_Line,0,RSI_Price_Type,i));
MbBuf = (iMAOnArray(RSIBuf,0,Trade_Signal_Line,0,Trade_Signal_Type,i));


the government cannot give anything to anyone -- that they have not first taken away from someone else.

Join InvestorsHub

Join the InvestorsHub Community

Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.