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 andrewtrades, Today, 04:57 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    3 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    7 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X