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 nicthe, Today, 09:24 AM
    1 response
    5 views
    0 likes
    Last Post nicthe
    by nicthe
     
    Started by samish18, Today, 10:13 AM
    0 responses
    4 views
    0 likes
    Last Post samish18  
    Started by kenz987, Yesterday, 10:20 AM
    2 responses
    13 views
    0 likes
    Last Post kenz987
    by kenz987
     
    Started by nicthe, 08-23-2023, 07:53 AM
    7 responses
    197 views
    0 likes
    Last Post nicthe
    by nicthe
     
    Started by stalt, 12-28-2015, 01:36 PM
    6 responses
    1,536 views
    0 likes
    Last Post giulyko00  
    Working...
    X