Get profit last closed position in point. - page 2

qjol
3201
qjol  

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
361
Liana  

Thank you

William Roeder
25824
William Roeder  
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 != ""