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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            67 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            36 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            60 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            62 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            53 views
            0 likes
            Last Post CarlTrading  
            Working...
            X