string symbol = Symbol();
int stop_loss = 150;
int take_profit = 100;
double lot_size = 0.01;
int slippage = 10;
double open_pip = 50;
double close_pip = 18;
double bid = MarketInfo(symbol, MODE_BID); // Request for the value of Bid
double ask = MarketInfo(symbol, MODE_ASK); // Request for the value of Ask
double point = MarketInfo(symbol, MODE_POINT); // Request for Point
if (OrdersTotal() == 0) {
OrderSend(symbol, OP_BUY, lot_size * 1, ask, slippage, ask - stop_loss * point, ask + take_profit * point, NULL, 0, 0, Lime);
}
if (OrderSelect(0, SELECT_BY_POS) == true) {
Comment ("Success");
}
}
Please help, if anybody knows the reason
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
string symbol = Symbol();
int stop_loss = 150;
int take_profit = 100;
double lot_size = 0.01;
int slippage = 10;
double open_pip = 50;
double close_pip = 18;
double bid = MarketInfo(symbol, MODE_BID); // Request for the value of Bid
double ask = MarketInfo(symbol, MODE_ASK); // Request for the value of Ask
double point = MarketInfo(symbol, MODE_POINT); // Request for Point
if (OrdersTotal() == 0) {
OrderSend(symbol, OP_BUY, lot_size * 1, ask, slippage, ask - stop_loss * point, ask + take_profit * point, NULL, 0, 0, Lime);
}
if (OrderSelect(0, SELECT_BY_POS) == true) {
Comment ("Success");
}
}
Please help, if anybody knows the reason