Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Modified Zig-zag to plot to most recent swing value
Collapse
X
-
Modified Zig-zag to plot to most recent swing value
Is there a version of the Zigzag indicator ( or can I easily tweak the code ) such that when there is for example several bars with the same consecutive extreme value ( such as micro triple-top or micro triple-bottoms), the zigzag will plot not to the 1st instance but to the most recent instance of that value? -
Hello,
Thank you for the question.
I am not entirely sure how hard it would be to accomplish what you are trying to do, mainly the logic of determining the second instance instead of the first like you want.
You can edit the original ZigZag to your liking, any of the stock indicators in fact.
You would need to make a duplicate of the origianl before you can edit it, you can do that by doing the following:
Click Tools -> Edit NinjaScript -> Indicator -> ZigZag and open it.
In the NinjaScript window, Right click and choose Save As.
Give it a new name.
The NinjaScript window that is already open will now be the new file.
From here you can determine exactly what you need to change and after compiling you will see the new indicator listed in your indicators list with whatever name you gave it.
Please let me know if I may be of additional assistance.JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by f.saeidi, Today, 12:14 PM
|
0 responses
1 view
0 likes
|
Last Post
by f.saeidi
Today, 12:14 PM
|
||
Started by giulyko00, Today, 12:03 PM
|
0 responses
4 views
0 likes
|
Last Post
by giulyko00
Today, 12:03 PM
|
||
Started by AttiM, 02-14-2024, 05:20 PM
|
12 responses
213 views
0 likes
|
Last Post
by DrakeiJosh
Today, 11:17 AM
|
||
Started by cre8able, 02-11-2023, 05:43 PM
|
3 responses
238 views
0 likes
|
Last Post
by rhubear
Today, 10:46 AM
|
||
Started by frslvr, 04-11-2024, 07:26 AM
|
8 responses
117 views
1 like
|
Last Post Today, 10:30 AM |
Comment