Quote:
|
Originally Posted by phoenix
i just seen a forum that has the function of posting mql code into the forum
it's easier and automatically change the color into the Metaedtor-like scheme
this will be more helpful to post the code here without attacthing files
hope this is posible and someone expeert can creat it
|
I think you could wrap the code with PHP tags. The button is on the right of the editing tools (bold, italic, underline, etc.). Hope this help
Example :
PHP Code:
if(subTotalTrade()>0 && TrailingStop>0)
{
total = OrdersTotal();
for(cnt=0;cnt<total;cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderType()<=OP_SELL &&
OrderSymbol()==Symbol() &&
OrderMagicNumber()==MagicNumber)
{
subTrailingStop(OrderType());
}
}
}