• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 11:14am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 11:14am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

RSI cross indicator when rsi=50 19 replies

RSI (Fast) above/below RSI (Slow) displayed as a Histogram 5 replies

Cable, MACD + RSI Divergence Wassssssup? 10 replies

request: RSI + ATR 40 replies

Rsi 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: RSI, MA, BOLL or RSI, BOLL MA diferents results
Exit Attachments
Tags: RSI, MA, BOLL or RSI, BOLL MA diferents results
Cancel

RSI, MA, BOLL or RSI, BOLL MA diferents results

  • Post #1
  • Quote
  • First Post: Dec 23, 2006 12:43pm Dec 23, 2006 12:43pm
  •  xavier050463
  • | Joined Nov 2006 | Status: Member | 12 Posts
Why the results are different if I do the following steps:
I have the rsi, then I put the bollinger band (Previous indicator option), after that I put the Ma (Previous indicator opton)

it is different that
I have the rsi, then I put the MA (Previous indicator option), after that I put the bollinger band (Previous indicator opton)
Attached Image
  • Post #2
  • Quote
  • Dec 23, 2006 12:46pm Dec 23, 2006 12:46pm
  •  smjones
  • Joined Mar 2006 | Status: THANK YOU MERLIN,TWEE and FF Team | 4,603 Posts
In the first example you are using rsi as the data for the BB and the BB as the input data for the MA


In the second example you are using rsi as the input data for the MA (this is different than the first example) and you are using the MA as the input data for the BB( this is also a different data input)
 
 
  • Post #3
  • Quote
  • Last Post: Dec 23, 2006 1:00pm Dec 23, 2006 1:00pm
  •  xavier050463
  • | Joined Nov 2006 | Status: Member | 12 Posts
I calculate the second data as followig

double rsiVal(int shift)
{
double rsival = iRSI(Symbol(),0,RSIPeriod,PRICE_CLOSE,shift);
return(rsival);
}

//=============== function: bands1 (gets BB value on the RSI array for recently closed bar)
double bands1()
{
double rsi[];
ArrayResize(rsi, Bars);
ArraySetAsSeries(rsi,true);
for(int i=Bars; i>=0; i--)
{
rsi[i]=iRSI(Symbol(),0, RSIPeriod, PRICE_CLOSE,i+0);
}
double bb = iBandsOnArray(rsi,0,BandsPeriod,BandsDeviations,0,MODE_MAIN,0);
return(bb);
}

double rsiMAVal(int shift)
{
double rsi[];
ArrayResize(rsi, Bars);
ArraySetAsSeries(rsi,true);
for(int i=Bars; i>=0; i--)
{
rsi[i]=iRSI(Symbol(),0, RSIPeriod, PRICE_CLOSE,i+shift);
}
double ma = iMAOnArray(rsi,0,RSIMAPeriod,0,MODE_EMA,0);
return(ma);
}
but How I can calculate the first example?
 
 
  • Platform Tech
  • /
  • RSI, MA, BOLL or RSI, BOLL MA diferents results
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023