Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Run Strategy on Dow with Eur/Dol indicator

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

    Run Strategy on Dow with Eur/Dol indicator

    Hello

    I have a Strategy on Dow Jones
    I want Trade Dow Jones with a value of Eur/Dol (ES) indicator

    How can I declarate an external variables on Eur/Dol (ES) indicator
    to have it under Dow Jones

    Thanks

    Pierre

    #2
    Hi Pierre,

    Thanks for the post and welcome to the NinjaTrader forums! NinjaScript allows you to work with multiple instruments or time frames within the same script. To see an example of this, click Tools > Edit NinjaScript > Strategy > SampleMultiInstrument. Documentation for this is available here:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Yes I know that, but is not that I need

      How can I declarate a Variable Externe on Eur/dol
      and obtain it in my Dow Jones Strategy

      Comment


        #4
        Sorry, I'm not following. Can you please clarify what is " a Variable Externe on Eur/dol"? Where are you getting this?
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Thanks, I explain

          I have a personal Indicator on Eur/dol with a Private value named "DirectionEuRDol"

          In my Strategy on Dow Jones I need the value of "DirectionEuRDol"

          How can I obtain the value of "DirectionEuRDol" in side Dow Jones stategy ...

          Comment


            #6
            I see. Thanks for the follow-up. This is possible. If the value is not a plot, then it will require additional structure in the indicator for the DirectionEuRDo variable.

            There is an example of this available in the following sample:


            You would follow the same structure that's used for ExposedVariable
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              Hello

              Thanks for the exemple in ExposedVariable
              I have add the good lines in my indicator and the compilation is good
              no problem

              but when I built my Strategy
              when I select my indicator
              it is impossible to add a line "
              ExposedVariable" > 5

              Exposedvariable is not selectable in the menu item of the indicator in Strategy building

              what is missing ?

              thanks

              Pierre



              Comment


                #8
                The only items available from the strategy wizard are indicator plots. The exposed variable would be available but only when working in code.

                Print(SampleBoolSeries().ExposedVariable);
                Last edited by NinjaTrader_RyanM1; 04-25-2012, 07:57 AM.
                Ryan M.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                656 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                371 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                109 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                574 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                579 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X