Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need help with this

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

    #16
    UltraNIX here you go!

    It's functional right now but there are a lot more optional moving parts to it.
    Attached Files
    Last edited by kaywai; 06-01-2022, 08:28 AM.

    Comment


      #17
      Tasker-182

      I hope the OP doesn't mind me posting here and if I may ask for any help.


      I applied the code you kindly posted in post 2 and example post 6 to reduce the number of arrows appearing at any one time (see attached image).

      ie: for say 10 MaxObjects then the oldest 10th arrow will be removed from the chart when a new arrow plots.

      However this only works when calculate is set to "on bar close".

      If I set calculate "on price change " or "on each tick" and when arrow (11) plots then all 10 arrows group together and plot on top of the latest arrow.


      If I hit F5 then the previous 10 arrows show again on their correct volume bars but again when a new latest arrow plots all the previous 10 arrows move on top of it.

      Hoping for some help

      Kind regards


      Here is my code:

      {
      if (CurrentBar < 1) return;

      if (Volume[0] > Volume[1])

      {

      Draw.ArrowUp(this, "MyArrowUp"+myCounter, true, 0, Volume[0]+P1, C5);
      myCounter++;

      if (myCounter >= MaxObjects)
      {
      myCounter = 0;
      }
      } ​
      When calculate is set to "on bar close" the number of arrows as per MaxObjects remains correct (ie: 10)

      Click image for larger version  Name:	Volume increasing over last bar with arrows.jpg Views:	0 Size:	14.2 KB ID:	1229784

      However when calculate is set to "on each tick" or "on price change" then all previous arrows move on top of the latest newest arrow (the black arrow has 10 arrows plotted on top of each other).

      Click image for larger version  Name:	Volume increasing over last bar with arrows-b.jpg Views:	0 Size:	15.3 KB ID:	1229785
      Last edited by dj22522; 01-04-2023, 08:15 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      646 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      367 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
      569 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