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

Mode number
http://www.molanis.com/forum/viewtopic.php?f=6&t=330
Page 1 of 1

Author:  mhaqmd [ Tue Apr 19, 2011 8:24 pm ]
Post subject:  Mode number

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 680 times

Author:  molanisfx [ Wed Apr 20, 2011 8:59 am ]
Post subject:  Re: Mode number

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

Author:  mhaqmd [ Wed Apr 20, 2011 10:42 am ]
Post subject:  Re: Mode number

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 680 times

Author:  molanisfx [ Wed Apr 20, 2011 5:31 pm ]
Post subject:  Re: Mode number

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

Author:  mhaqmd [ Wed Apr 20, 2011 6:42 pm ]
Post subject:  Re: Mode number

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

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/