Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

same function in NT

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

    same function in NT

    Hallo, I ask you if in NT there is a function similar to the one below: Syntax

    security(x, y, z, a) → seriesReturns

    Returns another series.
    Arguments

    x stringSymbol (for example "tickerid", "msft" or other financial instrument...like as close[0] or input[0] in NT...I think). "Ticherid" is a bulti-in variable, type string, with Symbol name with exchange prefix (e.g. "BATS:MSFT" or "NASDAQ:MSFT).
    y stringResolution (time frame...for example "300" minute, "240" minute, "D" daily")
    z seriesExpression to calculate and return from the security call. (calculate the function output result with instrument data chosen in the chart )
    a boolMerge strategy for the requested data. Requested data is merged with the current barset data. Default value is false, data is merged continiously (without gaps). If true then data will be merged possibly with gaps.Examples

    a = security ("tickerid", "240", sma(close, 10))
    // plot simple average 10 period on close every 240 minutes with data chart

    s = security("MSFT", "D", sma(close, 10)) // every 1 Dayplot(s)s1 = security("AAPL", "240", hlc3)
    // every 240 Minutes plot (s1)

    Thank you in advance for answer.

    #2
    Hello DenisF,

    I'm not able to recognize what this function would do.

    Are you attempting to call an arbitrary amount data for an instrument and supply this as an instrument as a input series?

    There would not be a supported way of accomplishing this with NinjaTrader 7. You can add a secondary series before the script starts and use the data of this secondary series, but not after the script has started by using the Add() method and supplying the series for that bars in progress.
    Add() - http://ninjatrader.com/support/helpGuides/nt7/add3.htm
    BarsArray - http://ninjatrader.com/support/helpG.../barsarray.htm
    BarsInProgress - http://ninjatrader.com/support/helpG.../barsarray.htm
    Closes - http://ninjatrader.com/support/helpG...nt7/closes.htm

    With NinjaTrader 8, it is possible to do a BarsRequest to request an arbitrary amount of data for any instrument to a bars object.
    BarsRequest - http://ninjatrader.com/support/helpG...arsrequest.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3

      Hallo, I have a NT life time license tha I haven't use for some time. I would like to reactivate it to use Dimension Trader software...what can I do? thank you


      Denis

      Comment


        #4
        Hello Denis,

        Your license key should still be valid as it is a lifetime license key. Can you please send me an email including your license key at "platformsupport[at]ninjatrader[dot]com".

        What currently prevents you from using Dimension Trader add-ons in NinjaTrader? Do you experience an error message? If so, please tell me what the error states.

        JasonNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by aa731, Today, 02:54 AM
        0 responses
        4 views
        0 likes
        Last Post aa731
        by aa731
         
        Started by thanajo, 05-04-2021, 02:11 AM
        3 responses
        470 views
        0 likes
        Last Post tradingnasdaqprueba  
        Started by Christopher_R, Today, 12:29 AM
        0 responses
        10 views
        0 likes
        Last Post Christopher_R  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        166 responses
        2,237 views
        0 likes
        Last Post sidlercom80  
        Started by thread, Yesterday, 11:58 PM
        0 responses
        5 views
        0 likes
        Last Post thread
        by thread
         
        Working...
        X