It appears that it has something do the calculation for "rangeHigh". If I hardcode a standard price in their, then the dot draws exactly where I code it to draw.
I have taken this code from a sample that was generously made for me by Chelsea. It works great for the indicator, but apparently there needs to be something else if it is a strategy.
This is supposed to find the highest high between the hours of 0200 & 0900.
Variables:
// Range Variables
private DateTime startRange = DateTime.Today.AddHours(2); // Hour that the range will start
private int endRange = 090000; // Hour that the range will end
private int removeOrderTime = 2200; // Hour that unfilled orders will be removed
private double rangeHigh = 0; // High of range
private double rangeLow; // Low of range
rangeHigh = HighestBar(High, CurrentBar-Bars.GetBar(startRange));
if(........)
{
DrawDot("EnterLongStop", true, 0, rangeHigh + pipBuffer, Color.Orange);
}

Comment