Errors, bugs, questions - page 1796
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
Clean windup, clean kasper, i put terminal in, kasper cut it out like crazy.
No way to add it to exceptions......
Can't reproduce it. You can write a request to ServiceDesk and describe in detail. Windows version, terminal version, antivirus version.
DrWeb finds nothing.
if (true) \
{ \
Print(""); \
// Print(""); \
}
void OnStart()
{
MACRO
}
DrWeb finds nothing.
It always finds nothing ))))
No, it often finds viruses, but it doesn't find anything in mt.
In continuation of the topic. For what reason when making a request for pending orders, theRequest.type_filling field no longer has a value?
Now, no matter how I filled it, OrderGetInteger(ORDER_TYPE_FILLING) == ORDER_FILLING_RETURN.
Script
{
MqlTradeRequest Request = {0};
Request.action = TRADE_ACTION_PENDING;
Request.symbol = _Symbol;
Request.volume = 1;
Request.price = SymbolInfoDouble(_Symbol, SYMBOL_BID) - 100 * _Point;
Request.deviation = 10;
Request.type = ORDER_TYPE_SELL_STOP;
Request.type_filling = ORDER_FILLING_FOK;
MqlTradeResult Result = {0};
if (OrderSend(Request, Result))
{
Sleep(100);
if (OrderSelect(Result.order))
Print(EnumToString((ENUM_ORDER_TYPE_FILLING)::OrderGetInteger(ORDER_TYPE_FILLING)));
}
}
Result
type_filling must be set for the same ORDER_TYPE_SELL_STOP. ORDER_FILLING_FOK is written in the script - it means that a market request of ORDER_FILLING_FOK-type (all or nothing) should be generated when the stop order is accepted. What is the reason why this is not the case?
Pending Order
A trade order to place a pending order. Requires 11 fields to be specified:
Compilation error
if (true) \
{ \
Print(""); \
/* Print(""); */ \
}
if (true) \
{ \
Print(""); \
/* Print(""); */ \
}
Request.action = TRADE_ACTION_PENDING (5)
Request.magic = 0
Request.order = 0
Request.symbol = CHFRUB_TOM
Request.volume = 1.0
Request.price = 57.9
Request.stoplimit = 0.0
Request.sl = 0.0
Request.tp = 0.0
Request.deviation = 100
Request.type = ORDER_TYPE_BUY_LIMIT (2)
Request.type_filling = ORDER_FILLING_RETURN (2)
Request.type_time = ORDER_TIME_DAY (1)
Request.expiration = 1970.01.01 00:00:00
Request.comment = My Order
Request.position = 0
Request.position_by = 0
Result.retcode = 10018
Result.deal = 0
Result.order = 0
Result.volume = 0.0
Result.price = 0.0
Result.bid = 0.0
Result.ask = 0.0
Result.comment = Market closed 53.327 + 0.000 ms
Result.request_id = 334
Result.retcode_external = 0