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

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,

      The C# namespace alias qualifier `::` is used to access a member of an aliased namespace. The `::` operator is often used with the `global` alias, an alias for the global namespace


      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,



      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 chbruno, Today, 04:10 PM
        0 responses
        1 view
        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
        5 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by frslvr, 04-11-2024, 07:26 AM
        9 responses
        127 views
        1 like
        Last Post caryc123  
        Working...
        X