Hello,
I have the following function to send a message when there is a new order opened , but I want the word "OPEN ORDER" to be in bold and if I can change the color as well , how to do that ?
here is the code
for(int pos=0;pos<total;pos++){ // Current orders -----------------------
if(OrderSelect(pos,SELECT_BY_POS)==false) continue;
if(OrderOpenTime() <= _opened_last_time) continue;
message += StringFormat("\r\n---------OPEN ORDER---------\r\n%s :\r\n%s @ %s \r\nSL(%s)\r\nTP(%s) \r\n--------------------------------\r\n",
OrderSymbol(),
// order_type(),
Market_Order(),
DoubleToStr(OrderOpenPrice(),MarketInfo(OrderSymbol(),MODE_DIGITS)),
DoubleToStr(OrderStopLoss(),MarketInfo(OrderSymbol(),MODE_DIGITS)),
DoubleToStr(OrderTakeProfit(),MarketInfo(OrderSymbol(),MODE_DIGITS)),
OrderComment()
);
max_time = MathMax(max_time,OrderOpenTime());
}
regards
I have the following function to send a message when there is a new order opened , but I want the word "OPEN ORDER" to be in bold and if I can change the color as well , how to do that ?
here is the code
for(int pos=0;pos<total;pos++){ // Current orders -----------------------
if(OrderSelect(pos,SELECT_BY_POS)==false) continue;
if(OrderOpenTime() <= _opened_last_time) continue;
message += StringFormat("\r\n---------OPEN ORDER---------\r\n%s :\r\n%s @ %s \r\nSL(%s)\r\nTP(%s) \r\n--------------------------------\r\n",
OrderSymbol(),
// order_type(),
Market_Order(),
DoubleToStr(OrderOpenPrice(),MarketInfo(OrderSymbol(),MODE_DIGITS)),
DoubleToStr(OrderStopLoss(),MarketInfo(OrderSymbol(),MODE_DIGITS)),
DoubleToStr(OrderTakeProfit(),MarketInfo(OrderSymbol(),MODE_DIGITS)),
OrderComment()
);
max_time = MathMax(max_time,OrderOpenTime());
}
regards