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

Strategie mit 3 Bedingungen

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

    Strategie mit 3 Bedingungen

    Hi,
    ich möchte meine Trading-Strategie automatisieren. Ich habe zwei Bedingungen an den NinjaTrader 8.

    Die erste ist: Wenn der Preis über der oberen Linie von Keltner Channel war (Bild1)
    zweite: Wenn der Preis von oberen Linie des Keltner Channels die mittlere Linie durchbricht (Bild 2)

    Drittens: Wenn das passiert ist, soll eine Long-Position eröffnet werden, wenn der Preis wieder die mittlere Linie nach oben durchbricht.

    Doch leider funktioniert es nicht, obwohl es ziemlich simple ist. Kann mir da jemand helfen?
    Beste Grüße
    Viktor

    #2
    The same in English

    Hi,
    I would like to automate my trading strategy. I have three conditions to NinjaTrader 8.

    The first one is: When the price was above the upper line of Keltner Channel (picture1)
    second: When the price from upper line of Keltner Channel breaks the middle line (picture2)

    Third: When this happened, a long position should be opened when the price breaks the middle line upwards again.

    But unfortunately it does not work, although it is quite simple. Can anyone help me with this?
    Best regards
    Viktor

    Comment


      #3
      Hello bahrain321,

      Thanks for your post.

      It seems in the screenshots you shared that you are using crossabove/crossbelow conditions with a lookback period of 0. Crossabove and crossbelow conditions require a lookback period of at least 1.

      You would need to change the lookback period to a minimum of 1 for the crossabove/crossbelow conditions in your strategy.

      See these help guide pages for more information.
      Crossabove: https://ninjatrader.com/support/help...crossabove.htm
      Crossbelow: https://ninjatrader.com/support/help...crossbelow.htm

      Let us know if we may assist further.
      Brandon H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Rapine Heihei, Today, 08:19 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by Rapine Heihei, Today, 08:25 PM
      0 responses
      5 views
      0 likes
      Last Post Rapine Heihei  
      Started by f.saeidi, Today, 08:01 PM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by Rapine Heihei, Today, 07:51 PM
      0 responses
      6 views
      0 likes
      Last Post Rapine Heihei  
      Started by frslvr, 04-11-2024, 07:26 AM
      5 responses
      97 views
      1 like
      Last Post caryc123  
      Working...
      X