Coding Mql4 Pending Order Buy Limit Dapat Anda Lihat dan Pelajari di Bawah Ini:
Belajar Bahasa Pemrograman Mql4 Coding Pending Order Buy Limit Untuk Membuat EA Robot Forex:
//---------------------------------------------------
extern double Lots = 0.01;
extern int Distance = 10;
extern int S_L = 0;
extern int T_P = 10;
double PipValue=1;
//---------------------------------------------------
void PendingOrderBuyLimit()
{
double price = NormalizeDouble(Ask,NDigits)+(-1*Distance)*PipValue*Point;
double SL = price - S_L*PipValue*Point;
if (S_L == 0) SL = 0;
double TP = price + T_P*PipValue*Point;
if (T_P == 0) TP = 0;
int ticket = OrderSend(Symbol(),OP_BUYLIMIT,Lots,price,4,SL,TP,"EA Buy Limit",99,0,Blue);
}
//---------------------------------------------------
Demikian Share Coding Mql4 Pending Order Buy Limit Untuk Anda, Semoga Bermanfaat.
0 komentar:
Posting Komentar