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

Multi Instrument String

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

    Multi Instrument String

    Is there any way to be able to edit TWO instruments in an indicator?

    I already have


    Add("$EURUSD", PeriodType.Minute, 1);


    in my indicator. However I want to replace "$EURUSD" with a string variable, so I can change the second instrument from the chart. This means I don't have to make copies of the indicator for different instruments.


    Thanks for the help

    #2
    Originally posted by jimi euro View Post
    Is there any way to be able to edit TWO instruments in an indicator?

    I already have


    Add("$EURUSD", PeriodType.Minute, 1);


    in my indicator. However I want to replace "$EURUSD" with a string variable, so I can change the second instrument from the chart. This means I don't have to make copies of the indicator for different instruments.


    Thanks for the help
    Make it a public string property.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CommonWhale, Today, 09:55 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Gerik, Today, 09:40 AM
    2 responses
    7 views
    0 likes
    Last Post Gerik
    by Gerik
     
    Started by RookieTrader, Today, 09:37 AM
    2 responses
    12 views
    0 likes
    Last Post RookieTrader  
    Started by alifarahani, Today, 09:40 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by KennyK, 05-29-2017, 02:02 AM
    3 responses
    1,285 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X