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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    71 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    143 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    76 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    47 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    51 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X