Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Indicators - Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2007, 02:06 PM
Senior Member
 
Join Date: Oct 2006
Posts: 104
antone is on a distinguished road
need help on codes

whats the code if you put one indicator in another indicators window?

like 2 indicators in one window..

example if you merge MA to stoch window?

double EMA = iMA (Symbol (), 1440, 8, MODE_EMA, ???????,0)
or should is use iMAOnArray?

please help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-08-2007, 12:24 PM
Senior Member
 
Join Date: Oct 2006
Posts: 104
antone is on a distinguished road
please help? how do you make the code for that?

i am adding MA to CCI window?

can you give me the double code? please
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-08-2007, 03:07 PM
Senior Member
 
Join Date: Nov 2005
Posts: 169
mangman is on a distinguished road
Antone,
I downloaded the MA indcator from the official Metatrader site and made the change that would display it on a separate window.

You will have to save it in the following folder
C:\Program Files\Interbank FX Trader 4\experts\indicators.

One you have the CCI indicator displaying drag Moving Average indicator from the Custom Indicators folder of the navigator window to the CCI window. Then when the dialog box appears select the input settings(ma period, shift and type) and then press the OK button.

You can display the MA first and then drag and attach the CCI later.

Also you can make the changes to setting of the each indicator that is on the same window later.
Attached Images
File Type: gif multi-indicator-chart2.gif (55.5 KB, 83 views)
Attached Files
File Type: mq4 Moving Average.mq4 (5.4 KB, 25 views)

Last edited by mangman; 02-08-2007 at 03:17 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-08-2007, 03:15 PM
Senior Member
 
Join Date: Nov 2005
Posts: 169
mangman is on a distinguished road
I made a mistake of uploading the wrong indicator a few minutes ago.
The right one is uploaded again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-08-2007, 04:15 PM
Senior Member
 
Join Date: Oct 2006
Posts: 104
antone is on a distinguished road
Quote:
Originally Posted by mangman
Antone,
I downloaded the MA indcator from the official Metatrader site and made the change that would display it on a separate window.

You will have to save it in the following folder
C:\Program Files\Interbank FX Trader 4\experts\indicators.

One you have the CCI indicator displaying drag Moving Average indicator from the Custom Indicators folder of the navigator window to the CCI window. Then when the dialog box appears select the input settings(ma period, shift and type) and then press the OK button.

You can display the MA first and then drag and attach the CCI later.

Also you can make the changes to setting of the each indicator that is on the same window later.
thank you.. i have done that.. i can do that.. but i am making a program that would give me a signal when it cross..

so i need something like:

double EMA = iMA ( ..........................)
or should i use
double EMA = iMAOnArray (.......)

if iMAOnArray? please help me as i still don't understand it..

can you make me this part? don't know how to specify MA that is is in the same window with the CCI.. so that when there is a cross, i will get the signal..

Last edited by antone; 02-08-2007 at 04:19 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-08-2007, 04:41 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,084
omelette is on a distinguished road
Quote:
Originally Posted by antone
thank you.. i have done that.. i can do that.. but i am making a program that would give me a signal when it cross..

so i need something like:

double EMA = iMA ( ..........................)
or should i use
double EMA = iMAOnArray (.......)

if iMAOnArray? please help me as i still don't understand it..

can you make me this part? don't know how to specify MA that is is in the same window with the CCI.. so that when there is a cross, i will get the signal..
Hi. You need to use :-

iMA(NULL,0,Period,0,MAMethod,AppliedPrice,i)

no need for iMAOnArray......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-08-2007, 10:11 PM
Senior Member
 
Join Date: Oct 2006
Posts: 104
antone is on a distinguished road
Quote:
Originally Posted by omelette
Hi. You need to use :-

iMA(NULL,0,Period,0,MAMethod,AppliedPrice,i)

no need for iMAOnArray......
what should be my applied price? cause if i click the MA it is first indicator?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-08-2007, 11:07 PM
Senior Member
 
Join Date: Nov 2005
Posts: 169
mangman is on a distinguished road
Antone,

I made an indicator.

What you see on the chart when you overlay together is very misleading because the moving average and the CCI are drawn in the exact shape it appear as when they are separate.

CciEmaCross indicator gives signals based on exact cross of the values of the indicators, which gived a lot of false signals.

It is better to overlay the indicators and trade based on the crosses that you observe in that window.

I do not want to post it becuase the signals it give are not good.
Attached Images
File Type: gif gbp1hr trendtestwindow.gif (17.7 KB, 93 views)

Last edited by mangman; 02-08-2007 at 11:11 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-09-2007, 12:31 AM
Senior Member
 
Join Date: Oct 2006
Posts: 104
antone is on a distinguished road
Quote:
Originally Posted by mangman
Antone,

I made an indicator.

What you see on the chart when you overlay together is very misleading because the moving average and the CCI are drawn in the exact shape it appear as when they are separate.

CciEmaCross indicator gives signals based on exact cross of the values of the indicators, which gived a lot of false signals.

It is better to overlay the indicators and trade based on the crosses that you observe in that window.

I do not want to post it becuase the signals it give are not good.
yes it is not good.. but can you still give me how to create the code.. i wanna still wanna learn how to do it.. thanks

Last edited by antone; 02-09-2007 at 01:15 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-09-2007, 02:14 AM
Senior Member
 
Join Date: Jan 2006
Posts: 1,084
omelette is on a distinguished road
Quote:
Originally Posted by antone
what should be my applied price? cause if i click the MA it is first indicator?
I think I owe you an apology - it just dawned on me what you're trying to do (I think..) You DO need to use iMAOnArray. Apart from defining another display buffer, very little is required. This is the CCI indicator with the iMAOnArray stuck on the end. Is this what you want?
Attached Files
File Type: mq4 CCI_MA.mq4 (3.9 KB, 47 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error codes script! codersguru Tools and utilities 6 05-03-2008 12:14 AM
MT4 Indicator codes coming out of my ears! fred Metatrader 4 12 03-20-2006 10:25 AM


All times are GMT. The time now is 12:08 PM.



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