## HA_Strategy

Strategies are published here.

Moderator: admin

### Re: HA_Strategy

Your request is added to the development list.
Development reference 1526.

Apprentice
FXCodeBase: Confirmed User

Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: HA_Strategy

HA Strategy v2.lua
(137.37 KiB) Downloaded 130 times

Try this version.

Apprentice
FXCodeBase: Confirmed User

Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: HA_Strategy

Hello Apprentice,

Is it possible to add a Martingale at the first version of HA_Strategy ?

Thank you,
Protrader

Posts: 15
Joined: Mon Jun 08, 2020 7:48 am

### Re: HA_Strategy

Your request is added to the development list.
Development reference 1635.

Apprentice
FXCodeBase: Confirmed User

Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: HA_Strategy

It opens two positions. One position could be closed with a loss and the second with profit.đ
Or both could be closed in a loss.

It's unclear what logic of martingale should be in all these cases.

Apprentice
FXCodeBase: Confirmed User

Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: HA_Strategy

The logic of the strategy with martingale is :

Just one position could be opened at a time.

When a position loses, the next position is opened with a coefficient of X (let the choice to the owner of the strategy).
Let the choice also up to a maximum coefficient

If the position is winning, do not change the position size.
If the position loses and then wins with a coefficient, the next position falls back to the starting size.

Thank you,
Protrader

Posts: 15
Joined: Mon Jun 08, 2020 7:48 am

### Re: HA_Strategy

HA_Strategy_with_martingale.lua added.

Apprentice
FXCodeBase: Confirmed User

Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: HA_Strategy

Thank you for rapidity,

I have a problem, the strategy doesn't fall back to the starting lot size when the last position with the coefficient had won.

Thank you if you can modify this,

Regards,
Protrader

Posts: 15
Joined: Mon Jun 08, 2020 7:48 am

### Re: HA_Strategy

Your request is added to the development list.
Development reference 1716.

Apprentice
FXCodeBase: Confirmed User

Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: HA_Strategy

I don't have such an issue. But I've found and another bug.

Apprentice
FXCodeBase: Confirmed User

Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

PreviousNext

Return to Custom Strategies

### Who is online

Users browsing this forum: wuhuilin11 and 6 guests