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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    153 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    89 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    133 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    128 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X