MA Advisor (corrected version)

Strategies are published here.

Moderator: admin

Re: MA Advisor (corrected version)

Postby Apprentice » Wed Apr 27, 2011 4:18 am

ma_advisor_with_ADX_Filter.lua
(18.42 KiB) Downloaded 1218 times

ma_advisor_with_ADX_Filter.lua.rc
(42.58 KiB) Downloaded 1166 times


This version has an ADX filter.
Get in position if ADX suggests the existence of a strong trend.

There is an additional option.
Close position if the trend is weak.
(This option can be used separately.)
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Advisor (corrected version)

Postby josh2011 » Wed Apr 27, 2011 3:40 pm

Hello Apprentice,

Thanks for the great work! I'm so happy for the ADX filter you added to the MA ADVISOR, it was simply magnificient!..I have tested it already and seems to be working fine. But for it to be very profitable, trade entry trigger has to be confirmed by RSI MID-LINE CROSS. I have tested this manually several times and it is profitable. Please can you add this additional filter to it? I know this will be asking for too much. I appreciate.

Joshua
josh2011
 
Posts: 8
Joined: Thu Apr 21, 2011 5:02 pm

Re: MA Advisor (corrected version)

Postby Apprentice » Thu Apr 28, 2011 5:46 am

Sure.
I will add this filter.
When I find time.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Advisor (corrected version)

Postby josh2011 » Thu Apr 28, 2011 5:50 am

Thanks Apprentice for your genuine help.

Cheers from Abu Dhabi. :D
josh2011
 
Posts: 8
Joined: Thu Apr 21, 2011 5:02 pm

Re: MA Advisor (corrected version)

Postby nookie » Fri Jul 08, 2011 6:18 am

Hi Apprentice,

I cant find where the strategy closes the initial position and what are the rules for it - DMI lines crosses or this is a strategy with always an open position ? What are the rules in this strategy for a position to be closed ?
Is it possible this to be tweaked so when DMI lines cross position is closed and also this to be shown when a "test strategy" is used for this?
What I mean is shown on the screenshot I attach - strategy opened position just fine and to close it on this DMI cross on the arrow.. to have something like "CLOSE position" or something similar

Thanks a lot

nookie
Attachments
ma advisor with adx.GIF
nookie
FXCodeBase: Graduate
 
Posts: 203
Joined: Tue May 24, 2011 12:50 pm

Re: MA Advisor (corrected version)

Postby josh2011 » Fri Jul 08, 2011 3:37 pm

Hi Apprentice,

How are you and how is work? Thanks for last time when you acceded to my request of adding the ADX filter to the MA_ADVISOR strategy. It was great. However, I want to make a very humble request.
1. Can you include open/close BUY and SELL order function to trigger when both MAs cross each other? and this should be optionally selected in the strategy parameters. Currently, the MA ADVISOR only opens a position when the MAs have crossed WITH PRICE CLOSING. I would like to see open positions when MAs have crossed whether price closes or not. In the same vein, I would also like an open position to close when the two MAs cross back in the opposite direction which will trigger an open order in the new direction of the MA cross.
2. Can you include the "number of pips" after the MA cross before an order is open or closed? This should be optionally selected by the person using it.
3. Like I requested before (months back actually), can you include the RSI (level 50 cross)filter to this already great strategy?

If you can do this for me, I will gladly post the parameters that I used to obtain the result that yielded 66.6% returns after 240days of trading(back-tested). And this will benefit the forum. See attached. Thanks
Attachments
EURUSD 240 DAYS.png
EURUSD 240 DAYS BACK-TESTED RESULT USING MA_ADVISOR STRATEGY.
josh2011
 
Posts: 8
Joined: Thu Apr 21, 2011 5:02 pm

Re: MA Advisor (corrected version)

Postby Apprentice » Sat Jul 09, 2011 3:21 am

I am on vacation until August 15.
Therefore, the best thing I can do for you is to put your request in developmental cue.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Advisor (corrected version)

Postby sergesp » Tue Apr 24, 2012 9:27 pm

Hi - I have been trying to add a modification to this strategy without much luck.


Would it be possible to add a SAR indicator so that one can check if SAR up or down is present and then compare the last SAR value with price and the two MA value to decide if one wants to open a position. ie how to add a SAR indicator and access the direction and values and also the price and EMA values.

Thanks
sergesp
 
Posts: 18
Joined: Thu Mar 01, 2012 6:28 pm

Re: MA Advisor (corrected version)

Postby Apprentice » Wed Apr 25, 2012 3:01 am

It is possible, someone will prepare something.
Until then, look at an example of a similar solution.
viewtopic.php?f=31&t=13376&hilit=sar
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Advisor (corrected version)

Postby sergesp » Wed Apr 25, 2012 8:05 am

Apprentice wrote:It is possible, someone will prepare something.
Until then, look at an example of a similar solution.
viewtopic.php?f=31&t=13376&hilit=sar


Thank you very much - looking at other example but eagerly awaiting the modified version. Thanks again. :)
sergesp
 
Posts: 18
Joined: Thu Mar 01, 2012 6:28 pm

PreviousNext

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 10 guests