protectedoverridevoid OnBarUpdate()
{
if (High[0]>=(newTp+boxSize))
{
newTp = High[0];
}
if (Low[0]<=(newBt-boxSize))
{
newBt = Low[0];
}
These are my print statements which shows the results, and NewTop and NewBottom do calculate the correct figures but newTp and newBt do not, I am very puzzeled ?? I have also attached the actual startegy if you want to run it to see what I mean. Help!!
Print((newTp+boxSize));
Print((newBt-boxSize));
Print("High" + High[0]);
Print("Low" + Low[0]);
Print("Boxsize" + boxSize);
Print("Box3" + (boxSize*3));
Print("NewTop" + (High[0] + 0.0001));
Print("NewBottom" + (Low[0] -0.0001));
Comment