Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Trying to understand crossover behavior with NT8 strategy

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

    Trying to understand crossover behavior with NT8 strategy

    I am evaluating NT 8 and I need help trying to understand a behavior I am observing with a custom strategy I am building.

    I have a 1 minute chart loaded with the VWAP8 indicator. I am trying to trigger an order on the basis of the VWAP crossing over and I am looking for the trigger to happen on the bar after the one where crossover happened, but I cant seem to get it to trigger.

    The condition I used was for low[0] cross over VWAP8 with look back period = 1. But I am not seeing the condition trigger as true where the cross over happens in the chart

    However when I use a look back period = 2, the cross over condition is triggered but a bar later than the one I need it to.

    I realize I am describing in the abstract - but let me know what details I can provide.

    #2
    Hello srkbits,

    A cross above is looking for series A to be less than series B one bar ago and for series A to be greater than series B on the current bar.

    I would recommend printing these values to the output window with the time of the bar to understand on which bars this will evaluate as true.

    Below is a link to a forum post that demonstrates printing for a cross above.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by gentlebenthebear, Today, 01:30 AM
    2 responses
    13 views
    0 likes
    Last Post gentlebenthebear  
    Started by Kaledus, Today, 01:29 PM
    2 responses
    8 views
    0 likes
    Last Post Kaledus
    by Kaledus
     
    Started by frankthearm, Yesterday, 09:08 AM
    13 responses
    45 views
    0 likes
    Last Post frankthearm  
    Started by PaulMohn, Today, 12:36 PM
    2 responses
    16 views
    0 likes
    Last Post PaulMohn  
    Started by Conceptzx, 10-11-2022, 06:38 AM
    2 responses
    56 views
    0 likes
    Last Post PhillT
    by PhillT
     
    Working...
    X