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

AddOn inside Chart Trader area issues

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

    AddOn inside Chart Trader area issues

    Hello.
    I've created an AddOn according to the guide from https://ninjatrader.com/support/help...development_ov erview.htm
    Just for testing purposes, with only one custom button under the Chart Trader section.
    The button click method changes one public property in AddOn class ( which determines the status ON/OF and background color of the button) and also writes to the Output window the current value of that boolean property. (screen attached)

    When imported it to NT8 I faced some issues with it.
    1. the button works only in the one/the latest open chart window (the click method is never called from previously opened windows). Any idea why it happens?
    2. the "status" ON/OFF of the button is shared across all the tabs in one window (seems reasonable, according to the doc, a new addon instance is created per every window). But is it possible to keep a separate "status" per tab like for "Instrument" control? I noticed that all other controls in Chart Trader like quantity, ATM strategy, and Account have the same behavior (change in one tab affects all of them except for "Instrument").
    3. How I can access any Addon public property (eg. sets by a button click) from strategies/indicators applied to different tabs in the chart window?
    I'd appreciate any help.
    Cheers
    Yeti

    #2
    Hello YETI_OnTheMarket,

    Thanks for your post.

    The button should be separate between each chart if you are adding a button to each Chart Trader that you want to use. This means prints would appear in the Output window for the active Chart Trader window that the button is clicked on.

    Below is a link to an example of an indicator that add buttons to charts and Chart Trader.
    https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?creating-chart-wpf-(ui)-modifi.htm

    As well as a link to an example script that places orders on a button click, where you could add custom logic to decide if the order is actually submitted.
    https://ninjatraderecosystem.com/use...bar-buttons-2/

    Below are links to examples of addons that you might find helpful.
    https://ninjatraderecosystem.com/use...ltiple-charts/
    http://ninjatrader.com/support/forum...059#post477059
    https://ninjatrader.com/support/foru...720#post820720

    Please let me know if I may assist further.


    The 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 add-ons 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.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by dmking, 11-12-2019, 12:31 PM
    4 responses
    4,140 views
    0 likes
    Last Post jasonw
    by jasonw
     
    Started by roblogic, Today, 04:31 PM
    0 responses
    5 views
    0 likes
    Last Post roblogic  
    Started by morrnel, 05-12-2024, 06:07 PM
    4 responses
    55 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by xepher101, 05-10-2024, 12:19 PM
    6 responses
    71 views
    0 likes
    Last Post xepher101  
    Started by gbourque, Today, 04:11 PM
    0 responses
    3 views
    0 likes
    Last Post gbourque  
    Working...
    X