• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT Questions 5

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

    NT Questions 5

    1. How do I find the current commission for a currency pair?
    2. Is 2 the most number of output windows allowed?
    3. Is it possible to encrpyt your Ninjascript?
    4. Can values be passed\shared between two running strategies? Strategy1 and Strategy2, like a global variable.
    5. Is there a heirarchy diagram of the classes, collections and properties?
    6. What is the best way to get the account balance?

    I tried:
    foreach (Account sampleAccount in Account.All)
    {

    Print(String.Format("The account {0} has a {1} unit FX lotsize set.", sampleAccount.Name, sampleAccount.ForexLotSize));
    Print(String.Format("The account {0} has currency ", sampleAccount.Denomination));
    Print(String.Format("The account {0} has cash ", sampleAccount.AccountItem.CashValue));
    }
    Last edited by GibbsB613; 03-06-2017, 06:20 AM.

    #2
    I figured out #6. Is there a Ninjascript book I could buy so I don't have to read everything online?

    Thanks in advance!

    Comment


      #3
      Hello GibbsB613, and thank you for your questions. I am going to assume all of these relate to NinjaScript.

      1. How do I find the current commission for a currency pair?
      Trade.TradesPerformance.TotalCommission will have this information.

      2. Is 2 the most number of output windows allowed?
      Yes. I have provided a reason why in the link behind this text.

      3. Is it possible to encrpyt your Ninjascript?
      Yes. I have provided details in the link behind this text.

      4. Can values be passed\shared between two running strategies? Strategy1 and Strategy2, like a global variable.
      Yes. MSDN C# has publicly available documentation which has details regarding implementing this here,

      https://msdn.microsoft.com/en-us/library/c3ay4x3d.aspx

      5. Is there a heirarchy diagram of the classes, collections and properties?
      The best available hierarchy diagram is the organization of the Help Guide's language specifications,

      http://ninjatrader.com/support/helpG...erence_wip.htm

      In this layout, you will see items available to any NinjaScript object under "Common", and items specific to a certain class expandable under that class' tree.

      I will refer you to a colleague of mine who can answer your book question. We are happy to help in any other way we can.
      Jessica P.NinjaTrader Customer Service

      Comment


        #4
        Hello GibbsB613,

        This is Ryan L. from the NinjaTrader Ecosystem responding on behalf of my colleague Jessica.

        While I am unfamiliar with a specific book you can purchase for NinjaScript, you can check the Ecosystem website below for Educators in the Ecosystem:



        This NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The companies and services listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

        Please let me know if you have any questions, concerns or if I can provide any further assistance by responding to this thread at your convenience.
        Ryan L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by spikeruk, Today, 01:49 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by Yandychang, Today, 02:16 PM
        5 responses
        17 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by priceisking, Today, 01:16 PM
        2 responses
        8 views
        0 likes
        Last Post priceisking  
        Started by kashyapjdave, 03-23-2017, 12:12 AM
        11 responses
        1,959 views
        0 likes
        Last Post forextrader2003  
        Started by Gav_G, 07-26-2018, 04:29 PM
        6 responses
        428 views
        0 likes
        Last Post forextrader2003  
        Working...
        X