Create a simple Martingale - page 5

 
Peter_Zabriski:

Me too - with respect. I have great respect for people who are willing to lay their lives at the stake for 2x2 = 13.

Otherwise. The sooner you understand, the easier and cheaper it is for you. Believe me, all my arguments will be shattered by your romantic-mercantile mood. It just doesn't work. You have to get over it.

===
However... It's up to you... #beat it.


"I want it more than it hurts" is a good saying! I hear you, but so far no one has offered to buy an owl that will make money, so I'll have to rack my brain and rack my brains!
 
VitaliyBerkut:

But so far no one has offered to buy an owl that will make money

No one will offer.

 
VitaliyBerkut:

"Wanting is stronger than hurting" is a good proverb! I hear you, but so far no one has offered to buy an owl that will make money, so I'll have to strain my brain and rack my brains!


you've been hinted at... tradelikeapro... there's owls for a thousand bucks free... with monitoring and stuff...

go there, it's all good... :-))) and you don't have to buy anything... they have already bought it for you...

 
zoritch:


you got the hint... tradelikeapro... there's owls for a thousand bucks freely available... with monitoring and so on...

go there, it's all good... :-))) and you don't have to buy anything... they already bought it for you...


Very clever )))) You make your own millions on this site!
 
VitaliyBerkut:

You make millions for yourselves on this website!
Oh yeah, you're right. I used to want someone to make millions for me too, but it didn't work out. I had to do it myself. I've already made a couple million dong.
 
VitaliyBerkut:

 Может есть какие то курсы, типа: " MQL  для чайников" ???Хотел бы научиться, но научиться до профи!


here

Tatarenko:

here


and then download the textbook from the main page.


Programming is different.

someone sees it as a craft

the other just as a job

I think of it as art and a creative process


(C) YURAZ

 
VitaliyBerkut:

Hello Dear Traders! I am asking you to create a simple Expert Advisor, based on Martingale. I would like to make an EA, which would increase lot size with certain amount of times after a losing trade, and open trades with МА indications.

The candlestick closed above the MA - the first deal is Buy, below - Sell, then the logical chain!

Variables

MagicNumber- order identifier
Lot- initial lot size
TakeProfit- TakeProfit in points
StopLoss- stop loss in points
MultyLot- how many times the lot of the next trade will be doubled after the loss-making one
Logic- trade opening logic ( value - 1, 2, 3 or 4)
OneSetka- (true - only one logical grid opens in the direction of MA, false - 2 grids work)
if the price is higher than MA and the first deal (Buy) is opened in the mode true - deals are opened only in the
a logical chain starting from the first trade, and if the mode false - when the price is open in
in one direction, after the MA is crossed in the other direction, a grid with its own logical chain is opened!
chain!

Adjustments of Moving Average

