Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Wizard question candle between EMA's

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

    Strategy Wizard question candle between EMA's

    I am a new user of the NT. It is really an amazing software. I am trying to make some sample backtesting, I've spent hours trying to get the Strategy Wizard's functions do what I want Please help me out with this:

    I want to enter long when these conditions are present:

    20EMA above 50EMA and open&close of the candle (full body) is in within the range of 20EMA and 50EMA, enter long one tick above the high.


    Obviously my logic is not what of the Strategy Wizard, this is what I put what seems as logic to me:

    Conditions:

    EMA(20)[1]>EMA(50)[1]
    Close[1]>=EMA(50)[1]
    Open[1]>=EMA(50)[1]
    Close[1]<=EMA(20)[1]
    Open[1]<=EMA(20)[1]

    I also tried to use separate Sets for each, nothing seems to work

    Do following:

    Enter long position

    In words the idea is the fast ema must be above slow ema, price then must come to the range between fast and slow ema's whole candle must form within this range. Enter long next bar one tick above.

    I'll appreciate any help.
    Thank you.
    Last edited by SNIP07; 05-09-2009, 11:47 AM.

    #2
    Originally posted by SNIP07 View Post
    I am a new user of the NT. It is really an amazing software. I am trying to make some sample backtesting, I've spent hours trying to get the Strategy Wizard's functions do what I want Please help me out with this:

    I want to enter long when these conditions are present:

    20EMA above 50EMA and open&close of the candle (full body) is in within the range of 20EMA and 50EMA, enter long one tick above the high.


    Obviously my logic is not what of the Strategy Wizard, this is what I put what seems as logic to me:

    Conditions:

    EMA(20)[1]>EMA(50)[1]
    Close[1]>=EMA(50)[1]
    Open[1]>=EMA(50)[1]
    Close[1]<=EMA(20)[1]
    Open[1]<=EMA(20)[1]

    I also tried to use separate Sets for each, nothing seems to work

    Do following:

    Enter long position

    In words the idea is the fast ema must be above slow ema, price then must come to the range between fast and slow ema's whole candle must form within this range. Enter long next bar one tick above.

    I'll appreciate any help.
    Thank you.
    Can you post your entire code?

    Comment


      #3
      Originally posted by roonius View Post
      Can you post your entire code?
      Roonius, Im not using program coding, I use Wizard. This condition is all I need, all other parts of the method I used I could figure out myself.

      Comment


        #4
        Originally posted by SNIP07 View Post
        Roonius, Im not using program coding, I use Wizard. This condition is all I need, all other parts of the method I used I could figure out myself.
        try changing all [1] to [0]

        Comment


          #5
          Originally posted by roonius View Post
          try changing all [1] to [0]
          Roonius, I did try that too. Didnt work. Am I doing it correct putting all these under one Set 1? This seems to be a simple function, dont know why my NT doesnt understand it.

          Comment


            #6
            Debugging is always the frustrating part of any type of logic development. Here are some tips -

            - Strip down your strategy a single condition 20 MA > 50 MA
            - For your action, just color the bar or draw some sort of chart marker on the bar when this condition evaluates to true
            - Throw this strategy on a chart (backtest), inspect the chart, are the markers where you expect them
            - Add the next line, Close < 50 MA etc...
            - Repeat this process until it no longer delivers against your expectations, then you know where your logic issue is
            RayNinjaTrader Customer Service

            Comment


              #7
              Jerry

              Originally posted by NinjaTrader_Ray View Post
              Debugging is always the frustrating part of any type of logic development. Here are some tips -

              - Strip down your strategy a single condition 20 MA > 50 MA
              - For your action, just color the bar or draw some sort of chart marker on the bar when this condition evaluates to true
              - Throw this strategy on a chart (backtest), inspect the chart, are the markers where you expect them
              - Add the next line, Close < 50 MA etc...
              - Repeat this process until it no longer delivers against your expectations, then you know where your logic issue is
              Can you tell me or at least send me a picture of a candlestick trading strategy so I can copy it into a new strategy. Just show me the inputs.

              thanks

              Comment


                #8
                Hello jlawson321,

                Thank you for your post and welcome to the NinjaTrader Support Forum!

                What are you looking for as far as a "candlestick strategy"?

                You may find what you are looking for in the NinjaScript File Sharing Section: http://www.ninjatrader.com/support/f...splay.php?f=37

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                647 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                369 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                108 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                572 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                573 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X