Forum

Please Help me why this ea doesnt continue when i backtested

THIS IS THE CODE: input int magic = 222; //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick () { if (!IsNewBar()) return

Please Help me How solve this....it cant draw LINE on the chart

void vFCountBEP( int iCmd) { int i, iTotalOrders = OrdersTotal (); double dOrderLots = 0 , dOrderPrice = 0 , dBEPPrice = 0 ; for (i= 1 ; i<=iTotalOrders; i++) { if ( OrderSelect (i- 1 ,SELECT_BY_POS,MODE_TRADES)== true ) { if

How to get the open price of the last open trade?.. the last open trade is not yet closed.

anyone can help me get the open price of the last open trade which is not yet close...thank in advance