To be frank, I don't know how exactly MT4 is linked with the Fonts on the computer.
MT4/MT5 EAs/Indicators/Alerts coder
1
Just a miscellaneous journal 2 replies
Miscellaneous 1 reply
Expert Advisor 8 replies
general expert advisor questions? 5 replies
Interbank FX Expert Advisor how to program? 15 replies
DislikedAnyway, much appreciate your posts. I has been stopped research about 'Bold' issue, because I did not get any clearly information about that on the web. I will choose any other font. Once again thanks.Ignored
DislikedSell Orders Counting - Open How can I calculate all Sell Open Positions, please?Ignored
int cnt=0; for(int trade = OrdersTotal()-1; trade >= 0; trade--) { if(!OrderSelect(trade,SELECT_BY_POS,MODE_TRADES)) continue; if(OrderType() != OP_SELL) continue; cnt++; }
void profitcalc() { double trueprofit = 0; for ( i = OrdersTotal() - 1; i >= 0; i-- ) { if ( ! OrderSelect( i, SELECT_BY_POS, MODE_TRADES ) ) continue; if ( closeothers == false && OrderSymbol() != Symbol() ) continue; trueprofit = OrderProfit() + OrderSwap() + OrderCommission(); if ( trueprofit >= 0 ) { Print( "Profit Close: ", trueprofit ); ObjectSetString ( 0, "profit object name", OBJPROP_TEXT, DoubleToString( trueprofit, 2 ) ); } else { ObjectSetString ( 0, "profit object name", OBJPROP_TEXT, "xxx" ); } } //--- return; }
void profitcalcfnc() { double trueprofit = 0; for ( int i = OrdersTotal() - 1; i >= 0; i-- ) { if ( ! OrderSelect( i, SELECT_BY_POS, MODE_TRADES ) ) continue; if ( closeothers == false && OrderSymbol() != Symbol() ) continue; trueprofit = OrderProfit() + OrderSwap() + OrderCommission(); if ( trueprofit >= 0 ) { Print( "Close Profit: ", trueprofit ); ObjectSetString ( 0, "all profit counting object", OBJPROP_TEXT, DoubleToString( trueprofit, 2 ) ); } } //--- return; }