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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X