james377
11-01-2010, 03:52 PM
Print ("Position.AvgPrice = " + Position.AvgPrice);
EnterLongStop(High[1] + (entry * ATR(14)[0]), "");
Why does this print a value before I have entered the trade?
is this Position.AvgPrice looking at my last trade or something???
how do i clear this value or set it to 0 as it seems to be messing up my calculations further on in my code..
or could somebody tell me why this is happening?
EnterLongStop(High[1] + (entry * ATR(14)[0]), "");
Why does this print a value before I have entered the trade?
is this Position.AvgPrice looking at my last trade or something???
how do i clear this value or set it to 0 as it seems to be messing up my calculations further on in my code..
or could somebody tell me why this is happening?