Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

WFP controls to manage strategy

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

    WFP controls to manage strategy

    For a while now, i've attached some buttons to my charts that are simple market enter/exit buttons. It works really well with my strategy, and I'm now trying to expand upon what I have to modify strategy thresholds based on market conditions, without restarting the strategy.

    I know I can do this by attaching basic controls directly to the a Grid on the chart, but it 's a pain (for instance, cant type numbers fields because of conflicts with UI shortcuts). I looked at the AddOn framework, and it's really great - the controls look very helpful.

    Option 1: Embed AddOn UI in the chart as a second panel (for ref to the strategy)
    I want to embed the controls from the AddOn framework in an indicator so that I can directly reference the strategy of the indicator. However, for the life of me I cannot figure out how to embed it. Is this possible, and is there a sample that shows me how to do this? I can attach buttons to a grid but the most I can seem to do is attach to to somewhere on the chart.

    Option 2: Floating window
    I can also make a floating window, but I can't figure out how to reference an active strategy for reading of values and setting of values. Is this possible?

    Any help is welcome,
    Attached Files

    #2
    Hello Skifree,

    The SampleWPFModifications reference sample demonstrates adding a panel to a chart.
    https://developer.ninjatrader.com/docs/desktop/creating_chart_wpf_ui_modifications_from_an_indica tor

    Also, below is a link to an example of opening a new window to enter information and pass this back to the host.


    Last, below is a link to an example of using unsupported and undocumented code to prevent the instrument overlay selector from appearing.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    49 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X