• 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

Adding Buttons

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

    Adding Buttons

    Hi

    I would like to create a button that is visible within the chart window that when clicked would allow me to place a buy limit OCO "x" ticks above the market and a Sell Stop OCO "x" ticks below the market. Is it possible to create a GUI like this?

    Both of the above orders would be attached to two independent trading strategies. Therefore if the buy limit was hit it would trigger strategy number 1 and if the sell limit was hit it would trigger strategy 2, whilst cancelling the other order.

    Would the strategies need to be all inclusive inside the code for the button, for example, I would have button code, strategy 1 code and strategy 2 code all together as one big strategy?

    OR would you be able to activate the strategies "another way"?

    Additionally how different is a ninjatrader 7 strategy from a ninjatrader 8 strategy, any guidelines would be helpful.

    Cheers

    #2
    Hello,

    Thank you for the post.

    We have a simple example of adding buttons to a script at the following links:

    http://ninjatrader.com/support/helpG...trolCollection
    http://ninjatrader.com/support/forum...7&postcount=21

    Regarding having independent strategies, this generally is not suggested and instead, your other comment about combining all logic would be suggested. This is so that your strategy knows what the other strategies logic is doing once you submit orders.You would need to have both strategies applied if you did separate strategies and if you wanted these to see each other you would need to devise logic to do that which would ultimately depend on what you are trying to do in each strategy.

    If you are just trying to submit manual entries and apply logic to them, I could suggest to instead look at the addon example and create your own tool which runs in the platform opposed to using multiple strategies. Using an addon you can submit manual orders and apply logic to those orders, or even submit orders based on some logic like a strategy. This is more similar to a tool like the superdom and how ATM strategies are applied to your orders.

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

    Regarding how different NT7 and NT8 are, well they are two different versions of the same software so 8 does have a lot of features that 7 does not. This is a fairly broad question, we do have a code breaking changes guide which can explain some of the NinjaScript differences here: http://ninjatrader.com/support/helpG...ng_changes.htm

    You could additionally review the Strategy development portion of the help guide to find all supported syntax.


    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello Jesse,

      2 questions:

      1) Can I use this code in NT 7?
      http://ninjatrader.com/support/helpG...collection.htm

      2) Is there some similar to this: AddOn Framework NinjaScript Basic, for NT 7? Or can I use this in NT 7 ?
      http://ninjatrader.com/support/helpG...t_overview.htm


      Thanks,
      Federico

      Comment


        #4
        Hello,

        Thank you for the reply.

        New items you locate in the NT8 help guide would not be available to NT7.

        NT7 was not created with addons in mind so there are no supported examples of modifying the GUI in NT7, you can find some various user submitted items on the forums here.
        http://ninjatrader.com/support/forum...ks.php?catid=6

        NT7 uses windows forms for its GUI so if you are familiar with windows forms you could create content but there is no guide to this. Going forward with NT8 addons were created for users so they can develop tools and more advanced controls.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jgfirefn, Today, 02:26 AM
        0 responses
        2 views
        0 likes
        Last Post jgfirefn  
        Started by Gerik, Yesterday, 10:58 PM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Started by Gerik, Yesterday, 11:27 PM
        0 responses
        4 views
        0 likes
        Last Post Gerik
        by Gerik
         
        Started by Bionian, Yesterday, 11:14 PM
        0 responses
        2 views
        0 likes
        Last Post Bionian
        by Bionian
         
        Vps by stooby
        Started by stooby, Yesterday, 08:32 PM
        0 responses
        12 views
        0 likes
        Last Post stooby
        by stooby
         
        Working...
        X