It's functional right now but there are a lot more optional moving parts to it.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Need help with this
Collapse
X
-
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:
When calculate is set to "on bar close" the number of arrows as per MaxObjects remains correct (ie: 10){
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;
}
}
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).
Last edited by dj22522; 01-04-2023, 08:15 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
64 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
94 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
51 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
108 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
63 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment