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 martini, Yesterday, 04:45 PM
|
4 responses
30 views
0 likes
|
Last Post
by martini
Today, 04:48 PM
|
||
Started by catinabag, 04-13-2023, 05:46 AM
|
34 responses
1,458 views
0 likes
|
Last Post
by mcosta72
Today, 04:44 PM
|
||
Started by adeelshahzad, Today, 11:49 AM
|
6 responses
23 views
0 likes
|
Last Post
by mcosta72
Today, 04:35 PM
|
||
Started by sidlercom80, 05-05-2020, 07:20 AM
|
4 responses
304 views
0 likes
|
Last Post
by Bidder
Today, 04:35 PM
|
||
Started by andrew56, 11-21-2017, 11:57 AM
|
6 responses
954 views
0 likes
|
Last Post
by Bidder
Today, 04:34 PM
|
Comment