Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.
JesseNinjaTrader Customer Service
-
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 arithmeticp1 = 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
-
-
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 Perr0Grande, Today, 08:16 PM
|
0 responses
2 views
0 likes
|
Last Post
by Perr0Grande
Today, 08:16 PM
|
||
Started by elderan, Today, 08:03 PM
|
0 responses
5 views
0 likes
|
Last Post
by elderan
Today, 08:03 PM
|
||
Started by algospoke, Today, 06:40 PM
|
0 responses
10 views
0 likes
|
Last Post
by algospoke
Today, 06:40 PM
|
||
Started by maybeimnotrader, Today, 05:46 PM
|
0 responses
12 views
0 likes
|
Last Post Today, 05:46 PM | ||
Started by quantismo, Today, 05:13 PM
|
0 responses
7 views
0 likes
|
Last Post
by quantismo
Today, 05:13 PM
|
Comment