Making a grid....
-
Hello all..... im trying to create a grid.... with 30pip and 40pip steps...
This is how i use the "pips away"-block... and it creates a grid with 30pip distance....

my question is, i want the grid to be like this.... first a step of 30pips, after that a step of 40pips.. next step 30pips, next 40pips... and so on.....
is there a way i can loop or make the ea to enter with a 30/40pip grid ?thanks
-
No one ?
-
Hello!
Here's how I would do it. It's a bit tricky for a beginner, but hope you will get the hang of it
Sorry I can't help you any further, as I got tons of work to do today. -
I don't know if this is what is wanted, but: https://fxdreema.com/shared/wUkmrbYVd
This is my result:

I don't know what stops to use, so I don't use any stops. -
@fxdreema
Very interesting answer; it works perfectly.
And if the next step, instead of starting from 30, was 50 pip and so on?Type: 1 step = 30 pips, 2 steps = 40 pips, 3 steps = 50 pips, 4 steps = 60 pips and ... so on?
Can you give me an indication of the code you have already done?
Many thanks
-
@bigape
Hi, could help me, please? -
https://fxdreema.com/shared/UJeap4JMd
Note that this works when you have 1 trade at a time, because the variable is one
-
@fxdreema
Many thanks, I will try it.Very good! It's work perfectly.
Thanks, again. -
@fxdreema
Hello! I'm new to this platform and coding as well. I have a very simple "EA" that detects simple price movement and opens a buy or sell trade. I'd like to add averaging function to save the loosing trades.Example for BUY trades:
- EA opens a BUY trade
- Price falls with 50 pips -> new BUY trade opens
- Price falls with 50 pips again -> another BUY trade opens
- this continues...until I have enough balance

- Finally when the sum of ALL OPEN TRADES go plus by 5 pips it would close ALL trades.
I tried your code and tried to connect with my EA but it didn't work as I wanted. It added a new trade everytime the price changed X pips. Of course I only wish to add a new position after the: last trade +/- X pips (depending on sell or buy).
Can you help me out?

-
Hello!
I modified my script and found a way to be able to achive what I originally wanted.
Now it works almost perfect. What I would like to know if it is possible to:
- use the "pending orders in grid" without actually placing them. They would get activated once price reaches their prices. Hidden orders..
- I don't want to use martingale. I'd like to use the original lot size for the first 3 trades (original+2 grid level). Then the 4th trade should be a greater volume let's say 2x the original lot size.
Here's my EA so far:
https://fxdreema.com/shared/RAV3ZHr2eThanks!
-
Anyone ?
-
Anyone ?
-
I think the first example will work if you use negative value for Averaging:

Instead of "add to volume" you can use the original Buy and Sell blocks, so you can use their money management settings. There is a "Betting: Custom Sequence" option as well. If you want to separate the money management rules between Buy and Sell trades, then you should use different Group number for the Buy part and for the Sell part
-
@fxDreema It couldnt work.
-
simple 100 pips GRID for buy only every order with TP
