Forum

webrequest problem

pls what is the best way to handle webrequest on mt4/mt5 cause it doesn't connect that easy ,keeps throwing error POSITIONS ? FAILED attempt 1 | HTTP:-1 Err:5203. very hard for connection to leave the terminal and reach the server . you waste hours enabling and disabling finally you become lucky or

how to get total profit/loss monthly on mt4

pls is my code correct.. { double profit= 0.0 ; datetime from= 0 , to= 0 ; double start_balance= AccountInfoDouble ( ACCOUNT_BALANCE ); double end_balance= AccountInfoDouble ( ACCOUNT_BALANCE ); datetime last_order_time= 0 ; int trades=OrdersHistoryTotal(); for ( int i= 0 ; i<trades;

Pls help with this code

Pls can someone help me to know if this code is correct determining price range to open position on the chart price quote.for example Eurusd If (bid > 1.43256) Open buy Is this correct way to code exact price quote. Thanks

pls why error in backtesting

i discovered that after programming a scalper EA in mt4,it does wonderful in back test but on forward test it doesn't work well pls can someone suggest what i can do,thanks