Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

why don't I get an entry?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    why don't I get an entry?

    I am researching pivots and I created a simple strategy that checks at 1am if close[0] is < or > the Daily pivot PP. If it is above daily pp pivot then EnterLongLimit @ the daily pp pivot level. If it is below daily pp then EnterShortLimit @ the daily pp.

    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:

    Code:
    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]);
        }
    }
    Any thoughts on why I am not getting any entries?

    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.
    Attached Files

    #2
    Seems to be working now

    I don't know what I did but I change data series to 5 min and then back to 240 min bars and it seems to now work. grrrr

    Sorry for the bother

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    56 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X