Help me fix my EA so that it trades once per signal when it hit either SL, TP or trailing stop. I want it to wait for next signal - page 2
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello Tony,
your logic about buy or sell condition wrong
you need to find crossing stoch
your logic about buy or sell condition wrong
you need to find crossing stoch
or you should try Tony's way
both will be ok
You have 8 market products and a forex website.
Why are you not able to solve it ?
And I agree with Marco :)
If that happens it will be because your params are causing a very fast ob/os/ob situations or they are the result of a failed ordersend.
The EA keeps opening trades when current one is closed by either SL, TP or Trailing Stop, because conditions remain valid.
I want help to make EA trade only once per signal. It should wait for next signal before opening trade when the current trade is closed; even if trade conditions remain valid.
Please find the source code and insert for me if possible.
Thank you
If you mean you want to wait for the next signal you will have to pull your trade flag high and after the order is opened you will have to pull it low again.
Then, when the order is closed, you have to pull the trade flag high again.
Like this:
If you mean you want to wait for the next signal you will have to pull your trade flag high and after the order is opened you will have to pull it low again.
Then, when the order is closed, you have to pull the trade flag high again.
Like this:
Using orderstotal() might block other trades if he wants many trades and not just one at a time.
Using orderstotal() might block other trades if he wants many trades and not just one at a time.
He wants:
I want help to make EA trade only once per signal. It should wait for next signal before opening trade when the current trade is closed; even if trade conditions remain valid.
Thank you
And i didn't use OrdersTotal().