Get profit last closed position in point. - page 2 12 New comment qjol 2013.05.28 14:16 #11 this example:NewProfit = GetProfitLastClosePosInPoint ("EURUSD", OP_BUY, magic); doesn't give the sum of profit for all closed buy positions on EURUSD with magic no. magic ? Liana 2013.05.30 14:10 #12 Thank you William Roeder 2013.05.30 14:27 #13 NewProfit = GetProfitLastClosePosInPoint (NULL, -1, magic); : if ((OrderSymbol()==sy || sy=="") && (op<0 || OrderType()==op)){So put some print statements in your functions and you will find out that NULL != "" 12 New comment
this example:
NewProfit = GetProfitLastClosePosInPoint ("EURUSD", OP_BUY, magic);doesn't give the sum of profit for all closed buy positions on EURUSD with magic no. magic ?
Thank you