Forex



Go Back   Forex Trading > Downloads > Indicators - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-22-2007, 07:05 PM
Junior Member
 
Join Date: Jun 2007
Posts: 29
strategy100 is on a distinguished road
First Indicator Data Calculation for x indicator

Hello everyone.... I noticed that MT4 has an option on its original indicators to drag and drop for example an ma on an indicator and choose to calculate on "first indicator data" or "previous indicator data"... wich is very usefull to make indicators of indicators...

Now my question here to coders : what should we add to an x Custom indicator code in order to have this option of calculating on "first indicator data" or "previous indicator data" so in this case we could drag and drop an x custom indicator and choose to calculate over this other custom indicator data...

Wouldnt that be cool ?... I would love to hear your inputs... cheers Dave.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 07-22-2007, 09:30 PM
mobdeep386's Avatar
Junior Member
 
Join Date: Sep 2006
Posts: 17
mobdeep386 is on a distinguished road
Let's say we want to calculate the MA of RSI ,we need to define an Array(here it will be the RSI of last 14 periods on price_close) ,then we can use the function iMAOnArray() to calculate the moving average of the array ...


double rsi_buffer[300];
int i,limit=ArraySize(rsi_buffer);
ArraySetAsSeries(macd_buffer,true);

for(i=0; i<limit; i++)
rsi_buffer[i]=iRSI(NULL,0,14,PRICE_CLOSE,i);


double maofrsi=iMAOnArray(rsi_buffer,0,5,0,MODE_SMA,0);

Last edited by mobdeep386; 07-22-2007 at 09:34 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 07-22-2007, 09:56 PM
cucurucu's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 314
cucurucu is on a distinguished road
Quote:
Originally Posted by strategy100 View Post
Hello everyone.... I noticed that MT4 has an option on its original indicators to drag and drop for example an ma on an indicator and choose to calculate on "first indicator data" or "previous indicator data"... wich is very usefull to make indicators of indicators...

Now my question here to coders : what should we add to an x Custom indicator code in order to have this option of calculating on "first indicator data" or "previous indicator data" so in this case we could drag and drop an x custom indicator and choose to calculate over this other custom indicator data...

Wouldnt that be cool ?... I would love to hear your inputs... cheers Dave.
It would be great but unfortunately it is not possible.
I do this by coding a new indicator that uses the other custom indicator instead of the price.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 07-22-2007, 10:33 PM
Senior Member
 
Join Date: Nov 2005
Posts: 105
fxd01 is on a distinguished road
Quote:
Originally Posted by cucurucu View Post
It would be great but unfortunately it is not possible.
I do this by coding a new indicator that uses the other custom indicator instead of the price.
cucurucu,

Can you please post a sample code using the data from an indicator (instead of using previous indicator's value)?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Indicator calculation? cja Setup Questions 5 02-12-2007 10:51 AM
EA using indicator data - Professional Clarification Required. iscuba11 Metatrader 4 3 08-26-2006 04:17 AM
Making an Indicator involving price data from 2 different Currencies: How? sampson Indicators - Metatrader 4 12 04-21-2006 01:46 PM
Pass data from Indicator to EA? charliev Metatrader 4 2 02-05-2006 04:28 PM


All times are GMT. The time now is 10:20 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.