Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Incorrect entry

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

    Incorrect entry

    Running 4 Renko I notice every nce in a while a entry that I don't believe should of been filled. I have attached an example of a long entry:
    1) The MACD signal does not cross 0
    2) The Green EMA is suppose to be greater than the GOLD SMA
    3) The Red line is suppose to be blue for long (Signal direction)
    I started the strategy from the chart so there should not be a chart syning issue
    I can reproduce ir in Market Replay
    Attached Files

    #2
    Hello,

    If I remember correctly your running this strategy with COBC = False correct?

    I look forward to assisting you further.

    Comment


      #3
      Corect
      CalculateOnBarClose =
      false;
      Could this be another symptom of the other issue?

      Comment


        #4
        Hello,

        Might be expected then.

        As these conditions have to be true for the order to execute. However when the bar is forming the values of those conditions are not yet set in stone at the close values. Thus you could have an entry that occured antra bar. But then the bar pulled back and the entry conditions where no longer true.

        To verify you would need to start Print() your entry condition variables.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by stevec1824, Today, 11:00 AM
        0 responses
        1 view
        0 likes
        Last Post stevec1824  
        Started by sofortune, Today, 10:05 AM
        2 responses
        4 views
        0 likes
        Last Post sofortune  
        Started by sofortune, 05-10-2024, 10:28 AM
        6 responses
        46 views
        0 likes
        Last Post sofortune  
        Started by ETFVoyageur, Today, 08:54 AM
        3 responses
        29 views
        0 likes
        Last Post ETFVoyageur  
        Started by ETFVoyageur, Today, 02:15 AM
        3 responses
        24 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X