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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Simple Moving Average Vs. Moving Average? 8 replies

Price Cross Moving Average Indicator 10 replies

Does Moving average actually act as moving S/R ?? 20 replies

MT4 Draw Symbol instead of Arrow, Draw n instead of square 2 replies

Price is above Moving Average Comment Indicator 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe

Moving average of another indicator instead of price

  • Post #1
  • Quote
  • First Post: Feb 14, 2008 10:50pm Feb 14, 2008 10:50pm
  •  TraderGeek
  • | Joined Dec 2006 | Status: Member | 220 Posts
Trying to code this and it keeps coming back 0. You can do this on a chart by saying you want the MA to apply to the previous indicator rather than Open, Close, etc.

Here is my code that is not working:

double RSIHourly = iRSI(NULL, FastTF, RSIPeriod, 0, 0);
double RSIEma = iMA(NULL,FastTF,RSIPeriod,0,MODE_EMA,RSIHourly,0);

RSIHourly is accuratge but RSIEma is always 0.

Thoughts?
  • Post #2
  • Quote
  • Feb 14, 2008 11:00pm Feb 14, 2008 11:00pm
  •  achandrasek
  • Joined Feb 2006 | Status: Member | 476 Posts
You cannot calculate MA the same way for indicators (iMA is for price only). First, RSI[] has to be stored in array and then use iMAonArray function.

If you are looing for Inverse Fisher Transform-RSI, I have just released a compiled version (no source code).
http://www.forexfactory.com/showpost...&postcount=170

If you are looking for source code, the following link has it. But it uses a different method to calculate RSI and MA (and I think it has some problem):
http://www.forexfactory.com/showpost...postcount=5863

Regards,
chandra
 
 
  • Post #3
  • Quote
  • Feb 14, 2008 11:24pm Feb 14, 2008 11:24pm
  •  magnumfreak
  • Joined Nov 2007 | Status: Trying manual mode again | 2,210 Posts | Invisible
write your RSI hourly data to an array and then to a moving average of the array using iMAOnArray.
 
 
  • Post #4
  • Quote
  • Last Post: Feb 14, 2008 11:33pm Feb 14, 2008 11:33pm
  •  TraderGeek
  • | Joined Dec 2006 | Status: Member | 220 Posts
Quoting achandrasekaran99
Disliked
You cannot calculate MA the same way for indicators (iMA is for price only). First, RSI[] has to be stored in array and then use iMAonArray function.

If you are looing for Inverse Fisher Transform-RSI, I have just released a compiled version (no source code).
http://www.forexfactory.com/showpost...&postcount=170

If you are looking for source code, the following link has it. But it uses a different method to calculate RSI and MA (and I think it has some problem):
http://www.forexfactory.com/showpost...postcount=5863

Regards,
chandra
Ignored
Thanks. I'll take a look at the iMAonArray function.
 
 
  • Platform Tech
  • /
  • Moving average of another indicator instead of price
  • 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 / ©2022