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

Strategy Analyzer and virtual buttons

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

    Strategy Analyzer and virtual buttons

    Hello.
    I would like use in my code 2 Instruments. In result I have to use Add Data Series. And in the same time, if I`m right, I can`t use Strategy Analyzer because I have 2 Instruments.
    So I have some questions:

    1) Is it possible Analyse strategy with 2 or more Instruments in code?
    2) How I can switch ON/OFF second Instrument from chart like press button without changing Settings? If Button "Instrument 2" is pressed and status is ON - code have to receive feedback from button on chart and use it in code. Is it possible-buttons for chart and dynamic feedback for code?

    Thanks!

    #2
    Hello sergey_z,
    Thanks for your post.

    1) Is it possible Analyse strategy with 2 or more Instruments in code?
    You may add as many data series as you want, but the instrument you select in the Strategy Analyzer will be the Primary Data Series for the purposes of calculating the strategies logic.
    Also, please see post #2 at the following link:


    2) How I can switch ON/OFF second Instrument from chart like press button without changing Settings? If Button "Instrument 2" is pressed and status is ON - code have to receive feedback from button on chart and use it in code. Is it possible-buttons for chart and dynamic feedback for code?
    It would be possible to create a custom button on your chart with the UserControlCollection that does something like this. Please see the following link for more information and a sample in the help guide:



    Please let me know if you have any questions.
    Josh G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by TAJTrades, Today, 09:46 AM
    0 responses
    2 views
    0 likes
    Last Post TAJTrades  
    Started by rhyminkevin, Yesterday, 04:58 PM
    5 responses
    62 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Started by realblubb, Today, 09:28 AM
    0 responses
    4 views
    0 likes
    Last Post realblubb  
    Started by AaronKoRn, Yesterday, 09:49 PM
    1 response
    19 views
    0 likes
    Last Post Rikazkhan007  
    Started by ageeholdings, Today, 07:43 AM
    0 responses
    12 views
    0 likes
    Last Post ageeholdings  
    Working...
    X