Profitable Index Hedger EA
-
Hello Everyone,
Heres my project https://fxdreema.com/shared/cB5piSJqd
The EA is working perfect at Moneta Markets for DJ30.
Maximum spread allowed for testing is 140But it has one very dangerous bug. That one is that it doesnt make the lotsize changes correctly. Sometimes it jumps from lotsize 0.02 to 0.16 for example but it shall go like 0.01, 0.02, 0.04, 0.08, 0.16, 0.32 and so on. Pressuposed you set the Multiplicator to 2.
You even can make use of the EA if you set the Multiplicator to 1 then its already profitable. Maybe the best Number for the Multiplicator is 1.5
But as I said there is this bug with the lotsize and I dont know how to fix it
Anyone please create an example of this EA so that it does make the lotsize changes correctly
Maybe I have to create something with pink for each trade Block and in combination with that also something with once per Trade/order Block.
Please create an example
Here is another way of this EA -but-
Its having EXACTLY the same problem
https://fxdreema.com/shared/tDz12bxvb -
What is the exact purpose of blocks number 3? I don't understand the logic behind it.
-
@Joomlun Well, It doesnt solve my current problem with the EA and thats bad. But it is a very good question as you can see if you set the Trailing_Pips_Distance INPUT to 5000 for example or higher. Seems like the EA is working much better then. So that means if you would delete Block 3 the EA seems to work much better.
usually the trailing pending orders Block number3 I did add just not to pass out anywhere into nowhereland once an order was created.
But still please answer to my very first question according to the lotsize problem or in best case create a working example please
-
@Joomlun But why do you need to trail the position of your pending orders exactly? That has nothing to do with the lot size issue. It's simply that I don't see why you are connecting so many blocks below it. What's the logic behind that?
In order to fix the lot size issue you neeed to use variables controlling it wvery time a trade is closed.
-
If you PLEASE just could create an example for me how to fix the lotsize issue. (while not worrying to much about the trailing pending orders Block. This I would explain lateron)
The lotsize should work like in this project. https://fxdreema.com/shared/euEc6d2A
Its something like a faked version of this project above https://fxdreema.com/shared/J4rZgj3F
And for both EAs its a fact that they work much worse without the Trailing Pending Orders Block
Here is another EA that a bit similar to the first one But with fixed TP and SL. Please test it (maximum spread allowed 140) and tell me what you think of it according to live mode. Because in the tester I guess it works much better than in truth
-
Here is a reversal version for DJ30 using...- THE TRAILING PENDING ORDERS BLOCK IS FOR ENTRY OPTIMIZATION
https://fxdreema.com/shared/CNc31rf6b
Heres the better version. If that makes the same results that it makes in the tester in live mode then it is a good EA!
-
@Joomlun You need to create a variable to be used on both buy/sell now blocks. Then, in the 'on trade' tab you need to create this structure that will be doubling lot size every time a trade hits its SL.

However, please remember that you will have to reset the variable to the original value when needed.
-
The EA doesnt have a Stop Loss.
Then, in the 'on trade' tab you need to create this structure that will be doubling lot size every time a trade hits its SL.
It needs to be like dubble lots once per all (x)trades per one direction(for example Long) if after all x long trades there happens a sell trade the lotsize for this sell trade shall be dubbled and keep the same for all the following sell direction trades... Only ifafter the sell (xtrades) again there happens trade into buy direction the lot size shall be dubbled again and so on till TP All because this hedger doesnt provide a stop loss
-
Ok. So how many trades in one direction are necesary for the EA to double lot size in the opposite one?
-
Anything between 1 and infinitely thats the problem otherwise I would use an once per trades block and set the wanted number. Maybe you have an idea how to create a variable for this. That means if after x(variable) buy trades a sell trade occurs then for this sell trade the lotsize shall be used buy lot * 2 and every following sell trade in loop lotsize current volume until a buy trade occurs same scenario as before but now ... like with zone recovery ea basically for the lotsize changes and any follow trade in loop lotsize current volume
Here is an example of the EA thats very near to the final but it also didnt work correct according to the lotsize changes and I and PLEASE tell me what to enter into the once per trade/order block YES or NO?
What makes the difference?