Hedgin EA with martingale
-
Hello All,
I have looked through many different topics but cannot find the exact flow of things for my idea. I have tried building an EA about 5 different times but cannot get it to work as I am not too familiar with dreema. I am learning but want to get this code correct to test and go from there. I am on a blank slate right now. Here is what I want to accomplish.
-
Open a market buy and market sell simultaneously each with a TP of 15 pips.
-
Whichever way the market moves great, I want the losing trade from above to martingale at a pip step of 7, or every 7 pips away from the entry price at a multiplier of 1.2 (first order lets say 1 lot, the next order would be 1.2 and so on.)
-
Last thing, this goes on until the TP is hit and at that point I would like the EA to open a new order same type as the one that hit the TP. So at this point, one order would have hit TP, the other order would be martingale all the way down, and a new order would be opened when TP is hit.
If possible I would like the martingale to calculate by averaging the price and lot size to determine a profitable overall pnl to close out the trades that it is in.
If anyone can help me, it would be greatly appreciated. Any input, thanks in advance a ton!
-
-
I don't want someone to build just someone to help me build it. thanks again!
-
That is a very complex bot. Did you create any initial project to begin with?
-
@l-andorrà yes but i scrapped it multiple times because i was sure it wouldn't work and i didnt have a good understanding of how the software works. I have a bot that works perfectly for martingale part, just need to add in the other half of the equation.
-
-
I recommend it:
-
@PhiLykia thanks! I am checking it out now! This is great help. going to go through each thing and check out what you did so i can learn and test it.
-
Update: Here is what someone helped me build but still not to what i was describing. If anyone could chime in on this, it would be much appreciated! Thank you all! https://fxdreema.com/shared/vV6nLDY3e
-
Block 8 is pointing to itself. I guess it should point to block 20 maybe?
-
@tblaze16 you are doing it by heart. try to understand first, why you should "Turn Off" and then "Turn On" in which case. If you do not know your strategy step by step, it is inevitable that you will lose money.
-
I can write out the exact strategy that needs to happen, i just cant translate it into the builder.
-
@PhiLykia
I can write out the exact strategy that needs to happen, i just cant translate it into the builder -
@l-andorrà ok, i can change that. Do you understand fully what I am trying to build?
-
Can you please share the last version of the project?
-
@l-andorrà sure, here you go https://fxdreema.com/shared/Rfo2Fz2rd
-
Blocks 26 and 29 cannot work because there is no option for negative numbers when considering open trades. Lower than 0 means -1 and can't be -1 open trades.
-
@l-andorrà ok. i dont understand. what do i need to change on those two blocks?
-
Well, I would definitely appreciate what do you need exactly? Are you trying to limitate the maximum number of open trades? If so what is that maximum?
-
@l-andorrà I will message ya in a DM
