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 waltFX, Today, 04:28 PM
    0 responses
    4 views
    0 likes
    Last Post waltFX
    by waltFX
     
    Started by dajunuka, Today, 02:41 PM
    2 responses
    12 views
    0 likes
    Last Post dajunuka  
    Started by connorlmarble, Yesterday, 08:25 PM
    5 responses
    33 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by quebequer, Today, 06:51 AM
    3 responses
    23 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Curerious, Today, 03:05 PM
    0 responses
    5 views
    0 likes
    Last Post Curerious  
    Working...
    X