MA HA Strategy

Strategies are published here.

Moderator: admin

Re: MA HA Strategy

Postby Apprentice » Mon Mar 26, 2018 10:10 am

by Apprentice » Tue Mar 06, 2018 10:46 pm


Try it now.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA HA Strategy

Postby Silverthorn » Wed Apr 11, 2018 7:33 pm

Thanks so much Apprentice!!!,

The error is all sorted out but it still drops the stop loss during trades.

Can you make the strategy run on one time frame but trade on another?

Time frame 1- hard coded to m1 to force the Strategy run every one min so it checks for a stop or new user created entry request every min.

Time Frame 2- User Selected time frame that it trades on and uses to calculate the bands etc.

Really appreciate your great work. This is becoming very useful!!!
User avatar
Silverthorn
 
Posts: 69
Joined: Fri Nov 08, 2013 12:29 am
Location: Brisbane Australia

Re: MA HA Strategy

Postby Silverthorn » Mon Apr 23, 2018 1:56 am

Hi Apprentice,

Just wondering.. Is there any update on this strategy yet?
User avatar
Silverthorn
 
Posts: 69
Joined: Fri Nov 08, 2013 12:29 am
Location: Brisbane Australia

Re: MA HA Strategy

Postby Apprentice » Mon Apr 23, 2018 5:12 am

Your request is added to the development list under Id Number 4116
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA HA Strategy

Postby Apprentice » Thu Apr 26, 2018 6:12 am

MA HA Strategy.lua
(43.64 KiB) Downloaded 1069 times

Try this version.

I didn't manage to figure out what you means by " still drops the stop loss during trades"
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA HA Strategy

Postby Silverthorn » Tue May 01, 2018 7:09 pm

Thanks for the update Apprentice. I'll test it over the coming week.

By " still drops the stop loss during trades" I mean that when managing an open trade it sometimes deletes the stop loss on the creation of a new candle but fails to recreate the new stop loss leaving the trade unprotected by a stop loss.

Regarding the time custom frames. I read in the Help Files for Marketscope here.

http://www.fxcorporate.com/help/MS/NOTF ... eriod.html

" Type the period of your choice in the following way:

Type the first letter of the time unit you want to use (m for minutes, h/H for hours, d/D for days, w/W for weeks, and M for months).

Type the number of time units of your choice (for m – 1, 2, 3, 4, 5, 6, 10, 12, 15, 20 or 30; for h/H – 1, 2, 3, 4, 6, 8 or 12; for d/D, w/W, and M - 1). For example, to set a two-minutes period, a three-hours period, a one-day period, or a one-month period, you should type m2, h/H3, d/D1, or M1 respectively.

Press ENTER. "

This gives us access to far more time frames than are available from the drop down menu and these are available by simply typing the time frame into the chart as a native part of the program. How can we set the strategy to trade to these other standard time frames?
User avatar
Silverthorn
 
Posts: 69
Joined: Fri Nov 08, 2013 12:29 am
Location: Brisbane Australia

Re: MA HA Strategy

Postby Silverthorn » Thu May 10, 2018 2:05 am

Hi Apprentice. Finally had a chance to test the updated version. The strategy does update every minute now but the shift in bars no longer works. The shift in points however does still work...

Any response on my previous post re. trading on the other time frames available in Marketscope?
User avatar
Silverthorn
 
Posts: 69
Joined: Fri Nov 08, 2013 12:29 am
Location: Brisbane Australia

Re: MA HA Strategy

Postby Silverthorn » Mon May 21, 2018 3:02 am

Any news?? :D
User avatar
Silverthorn
 
Posts: 69
Joined: Fri Nov 08, 2013 12:29 am
Location: Brisbane Australia

Re: MA HA Strategy

Postby Silverthorn » Mon May 28, 2018 12:23 am

Hi Apprentice,

I've been able to answer my own question re. making the additional time periods available by changing

FLAG_PERIODS
to
FLAG_PERIODS_EDIT

I've had no luck at all however getting the latest version of the strategy to run successfully.

The previous version is the best one and is the closest to functional however it still removes the stop loss on an active trade on the second candle of the trade and does not recreate it until the third candle.

Capture1.PNG
Entries are set correctly and trade executes correctly


Capture2.PNG
Stop Loss is deleted on second candle


Capture3.PNG
Stop is created again on third and subsequent candles.
User avatar
Silverthorn
 
Posts: 69
Joined: Fri Nov 08, 2013 12:29 am
Location: Brisbane Australia

Re: MA HA Strategy

Postby Silverthorn » Fri Jun 08, 2018 1:04 am

Hi Apprentice,

Would you have any idea when somebody is able to have a look at this?

It's totally unusable at the moment.

The previous version fails to create the stoploss on open positions and the latest version does very strange things and is totally unusable.

Thanks
User avatar
Silverthorn
 
Posts: 69
Joined: Fri Nov 08, 2013 12:29 am
Location: Brisbane Australia

Previous

Return to Custom Strategies

Who is online

Users browsing this forum: Bing [Bot] and 16 guests