Discussion of article "How to create 3D graphics using DirectX in MetaTrader 5" - page 5

 
fxsaber #:
h ttps:// www.mql5.com/ru/forum/93352/page78#comment_48296338

For the link to the thread, from the bottom of my heart!

But I'll be reading it for a week, and I don't know if I'll get it right.

I mean a link to a working template for the Expert Advisor on MT5, if there is such a template in nature.

 
Anatoliy Lukanin #:

For the link to the thread, from the bottom of my heart!

But it'll take me a week to read it, and I don't know if I'll get it right.

It's supposed to be validated.

#define  MT4ORDERS_AUTO_VALIDATION // Trade orders are sent only if they are successfully checked for correctness
#include <MT4Orders.mqh> // https://www.mql5.com/en/code/16006

#define  Ask SymbolInfoDouble(_Symbol, SYMBOL_ASK)

void OnTick()
{
  OrderSend(_Symbol, OP_BUY, 1, Ask, 0, 0, 0);
}