MA HA Strategy

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

MA HA Strategy

Postby Silverthorn » Thu Dec 21, 2017 10:50 pm

Hi Apprentice,

I've been using your shifted moving average indicator (SHIFT_MA) applied to the High, Low and Open of a HA chart for some time now for manual trading and am wondering if it is possible to create a Strategy for it. Trade conditions etc are as follows.

Trade Settings

Allow Long Trade
Allow Short Trade
% of Account to Risk per trade

Band Settings

MVAType
Periods = X
Channel Padding = Y

Indicators

HA
Upper Band = SHIFT_MA(HA(Current Symbol).high,MVAType(X),1 bars,Y points) ASK
Lower Band = SHIFT_MA(HA(Current Symbol).low,MVAType(X),1 bars,-Y points) BID
Centre Band = SHIFT_MA(HA(Current Symbol).Open,MVAType(X),1 bars,0 points)

Method

On every new candle

If Long Trading is allowed and no Long Trade is Active
Calculate the Lot Size to trade
Place Entry Order at the Upper Band
Place Stoploss at the Centre Band
If Long Trading is allowed and Long Trade is Active
Place Stoploss at the Centre Band
If Short Trading is allowed and no Short Trade is Active
Calculate the Lot Size to trade
Place Entry Order at the Lower Band
Place Stoploss at the Centre Band
If Short Trading is allowed and Short Trade is Active
Place Stoploss at the Centre Band

Thanks in advance for your help.
User avatar
Silverthorn
 
Posts: 69
Joined: Fri Nov 08, 2013 12:29 am
Location: Brisbane Australia

Re: MA HA Strategy

Postby Apprentice » Fri Dec 22, 2017 5:08 am

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

Re: MA HA Strategy

Postby Silverthorn » Fri Dec 22, 2017 6:35 am

Hi Apprentice,

I just realised after rereading that I made a mistake in the methodology. The stop loss is placed at the opposite outside band and then moved to the centre band on the next candle. The trading method should read.

On every new candle

If Long Trading is allowed and no Long Trade is Active
Calculate the Lot Size to trade
Place Entry Order at the Upper Band
Place Stoploss at the Lower Band

If Long Trading is allowed and Long Trade is Active
Place Stoploss at the Centre Band

If Short Trading is allowed and no Short Trade is Active
Calculate the Lot Size to trade
Place Entry Order at the Lower Band
Place Stoploss at the Upper Band

If Short Trading is allowed and Short Trade is Active
Place Stoploss at the Centre Band

Sorry about that..

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



Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 27 guests