Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Anyone able to code this TOS script to NT8 Interesting Pivot App
Collapse
X
-
Anyone able to code this TOS script to NT8 Interesting Pivot App
This was given to me by a friend. It's a cool pivot program called Fib Grid Levels. It sets Fib levels on your charts that are based on their own proprietary work. Can be used with all markets as far as I know. FG.docx I also posted a text file below in post #4 if you do not want to download the docx version. Thank you.Last edited by diver; 12-28-2018, 02:57 PM.Tags: None
-
Hello diver,
Thank you for posting.
I just wanted to chime in real quick as it may help your post to upload an image of what you are referring to in TOS to give an idea what the code produces. Some users may also be off-put by the .docx extension, it may also help to use a more simple format such as a text file which users may be more inclined to download.
Please let me know if I may be of additional assistance.
-
Thanks for the reply. That's the format it was sent to me in. It doesn't really have many bells and whistles on the chart. They are simply pivot lines. I guess the importance is how they are derived. People that use them seem to be very pleased with the results. Here is a sample taken from the file of what's on the download if that helps. Since I can't write code it's meaningless to me.Originally posted by NinjaTrader_Jesse View PostHello diver,
Thank you for posting.
I just wanted to chime in real quick as it may help your post to upload an image of what you are referring to in TOS to give an idea what the code produces. Some users may also be off-put by the .docx extension, it may also help to use a more simple format such as a text file which users may be more inclined to download.
Please let me know if I may be of additional assistance.
Declare UPPER;
Input GridParams = {default manual, "Chart Range", "ES 2002"};
Inpu ei t grid_section = 1;
Input Subsection = {default none, "1", "2", "3", "1.1", "1.2", "1.3", "2.1", "2.2", "2.3", "3.1", "3.2", "3.3"};
Input Calculation = {default arithmetic, "semi-geometric"};
Input ProjectionMode = {default basic, high, "fixed point", "61.8 level"};
Input Display_Levels = 5;
Input Start = 7197.49;
Input Stop = 9043.47;
Input ProjectionPoint = 0.8346;
Input Show_Label = YES;
Def Begin;Def End;
switch (GridParams) {
case "Chart Range": begin = HighestAll(High); end = LowestAll(Low);
case "ES 2002": begin = 767.25; end = 955.25;
default: begin = Start; end = Stop;
}
def bi;def ei;
Switch (ProjectionMode) {
case high:bi = end;ei = end + end - begin;
case "fixed point":bi = ProjectionPoint;ei = ProjectionPoint + (end - begin);
case "61.8 level":bi = begin + 0.618 * (end - begin);ei = bi + end - begin;
default:bi = begin;ei = end;}
def pp1;def pp2;
switch (calculation) {
case arithmetic
p1 = if grid_section == 1 then bi else if grid_section == 2 then ei else bi + Power(1.6180339887, grid_section - 2) * (ei - bi); pp2 = if grid_section == 1 then ei else bi + Power(1.6180339887, grid_section - 1) * (ei - bi);
case "semi-geometric": pp1 = if grid_section == 1 then bi else if grid_section == 2 then ei else bi * Power(1.6180339887, grid_section - 2) * (ei / bi); pp2 = if grid_section == 1 then ei else bi * Power(1.6180339887, grid_section - 1) * (ei / bi);}
Comment
-
-
More like the attached photo on screencast link.Originally posted by samir.of.salem View Post
Hi diver.
Does it look anything like this?
www.screencast.com/t/M0slOUC6sph
The purple lines are the Fib Grid levels and they vary in appearance depending on importance.Last edited by diver; 01-13-2019, 04:16 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
650 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
577 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment