Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 380
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
Move the cursor to the first opening bracket after OrderSend, delete this bracket, re-enter, this will bring up a tooltip with the type of parameters, check if all parameters are of the same type.
Thanks so much, I didn't put an order exp iry date in, now it works!
Measured the speed of forward and reverse cycle. 100 orders, the reverse cycle is 5 times faster. But there are never so many orders, 10 at the most. If there are 10 orders, the speed is 3 times faster. It is palpable to choose the reverse cycle.
Does the loop execute in one tick or in several?
Is the loop executed in a single tick or in several ticks?
I don't get it. It just executes and that's it, ticks have nothing to do with it at all.
Doesn't do deals.
I can't figure out the reason.
Help, please.
The tester constantly gives error 138 (Requested price out of date) when closing several open positions. Moreover, one position closes normally, while the one opened later does not close with error 138. Perhaps the developers can answer, how can the price become obsolete based on historical data or is there some other parameters that are used in the algorithm for identifying this error? If we place OrderClose into the infinite loop with constant reference to RefreshRates inside it, the position is not closing and error 138 is shown anyway. Of course, the loop is not terminated, although we have set exit upon position closing.
My demo account was opened at Alpari. I haven't loaded the history additionally, but there are a lot of errors, like: 2013.12.29 16:27:09 TestGenerator: unmatched data error (volume limit 10340 at 2013.08.23 12:00 exceeded), etc.
Can anyone advise what to do in this situation? And what is this tester that cannot close positions within a few 4 hour candles?
This is my truncated grief-expert. :)
Doesn't do deals.
I can't figure out the reason.
Help, please.
}
Only "Profit" needs to be declared as a fractional variable. If we add a check for Buy and Sell, we will be able to calculate the profit separately for Sell and Buy orders.
Thanks, I got it...but how to close all open orders for all currency pairs at once? .... - also using brute force? .... - no other options?
Test in visual mode. Use Comment() to output Line_7, Lines_1, Line_6. See how they change and if the conditions can be met at all.
The transaction conditions are fulfilled, but the transaction is not.
Thanks, I see what I mean about profit ... but how do I close all open orders for all symbols simultaneously? .... - also using brute force? .... - no other variants?
You should also take into consideration that if there is more than one order, they might not all be closed in one cycle. You should also take into consideration that if there is more than one order, they might not all be closed in one cycle, and the conditions will not be met on the next tick and the remaining orders will remain open. That is why we need an additional global or static variable. If the close conditions are fulfilled, we set this variable to true. Then, on every tick, if the variable is true, we close all orders in the loop; if we have managed to close all of them, we set variable false.
The transaction conditions are met, but the transaction is not completed.
And there is a message in the log "Signal to buy (2.5, 3)"?
After OrderSend(), call GetLastError() and see the error code.