How to make Martingale with Take Profit?
-
@biztet Probably this topic does not interest anyone

-
Yeah @ambrogio , i thought so. Maybe some couldn't think of the good use of martingale. Because most of the EAs out there that uses martingale is auto entry without any signal. That makes it more to like 1st entry's luck, not technical in strategy. Some open trade using open candle defined by the previous candle bull/bear.
What i really need to know is how to get the TP line. I'm sure it's not the value from Take Profit in BuyNow/SellNow block because the distance isn't the same. Or maybe there's a formula inside.
Yes, i agree martingale strategy can make money. Short/long term depends on the capital. For 100k still need to use 0.01 and high timeframe for longterm use. Some use it medium/high risk for few weeks just to withdraw the capital and then let the account grow slowly. -
@biztet Yes, that's right, I think so too. However the topic simply asked for a formula to have the same TP level, some genius on Fxdreema who chews algorithms should definitely know.
-
@ambrogio @biztet Hi.. I only saw this thread now... Have you guys work this out? I also had this problem then @roar gave me a good code to do the averaging with a line to work out the TP and SL
https://fxdreema.com/forum/topic/11771/mathsrand-problem -
@alphaomega thank you! I'll check this thread
-
Hi @Hadees. Instead of using pipstep for martingale, how can i make trade on every close candle, but still maintain the lot sequence and open trade only after the last@farthest partial trade? Like pipstep sequence. Thanks.
-
@ambrogio @AlphaOmega do you understand my request here? Can you help me with this please?
-
@biztet So you want every candle to open trade? Also I do not understand what partial trade you talking about? There is no partial trades brother?
-
Yes @AlphaOmega, what i mean is child trade, the following trades open after the parent trade.
-
Please refer below image.

-
@biztet I am not a coder ... so maybe try and play with this stuff till you have your setting as your picture. Also maybe make a variable to help you find the top and bottom of the candle start and end.. just an idea. I am sure more experience players will have a better idea.. now its the blind leading the blind

-
Thanks @AlphaOmega
But i really don't know how to play with the Adjust column.
But I've tried using the loop options in the For Each Trade block. Still didn't get the result like what i want.
We aren't blind, only blurrrrrr.. Hahahaha.
-
@biztet ok... what axactly is it you want.. you want to open order at start of candle 1 and the start of candle 2 then certain pips away open order at start of candle 3? Then you want another order at start of candle 4 and then start of candle 5? what does that picture actually mean?
-
@AlphaOmega it's just like martin lot with multiplier, by using pipstep, the distance between trades should be the same, right? What i'm trying to do is just instead of using pipstep, i use each candle, BUT every new trade that opens must be after the farthest.
For example, BUY trade.
0-Parent trade
If the next candle close lower than the 1st trade, open new BUY trade with higher lot size.
But if the candle close above the last trade open, do not open trade.1st child trade 0.01
2nd child trade 0.02
3rd child trade 0.03
And so on.... And the lot size is increasing.The distance between trades will not be same because it follows the closed candle price level, unlike pipstep.
-
@biztet I understand your need... But with every candle order the martingale will not work because it will be too many trades in a short space. The whole idea of martingale with children orders is to give your original negative parent order enough space for the market to turn. Anyway, I made something and gave the negative orders a minimum space of 10 pips before your candle condition. You have to alter the conditions and add some volume to each candle otherwise the expert will take orders on all small candles also.
https://fxdreema.com/shared/5iQBUgLRb -
Thank you for your effort @AlphaOmega , appreciate it.
But you know, i'm a free user, hahaha.Anyway your pips away block and condition block after do give me an idea.
Could you explain what does it mean when you put the value 1 in the image below.

And also in modify stops block with the average variable, what does it do? I see there's a Custom MQL Code for it.
-
@biztet You have been a free member for over a year now.. Time to pay up mate..
The average variable code works out the average modified tp of all lot sizes. The pink line. don't worry about that stuff. I started this code for you from a copy of another bigger expert I am busy with, so there is variables here that is not applicable to this expert
In the picture, the 1 tick setting is for you if you want to move the order entry point on the current candle. For now the order is at the 1st tick of the new candle if the price action is going up . Like I said before .. I am no coder, so, the blind leading the blind again ..lol
-
Here is an quick example of your expert with a tick volume condition added.. So I am thinking if you have good conditions this can be a good expert



-
Nice one @AlphaOmega. Some don't like martingale. But i prefer to use martingale with the parent trade open by signal, not like most martingale ea that open trade immediately after all trades closed. So i guess it won't be so heavy like most martingale ea.
-
@biztet What conditions are you using