Forum

different data between ea and indicator

Hi, I running simple code on ea and indicator using tester. Timeframe is H1. The code is: double h = iHigh(NULL,PERIOD_D1,0); int err = GetLastError(); if (err!=0) Alert("error __high=",err); GlobalVariableSet("__High",h); double l = iLow(NULL,PERIOD_D1,0); err = GetLastError();

Strategy Treader - error in profit calculation

Hi, When testing grid kind EA I found, that trades with fixed 20 pips tp are closed as you can see on attached sreen shot. As you can see f.i. profit for trade #5 is $8.4. When I print closed trades from transaction history profit for that trade is $20 what is expected in that situation. The #5