Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

stratety doesn't work.

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

    stratety doesn't work.

    if the high[0] is the highest of the loast 30 period, generate a down arrow.

    #2
    Are you working this out in the Strategy Wizard? If so please post a screenshot of your setup conditions, you might want to do something like this
    Code:
     
    if (CrossBelow(High, MAX(High, 30), 1))
    {
    DrawArrowDown("Sell" + CurrentBar, false, 0, High[0] + 1 * TickSize, Color.Red);
    }

    Comment


      #3
      Originally posted by zhaofang8898 View Post
      if the high[0] is the highest of the loast 30 period, generate a down arrow.
      if(High[0] == MAX(High, 30)[0])
      // Do your stuff

      or

      if(HighestBar(High, 30) == 0)
      //Do your stuff

      Comment


        #4
        still not working, can anyone run it please?

        if(High[0] == HighestBar(High, 30))

        Comment


          #5
          zhaofang8898,

          Please do not mix and match the concepts. Roonius provided you with two separate ideas that will do what you have specified. You can either go with option A or option B.
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            thanks a lot for your help, guys

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            576 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            334 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            553 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            551 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X