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 Mon Apr 29, 2024 10:06 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Mode number
PostPosted: Tue Apr 19, 2011 8:24 pm 
Offline

Joined: Sun Jan 16, 2011 12:06 pm
Posts: 58
I love an indicator I got from someone. I need to incorporate it in my strategy. I want to buy when medium violet red line crosses above deep sky blue line. I need to find out which mode number to use for deep sky blue and which moode number to use for medium violet red.
I will greatly appreciate your help. :D :D :D


Attachments:
Hull_Trend.mq4 [3.71 KiB]
Downloaded 674 times
Top
 Profile  
 
 Post subject: Re: Mode number
PostPosted: Wed Apr 20, 2011 8:59 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Looking at the code
#property indicator_color1 Blue
#property indicator_color2 Red
#property indicator_color3 DeepSkyBlue
#property indicator_color4 MediumVioletRed

SetIndexBuffer(0, HighBuffer);
SetIndexBuffer(1, LowBuffer);
SetIndexBuffer(2, ind_buffer0);
SetIndexBuffer(3, ind_buffer1);

It seems that MediumVioletRed is the ind_buffer1 mode 3; and DeepSkyBlue is the ind_buffer0 mode 2


Top
 Profile  
 
 Post subject: Re: Mode number
PostPosted: Wed Apr 20, 2011 10:42 am 
Offline

Joined: Sun Jan 16, 2011 12:06 pm
Posts: 58
I developed very basic stratrgy based on Hull Moving average indicator that should buy when mediumvioletred crosses above the deepskyblue and sells when opposite happens. My strategy has not made a single trade while it has crossed mu;tiple times. Can you take a look. Molanis strategy file is attached.


Attachments:
HullMA.mol [13.53 KiB]
Downloaded 674 times
Top
 Profile  
 
 Post subject: Re: Mode number
PostPosted: Wed Apr 20, 2011 5:31 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
There is an error on the CL icons. You use
"30 Hull_MA", 30, PRICE_CLOSE, 0
The indicator you posted is Hull_Trend.mq4 so you imported a wrong indicator. Just import the right one. (it should look like the conditions for sell and buy)
Also in all options change 5 min for current timeframe that way it will work in all time frames. ONLY use fixed time frames when creating multi timeframe eas.
Start with a basic strategy. Maybe ma1>ma2 with shift 0, see how it works (using ticks or bars). Use visual backtesting, then see how it trades. Then when you are sure it works add the other trading conditions. Start simple - make sure it works, and build on top


Top
 Profile  
 
 Post subject: Re: Mode number
PostPosted: Wed Apr 20, 2011 6:42 pm 
Offline

Joined: Sun Jan 16, 2011 12:06 pm
Posts: 58
Thanks a lot. Your sharp eyes caught a mistake that I could not figure out myself. You guys are awesome. It could not be possible without your help and you guys are so fast in responding to questions that it amazes me.
Thanks a lot again.

Masroor :D :D :D :D :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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:  
cron
Powered by Molanis © 2009