Hello,
I'm having trouble with ibarshift. I'd appreaciate if someone could help me out.
I have the following code in my EA(this is the only instance of iBarShift in the EA):
When I run this in metatrader, I get the following message in the journal:
invalid integer number as parameter 3 for iBarShiftFunction
I don't understand this because I'm using false(0) for my 3rd parameter in that function, and false(0) a legitimate parameter according to the function's writeup in the help files.
Anyone have any ideas?
I'm having trouble with ibarshift. I'd appreaciate if someone could help me out.
I have the following code in my EA(this is the only instance of iBarShift in the EA):
Inserted Code
if(re!=itime(NULL,tf,1)) { Print("last Point:"+iBarShift(NULL,tf,TimeToStr(GlobalVaraibleGet(lastime_tx),TIME_DATE|TIME_MINUTES),false)); Print("First Point:"+iBarShift(NULL,tf,TimeToStr(GlobalVaraibleGet(firsttime_tx),TIME_DATE|TIME_MINUTES),false)); re=iTime(NULL,tf,1); }
invalid integer number as parameter 3 for iBarShiftFunction
I don't understand this because I'm using false(0) for my 3rd parameter in that function, and false(0) a legitimate parameter according to the function's writeup in the help files.
Anyone have any ideas?