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 SalmaTrader, 07-07-2026, 10:26 PM
            0 responses
            47 views
            0 likes
            Last Post SalmaTrader  
            Started by CarlTrading, 07-05-2026, 01:16 PM
            0 responses
            22 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 06-17-2026, 10:32 AM
            0 responses
            15 views
            0 likes
            Last Post CaptainJack  
            Started by kinfxhk, 06-17-2026, 04:15 AM
            0 responses
            21 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by kinfxhk, 06-17-2026, 04:06 AM
            0 responses
            23 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Working...
            X