molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming

AFTER YOU REGISTER SEND US AN EMAIL TO ACTIVATE YOUR ACCOUNT - Before posting:-1- Please read the user guide -2- Try the examples -3- Search in the forum
It is currently Sun Jun 16, 2024 8:11 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: custom indicator
PostPosted: Sun Mar 06, 2011 1:33 pm 
Offline

Joined: Sun Jan 16, 2011 12:06 pm
Posts: 58
In Meta Trader4 software for custom indicator properties under color tab there are numbers starting from 0-1-2-3-4.....
Do they correpond with the mode option that is in strategy builder for custom indicators????

I am sending mq4 file for you to review if needed for my custom indicator. I have not yet build any startegy based on this custom indicator.

Thanks a lot for being there when we have questions


Attachments:
#MTF_Heiken_Ashi.mq4 [3.94 KiB]
Downloaded 343 times
Top
 Profile  
 
 Post subject: Re: custom indicator
PostPosted: Sun Mar 06, 2011 6:18 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Sometimes they do correspond but not always. It depends on how the coder creates the indicator. The mode is an mt4 concept, we just use it in our builder.
This is a trick we use:
Look at the code
Look at the colors definitions: In your indicator
#property indicator_color1 IndianRed
#property indicator_color2 MediumSeaGreen
#property indicator_color3 IndianRed
#property indicator_color4 MediumSeaGreen
Colorn uses the indicator signal n-1, so Color1 (indianred), uses signal mode 0 (SetIndexBuffer(0, ExtMapBuffer1))
and ExtMapBuffer1 is the signal for iCustom(NULL,TimeFrame,"Heiken Ashi",0,y)
Using an indicator written by someone else could be challenging since one needs to find out which mode to use. When creating indicators with the indicator builder, it shows the mode and calculations so integration with the strategy builder is easier. Also, the import custom indicator function gives you hints on which mode to use.


Top
 Profile  
 
 Post subject: Re: custom indicator
PostPosted: Sun Mar 06, 2011 10:58 pm 
Offline

Joined: Sun Jan 16, 2011 12:06 pm
Posts: 58
Thanks a lot for detailed explanation. You are very helpful.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by Molanis © 2009