Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How can I trigger an entry on the actual prize crossing XY and the SMA?

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

    How can I trigger an entry on the actual prize crossing XY and the SMA?

    Hello,
    I think, for many of you, a relative simple question.

    There are two conditions:
    - on the red circle at the picture there is my condition number one PLUS
    - I want to enter Short when I'm on the top of the actual range OR
    - I want to enter Long when I'm on the bottom of the actual Range

    ...and for this, I use the SMA with period 30 as "Moving Average", so how can I say on the strategy builder with two conditions:

    Make a Long Entry when:
    Red Circle Entry is there
    AND the actual price is below SMA 30

    Make a Short Entry when:
    Red Circly Entry is there
    AND the actual price is greater than the SMA 30

    With the "Price" - Greater Equal - "SMA" 30 it's not working.

    Thank you very much for your help,
    Andi
    Attached Files

    #2
    Hello andi5385,

    Thanks for your post.

    You would need to create a definition of the conditions in the red circle.

    Perhaps you might look at adding a faster or different type of moving average where in the red circle area price breaks below that moving average or changes its slope from rising to falling (and vice versa).

    You could consider using the Swing indicator which can define swing points such as shown by the red circles, however, the swing indicator would not reveal those points until some bars after the swing points (meaning perhaps a too-late entry) and this depends on the "strength' setting you use.

    We can leave this thread open for any community members that would like to contribute their ideas.


    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hello Paul,
      it's not possible to create conditions when the price is not in the area of the "red circle"?
      Thank you very much,
      Andi

      Comment


        #4
        Hello Andi,

        Thanks for your reply.

        I have been assuming that the red circles are something visually you determined after the fact.

        The issue is that you have to tell a computer how to determine the red circle entry condition has occurred as it occurs.

        What defines that red circle entry condition?

        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Hello Paul,
          sorry, let me clear that. The circle is simply another cross-condition with two (POC)-lines, created by an indicator.
          I only want to set a entry direction when the price is on the value area high for a short and value area low for a long.
          The swing indicator is an interesting option, but (like you said) not perfectly fitting my strategy.
          By the way, very nice and fast support, thank you,
          Andi

          Comment


            #6
            Hello Andi,

            Thanks for your reply and clarification.

            If you have the conditions of the red circle defined and all you need is the entry direction, why doesn't price greater or less than the 30 SMA work?


            Paul H.NinjaTrader Customer Service

            Comment


              #7
              Hi Paul,
              I don`t know really how to define this with the SMA 30 for example.When I activate my strategy NT does not make an entry.
              Am I doing this right?
              POCs are crossing at the bottom, actual price is less equal that the SMA 30.
              Please see my attachement.
              Attached Files

              Comment


                #8
                Hello andi5385,

                Thanks for your reply.

                Yes, that condition looks correct. It is asking if the close is less than or equal to the SMA(30) current value.

                Please check the "log" tab of the control center for any run time errors or warnings that may be occurring when you apply and enable your strategy.

                If there are no errors, then I suggest moving into debugging your strategy to find out what is going on.

                You may want to have each Set draw on the chart when your conditions of the set are true. This is a visual way to debug or at least to know when a set is true.
                Here is a link to aa short video that shows how to add draw markers and offset them from price bars so you can see them in the chart and see all that occur: https://paul-ninjatrader.tinytake.co...MF8xMTMwNTc0MA

                If that does not help, here is a link to another short video that shows how to construct a "print" statement where you can print out all of the values that you are using in the conditions and then checking them bar by bar. https://paul-ninjatrader.tinytake.co...NV8xMDk5MDc5Nw

                Paul H.NinjaTrader Customer Service

                Comment


                  #9
                  Thank you very much Paul, I will try this.
                  Have a nice day!

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by WNorton, Today, 11:23 AM
                  0 responses
                  8 views
                  0 likes
                  Last Post WNorton
                  by WNorton
                   
                  Started by stafe, Today, 10:43 AM
                  0 responses
                  8 views
                  0 likes
                  Last Post stafe
                  by stafe
                   
                  Started by UltraNIX, Today, 09:13 AM
                  1 response
                  10 views
                  0 likes
                  Last Post NinjaTrader_ChrisL  
                  Started by Tuxstuff215, Today, 06:32 AM
                  1 response
                  15 views
                  0 likes
                  Last Post NinjaTrader_ChrisL  
                  Started by carlot, Today, 08:10 AM
                  2 responses
                  21 views
                  0 likes
                  Last Post carlot
                  by carlot
                   
                  Working...
                  X