Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Open of tomorrow

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

    Open of tomorrow

    Hello,

    I am trying to translate one strategy from TradeStation to NinjaScript and I have found the following code that I am not able to translate to Ninja:

    nBuyPt = Open of tomorrow + 3 * AvgTrueRange(10);
    Buy ("SignalName") next bar at nBuyPt stop;

    How can I reference this "open of tomorrow" in NT?

    Un saludo,

    Pablo

    #2
    Hi pespinar,

    Unfortunately there is not an exact translation for that in NinjaScript, as there is no way to look at forward bars.

    However, you can use the simple Open[0], and perhaps add granularity to submit the order on in backtesting.
    More info at - http://www.ninjatrader.com/support/f...ead.php?t=6652
    TimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by PhylisHollow, Today, 10:25 PM
    0 responses
    3 views
    0 likes
    Last Post PhylisHollow  
    Started by rtwave, 03-28-2025, 10:36 AM
    7 responses
    43 views
    0 likes
    Last Post rtwave
    by rtwave
     
    Started by Humble21, Today, 06:07 PM
    1 response
    9 views
    0 likes
    Last Post rockmanx00  
    Started by Adamel, Today, 03:45 PM
    12 responses
    25 views
    0 likes
    Last Post Adamel
    by Adamel
     
    Started by raysinred, Yesterday, 10:32 AM
    3 responses
    33 views
    0 likes
    Last Post rockmanx00  
    Working...
    X