Forum

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