МА_Work- true or false (if true - the first trade opens on the candle's close in the direction of the MA according to the logic set below, and if false - the orders are opened not according to logic, but simply
at the close of the candle with a further increase in the lot, if the candle is bullish - buy, if bearish - Sell and after a losing trade, the following trades are opened not considering the MA and the logic below, and
just on candle's close!
MA_period - period of Moving Average
MA_metod- method of averaging moving average
1 - Simple
2 - exponential
3 - Smoothed
4 - Linear Weighted
Shift - "0" zero

Apply to - close

Opening logic

1st Logic grid

EXAMPLE of grid
Lot - 0.1 Lot - 0.1
MultyLot - 2 MultyLot - 2
Price HIGH MA Price LOW MA

Buy - 0.1 Sell - 0.1
Sell - 0.2 Buy - 0.2
Buy - 0.4 Sell - 0.4
Sell - 0.8 Buy - 0.8
Buy - 1.6 Sell - 1.6
Sell - 3.2 Buy - 3.2
Buy - 6.4 Sell - 6.4
and so on, until take profit is hit, after take profit the first deal
Opened with the lot size specified in the settings - Lot - that is, with the minimum!

2nd logical grid

EXAMPLE of a grid
Lot - 0.1 Lot -0.1
MultyLot - 2 MultyLot - 2
Price HIGH MA Price LOW MA

Buy - 0.1 Sell-0.1
Buy - 0.2 Sell-0.2
Sell - 0.4 Buy -0.4
Sell - 0.8 Buy -0.8
Buy - 1.6 Sell-1.6
Buy - 3.2 Sell-3.2
Sell - 6.4 Buy -6.4
Sell - 12.8 Buy -12.8
That is two orders of the same type and so on, until take profit is hit, after take profit the first deal
opens with the lot size specified in the settings - Lot - that is the minimum!

3rd logical grid

EXAMPLE of a grid
Lot - 0.1 Lot -0.1
MultyLot - 2 MultyLot - 2
Price Above MA Price Below MA

Buy -0.1 Sell-0.1
Buy -0.2 Sell-0.2
Buy -0.4 Sell-0.4
Sell -0.8 Buy -0.8
Sell -1.6 Buy -1.6
Sell -3.2 Buy -3.2.
That is three orders of the same type and so on, until take profit is hit, after take profit the first order
Opened with the lot size specified in the settings - Lot - that is the minimum!

4th logical grid

EXAMPLE of a grid

Lot - 0.1 Lot -0.1
MultyLot - 2 MultyLot - 2
Price Above MA Price Below MA

Buy -0.1 Sell-0.1
Buy -0.2 Sell-0.2
Buy -0.4 Sell-0.4
Buy -0.8 Sell-0.8
Sell -1.6 Buy -1.6
Sell -3.2 Buy -3.2
Sell -6.4 Buy -6.4
Sell -12.8 Buy -12.8
That is four orders of one type and so on, until take profit is hit, after take profit the first deal
opens with the lot size specified in the settings - Lot - that is the minimum!

IMPORTANT!!!
Take Profit and Stop Loss should be set at the moment of opening a trade, not after the order is opened!
The advisor has to work without interfering with other advisors on one currency pair and in the terminal in general!
All deals are opened on the close of the candlestick!
If a candlestick closed below the MA, and not its tail!
It is important that in the OneSetka - false mode the Expert Advisor doubles the lot for each grid separately, and does not touch the orders of the other grid!
The Expert Advisor should work on both five- and four-digit charts, with a fixed spread and floating!

Initial parameters of the Expert Advisor


MagicNumber - 1234567
Lot - 0.01
TakeProfit - 10
StopLoss - 10
MultyLot - 2
Logic - 2
OneSetka - false
MA_period - 21
MA_metod - 3













 

I once played roulette using the martingale system.

I earned something, lost something... And then I got the idea why not to try this system in Forex))))

I built a simple Expert Advisor, which randomly opened deals and then doubled the lot.

As soon as I got to 10 losing trades in a row, the tester slowed down. I had not enough money to open 10.24 lots. Of course I started with 0.01 lots.

I have come across one Expert Advisor on forums that may give me small amount of losses. I added martingale into it and it started bringing profit.

(See what happened and maybe it will help you)))) But my enthusiasm has gone down))))

Files:
mm_mm.mq4  8 kb
 
Baronardi:

I once played roulette using the martingale system.

I earned something, lost something... And then I got the idea why not to try this system in Forex))))

I built a simple Expert Advisor, which randomly opened deals and then doubled the lot.

As soon as I got to 10 losing trades in a row, the tester slowed down. I had not enough money to open 10.24 lots. Of course I started with 0.01 lots.

I have come across one Expert Advisor on forums that may give me small amount of losses. I added martingale to it and it started bringing profit.

(Anyway, look what I've come up with, maybe it'll help you somehow)))) But the enthusiasm is honestly diminished))))


If in roulette the simple law of betting limits will throw you out of the casino, then Forex is even cooler and more flexible....

it will bend and grind... don't forget that financial speculation is well over a hundred years old...

Do you think millions of American brokers, for example, are stupider than you ... ?

They will still teach you how to build... :-))) what the fuck tester is out there... you want to multiply ten quid ? ... :-)))

 
zoritch:


if in roulette a simple betting limit law will throw you out of the casino, forex is even tougher and more flexible....

it will bend you and grind you to a pulp... don't forget that financial speculation is well over a hundred years old...

do you think millions of americans brokers for example are more stupid than you ... ?

They will still teach you how to build... :-))) what the fuck tester is out there... you want to multiply ten quid ? ... :-)))


)))) yes I'm well aware that I'm not the smartest person on this planet))))

I just want to understand why martingale does not work in Forex.

As VitaliyBerkut said : it works for a long time and I used it on a real account, but manually.

Here it works manually, as long as you have analysis no matter what and the probability of winning is over 50%.

It's more difficult to teach it to an Expert Advisor))) I already understood that

Because it either will make 20 losing trades in a row or will make a deal once a week at 0.01 lot and leave by TP at few points)))

And even though I have to keep a large deposit for safety ... The Grail is not built on it))))

But I think if you sit long and hard at this topic, you can write something acceptable... But Martingale used only as a tool, and not the basis for trading!!!

So before you think about Martingale, you should write any Expert Advisor, which would do three things

1) no more than 5-7 losses in a row

2) the percentage of profitable trades should be no less than 40%

3) the average profit should not be lower than the average loss...

And then you can connect martingale to this advisor...)))) to pawn a flat to provide a large deposit))))) and sleep peacefully in a tent))))