dear senior and forum community, please help
i trade with grid using ea, i want ea open new position only if no position in the same area
example using grid 50 point, current price is 1.5000, then price move to 1.5050 (if no position active at 1.5050 then open new buy, but if there is active position at 1.5050 then no open position)
what kind of code i can implement? thanks
what you can implement is anything ....
but what have you tried...
or what do you think you have to do
you have to walk through the opened orders (not history) and check the symbol, price, and preferably the magic number too.
not preferably .... you just have to do that too...
yes, for a good, stable soltuion.
howewer, the task can be done without this, but you have to keep in mind all the limitations and possible problems.
avoid possible problems you know you can get.....
so doing the task without checking magicnumber EA is no good solution.....
surely, it is true as general guideline.
here, for the asker, he may decide if he wants to work on these issues or use only this EA on the account (or symbol).
surely, it is true as general guideline.
here, for the asker, he may decide if he wants to work on these issues or use only this EA on the account (or symbol).
that's not avoiding issues .....
if you like this discussion having issues then why
you have to walk through the opened orders (not history) and check the symbol, price, and preferably the magic number too.
check the symbol ??? it might be the OP wants his EA to use it only on one symbol and is not trading manual or with other EA's
but do you really think the OP comes here opening a topic for answers like that....
there is enough bad coding made and posted also at Code Base
make your code work in all possible situations you can think it could happen
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
dear senior and forum community, please help
i trade with grid using ea, i want ea open new position only if no position in the same area
example using grid 50 point, current price is 1.5000, then price move to 1.5050 (if no position active at 1.5050 then open new buy, but if there is active position at 1.5050 then no open position)
what kind of code i can implement? thanks