Reply

Martingale strategy

11 replies

Mark Fric

Administrator, sq-ultimate, 2 replies.

Visit profile

11 years ago #110835

It is an often question if you can create Martingale strategy in EA Wizard.

I created simplified on just for the test.

It has 3 levels:[list=1]
[*]if CCI crosses above 0 it opens order with PT=20 pips and SL = 20 pips with 0.1 lots size
[*]if first order ends at SL, it opens second order with the same PT/SL with 0.2 lots size
[*]if second order ends at SL, it opens third order with the same PT/SL with 0.3 lots size
[/list]

after that it ends.

If any of the orders ends with profit, it will open next order normally at 0.1 lots.

The strategy is just as a sample, it contains only long rule.
Stop Loss level is tested manually in the condition, so that we can make the appropriate action when it is hit.

Mark
StrategyQuant architect

0

stearno

Customer, bbp_participant, community, 379 replies.

Visit profile

11 years ago #120789

Thanks for these examples. It helps us to align our thinking!

0

jonnywolf

Subscriber, bbp_participant, community, 25 replies.

Visit profile

11 years ago #121177

Just seen this will take a look later.

0

mmsk

Customer, bbp_participant, community, 2 replies.

Visit profile

11 years ago #121581

What if I dont want to close existing orders? just want to open additional order with double quantity. I tried to modify but it looks like StrategyQuant doesnt allow to have multiple orders with same quantity open. Is that true?

0

ramacan

Subscriber, bbp_participant, community, 72 replies.

Visit profile

11 years ago #121595

You have to assign a new magic number.

0

Mark Fric

Administrator, sq-ultimate, 2 replies.

Visit profile

11 years ago #121642

What if I dont want to close existing orders? just want to open additional order with double quantity. I tried to modify but it looks like StrategyQuant doesnt allow to have multiple orders with same quantity open. Is that true?

 

yes, you can open multiple orders at the same time but you have to use a special Magic Number for every new order. 

Mark
StrategyQuant architect

0

Nufty

Subscriber, bbp_participant, community, 15 replies.

Visit profile

10 years ago #121978

Having a look at this one – I want to try add a Martingale to a strategy – I hope this will help!

0

force199

Subscriber, bbp_participant, community, 11 replies.

Visit profile

10 years ago #123151

Hi Mark,

 

I want to input a user variable in my martingale strategy so that I can choose within the EA input settings, how many times my trades will double before they quit.

 

How do I create this setting for the EA?

 

Also, I only just saw your martingale example, whereby you create every new doubled trade as a new rule, on my one I have done every new doubled trade as a new ‘THEN’ setting. This was before I saw your example. Does this mean my method won’t work and I have to redo it all?

 

All the best,

 

SM

0

javiersfr

Subscriber, bbp_participant, community, 39 replies.

Visit profile

10 years ago #123830

Hey guys,

 

I really like this topic.

 

I was obstinate with this kind of rules since I started having fun ( 😉 ) with Forex.

 

The problem I saw, at the beginning with Casino’s rule (which Mr. Fric introduced at the beginning) is we are reaching 2 or 4 lots easily if we are creating several levels. 

 

My results were not good enough though.

 

I tried to attach an example  (according to what mmsk stated) but I couldn’t because of KB. Any way of doing it?

 

I’ll be back to you with new comments.

 

Have a nice day!

0

geodepe

Subscriber, bbp_participant, community, 1 replies.

Visit profile

8 years ago #133486

I think this martingale strategy is incorrect.

 

In step 3:

  • “3. if second order ends at SL, it opens third order with the same PT/SL with 0.3 lots size”

I think martingale states that the bet should double. 

 

So the lot size should be 0.4 lots.

 

Regards,
Geodepe

0

Jethro69

Subscriber, bbp_participant, community, 3 replies.

Visit profile

8 years ago #133508

Let me dedust this thread a bit 😉

 

I’ve got the EA-Wizard less than 24 hours, so excuse my ignorance… Tried a bit around with a Grid system, and succeeded (more or less), even if it’s much more of a workload than I hoped for. 

What I learned until now is that we cannot create baskets using the EA-Wizard, or well we can create them using different Magic numbers. The problem will be the exit strategy, so I’m wondering if there are ways to check if all trades are in plus for a certain amount and then close all the trades. Best would be of course if that could be done with long & short trades separately. At least it would be better for back testing results. However, if not one could overcome that issue to make 2 different EA’s one for long and one for short trades, and run them in two charts. At least that’s what I do with other Grid traders, which cannot manage to open (long / shorts) at a time.

 

Bgrds, Jethro 

0

Jethro69

Subscriber, bbp_participant, community, 3 replies.

Visit profile

8 years ago #133526

Well, defenitely possible to create a grid system with Ea-Wizard, have done a first test, with 3 exits, 1. TP, 2 . TS, 3. Amount => close all trades. So seems that have to stay this way that you create different EA for long and shorts. Probably, there could be made calculations to get everything together with a lot of variables and functions, but I created already a monster with almost 784 kb for the .mql file and that’s only for the long trades. 😛 Back testing  ‘‹’‹is for sure much slower than on anything I tested before, so seems a lot of calculations are going on ?

 

However, got already ideas how to improve.

 

 https://imgur.com/h3BQoCn

0

Viewing 11 replies - 1 through 11 (of 11 total)