I do not get any error in the log and there are no entries placed even though I can visually see where the entry should be based on my rules. I have included an image showing what I'm wanting and the code is:
if (ToTime(Time[0]) > start && ToTime(Time[0]) < (start + end))
{
if(Close[0] > Pivots(PivotRange.Daily, HLCCalculationMode.CalcFromIntradayData,0,0,0,20).PP[0])
{
EnterLongLimit(shares, Pivots(PivotRange.Daily, HLCCalculationMode.CalcFromIntradayData,0,0,0,20).PP[0], "E1");
SetProfitTarget("E1", CalculationMode.Price, Pivots(PivotRange.Daily,HLCCalculationMode.CalcFromIntradayData,0,0,0,20).R1[0]);
}
}
if (ToTime(Time[0]) > start && ToTime(Time[0]) < (start + end))
{
if(Close[0] < Pivots(PivotRange.Daily, HLCCalculationMode.CalcFromIntradayData,0,0,0,20).PP[0])
{
EnterShortLimit(shares, Pivots(PivotRange.Daily, HLCCalculationMode.CalcFromIntradayData,0,0,0,20).PP[0], "E1");
SetProfitTarget("E1", CalculationMode.Price, Pivots(PivotRange.Daily,HLCCalculationMode.CalcFromIntradayData,0,0,0,20).S1[0]);
}
}
My start time is 10000 which is1am and my ending time I have changed multiple times to test why this isn't working and I have set the ending time from 31000 - 61000 so I don't believe it has anything to do with my time filter - but I don't really know for sure.

Comment