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!
See more
See less

Partner 728x90

Collapse

Anyone able to code this TOS script to NT8 Interesting Pivot App

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.
    Attached Files
    Last edited by diver; 12-28-2018, 02:57 PM.

    #2
    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

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      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.


      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


        #4
        Here it is in text document form. FG.txt

        They are called: FIB GRID LEVELS
        Attached Files
        Last edited by diver; 12-27-2018, 02:19 PM.

        Comment


          #5
          Originally posted by diver View Post
          Here it is in text document form. FG.txt

          They are called: FIB GRID LEVELS
          Hi diver.

          Does it look anything like this?




          Comment


            #6
            Originally posted by samir.of.salem View Post

            Hi diver.

            Does it look anything like this?



            More like the attached photo on screencast link.

            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 Perr0Grande  
            Started by elderan, Today, 08:03 PM
            0 responses
            5 views
            0 likes
            Last Post elderan
            by elderan
             
            Started by algospoke, Today, 06:40 PM
            0 responses
            10 views
            0 likes
            Last Post algospoke  
            Started by maybeimnotrader, Today, 05:46 PM
            0 responses
            12 views
            0 likes
            Last Post maybeimnotrader  
            Started by quantismo, Today, 05:13 PM
            0 responses
            7 views
            0 likes
            Last Post quantismo  
            Working...
            X