Xaoss1990: My Comment() doesn't work in the tester at all(((( It seems to be only for indicators, and I'm making an EA... Do I understand it correctly?
No, you do not. You have to test in visualisation mode.
Xaoss1990: My Comment() doesn't work in the tester at all(((( It seems to be only for indicators, and I'm making an EA... Do I understand it correctly?
Comment() displays and changes its "readings" with the arrival of each tick
Xaoss1990: What numbers does it return? i.e. 1-buy, 2-sell, etc. Mine returns zeros, but the expert makes transactions.
It cannot be like that. If the open position type is OP_BUY, and this order is selected using the OrderSelect() function, the OrderType() function will return 0. If OP_SELL, it will return 1.
Hello, can you please modify the EA to work on Market Execution, i.e. to open zero TP and SL, and then set them on an open order. I would like to ask them to open an order and then place it in the opposite direction, thanks in advance.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Comment()
My Comment() doesn't work in the tester at all(((( It seems to be only for indicators, and I'm making an EA... Do I understand it correctly?
My Comment() doesn't work in the tester at all(((( It seems to be only for indicators, and I'm making an EA... Do I understand it correctly?
What numbers does it return? i.e. 1-buy, 2-sell, etc. Mine returns zeros, but the expert makes transactions.
I do it like this, but I get an error:
int highx = NormalizeDouble((10000 * High[i]) % 10,0);
The '%'-remainder operator is to be applied to integer values only
help....
Almost verbatim translation:
'%' operator is applied to integer values only.
An almost literal translation:
The "%" operator only applies to integer values.
I don't get it. Explain.
Look in the log before you ask a question.
do you display the status of the conditions for opening an order in Comment?
I start testing the EA and the test ends only after closing one order, the next one won't open
You have done something wrong.
Show me the code.