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

How to reference a higher TF of the Instrument being analysed in Strategy Builder

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

    How to reference a higher TF of the Instrument being analysed in Strategy Builder

    Hi,

    I would like to write a strategy which can be applied to multiple instruments, in order to back test multiple instruments.

    I'm not a coder, so am only using the Strategy Builder wizard.

    My strategy establishes trend by referencing the 200 EMA. I have added my higher TFs as additional data, and reference these as Entry conditions.

    Ie. USDJPY (Weekly) > EMA(200)

    How can I instead reference the EMA of a higher TF of the instrument the strategy is being applied to, so I can apply it to any currency? The logic of the 'default input' does not allow me to specify a TF, so I presume it can only apply to the TF being tested/applied to rather than higher TFs to establish trend?

    If there is a script i can use whilst also continuing to use the Strategy builder that would be great.



    Thanks!
    Last edited by TradingAssassin; 03-10-2022, 07:07 AM.

    #2
    Hi, thanks for posting. You can add extra series in the Additional Data tab of the builder (check Use Primary instrument), then apply the series to various indicators like the EMA:



    Best regards,
    -ChrisL
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Awesome thanks Chris.

      (You could add this advice to the Basket Testing Multiple Currencies page)

      Cheers!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,403 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by Shai Samuel, 07-02-2022, 02:46 PM
      4 responses
      94 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by DJ888, Yesterday, 10:57 PM
      0 responses
      6 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      158 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Yesterday, 09:29 PM
      0 responses
      8 views
      0 likes
      Last Post Belfortbucks  
      Working...
      X