HA_Strategy

Strategies are published here.

Moderator: admin

Re: HA_Strategy

Postby Apprentice » Sun Jun 21, 2020 4:13 am

Your request is added to the development list.
Development reference 1526.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: HA_Strategy

Postby Apprentice » Wed Jun 24, 2020 5:40 am

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

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: HA_Strategy

Postby Protrader » Sat Jul 04, 2020 7:21 am

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

Postby Apprentice » Sun Jul 05, 2020 1:20 pm

Your request is added to the development list.
Development reference 1635.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: HA_Strategy

Postby Apprentice » Mon Jul 06, 2020 11:40 am

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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: HA_Strategy

Postby Protrader » Tue Jul 14, 2020 1:14 pm

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

Postby Apprentice » Thu Jul 16, 2020 5:54 am

HA_Strategy_with_martingale.lua added.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: HA_Strategy

Postby Protrader » Thu Jul 16, 2020 12:34 pm

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

Postby Apprentice » Fri Jul 17, 2020 4:34 am

Your request is added to the development list.
Development reference 1716.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27940
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: HA_Strategy

Postby Apprentice » Fri Jul 17, 2020 5:17 am

I don't have such an issue. But I've found and another bug.
User avatar
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: No registered users and 7 guests