[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 744
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
Still opens this order in a batch.
this is how I set the variables in my ekspert
and here's the order opening
Could you please give me the code of the function that will put a stop once at breakeven level, when the profit will be for example 20 pips
Thanks in advance for the reply:)
Boris, it's even simpler than that. You drop this line:
At the very top of the code (to be separate, not in any function).
And then in those places where there is a call of the OrderSend(...) function, just enclose it in an additional hug of the if operator
Now before opening the next order, the operator will check if there are deals or no deals at the current bar. If they have been, then the current bar has been stored in the variable new and if the current bar coincides with the stored one, then no position will be opened. Accordingly, if the bar is new, then its opening time will not coincide with the data of the variable new, the deal will be opened and the variable new will get a new value.
I don't know exactly the architecture of your EA, but this method should work in most cases.
Thank you so much! It fits perfectly!
I can't think of a better way to proceed.
There is an indicator with a bunch of arrays. The second indicator needs to work with these arrays. To calculate and output the result to its own table.
The easiest way would be to call this indicator but it seems that this is not possible.
How to get to other arrays?
I don't know.
Hello, could you please tell me how to view logs in MT4?
You don't have to post 15 messages with only one content. And if you do, it is desirable to clean up after yourself. Do not wait for the uncles.
You must really need to... :) Or the mouse is stuck...
It's not the mouse that's stuck. It's impatience. It took me 20 minutes to delete 15 posts in the end.
It's not the mouse that's stuck.
Still opens this order in a batch.
this is how I set the variables in my ekspert
and here's the order opening
It's not the mouse that's stuck. It's impatience. It took me 20 minutes to delete 15 posts in the end.