I have attached an ea which is basically a martingale that will open a new position every x pips when the price goes against the previous order... etc.
What I would like to do is to do the exact opposite.
I would actually like to open a new position every x pips in the same direction as the trend, so that say i buy at 1.4000 and my pip distance is set to 20, then a new buy will be placed when the price gets to 1.4020.
I hope that's clear and that someone can point me in the right direction.
Make Grid 193
Here is a grid EA with many settings. You should be able to program to your liking. Trade small with grid trading, lots will eventually add up. There are also EA's to close all positions based on criteria you choose. Can be helpful. As much as Good luck.
grid but not martingale
I was also thinking on those lines and I edited this EA provided by nanningbob. I do not know anything about programming yet but I tested this EA and it does place orders in the way you mentioned. Put the Reverse condition to True to place sell orders. Optimum settings needs much experimenting.
Please provide any info on the progress.
100x80 BUY 8L .02-edit.ex4
Could you tell me what coding changes you made? I had a good look (as a non-programmer) but couldn't find where to make the changes.
Any particular reason you posted an ex4 and not an mq4?
I'll test it once the markets are back to normal spreads and volumes.
There are many possibilities here, we can use this during trending time or as a hedge along with regular EA. We have arrive at TP and Pips.
My idea is to use use 1.0 as multiplication and/or use equal TP and Pips.
When market is ranging regular EA is better.
There are many unwanted portions which needs to be trimmed and I am looking forward to playing with it.
100x80 BUY 8L .02-edit.mq4
Jim4x, I back test your ea but it does not open any position. By the way if you want to reverse, you just need to change
if ((LastPrice-Ask)>=Pips*Point || OpenOrders<1)
to if ((Ask - LastPrice)>=Pips*Point || OpenOrders<1)
if ((Bid-LastPrice)>=Pips*Point || OpenOrders<1)
to if ((LastPrice - Bid)>=Pips*Point || OpenOrders<1)
sorry i didn't read all your code but it should be work when you change that.
Regarding all of the these EA's, is there any performance data on how they do and on what currency pair? How many positions can they open before they crash your account or do they have a max loss % built in? I love the idea of these martingale style EA's, but I'm a little concerned about crashing an account.
This is exactly what I was looking for, but is it me or it it only allowing buy positions?
Here I am posting again both Buy and Sell separately.
Change TP, Pips (Steps for successive orders), Multiply (Increase in lotsize for successive orders) etc. to suit your requirement. You can experiment for different pairs, running both buy and sell simultaneously.
It's on this thread:
What would you do when the market goes against your order? Take a cut losss or do the Martingale avg down?
Subs. Thanks and
© Forex Factory