Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dinapoli Stochastic

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

    #31
    ghtrader, have you checked the log tab in NT's Control Center when this happens? Any note of an issue there?

    Thanks,
    BertrandNinjaTrader Customer Service

    Comment


      #32
      Originally posted by ghtrader View Post
      When I use 1 m or 2 m bar, it will just show blank, Can anybody help me? Thank you!
      See if this works better, there was a division issue in the original code, which is fixed now.
      Attached Files
      BertrandNinjaTrader Customer Service

      Comment


        #33
        Thank You

        Thanks Bertrand, it works great!

        Comment


          #34
          Originally posted by boboinuk View Post
          THERE IS EVEN THE DINAPOLI FIBO:
          //+------------------------------------------------------------------+
          #property copyright "Rob"
          #property link "http://www.viac.ru/"

          #property indicator_chart_window
          #property indicator_buffers 0
          //---- input parameters

          extern double PointA=0;
          extern double PointB=0;
          extern double PointC=0;
          extern double PointF=0;
          extern double PointF1_blue=0;
          extern double PointF2_pink=0;
          extern double PointF3_brown=0;
          extern double PointF4_silver=0;

          double COP=0,OP=0,XOP=0;
          double Start=0,Stop=0,f1g=0,F1R=0,f2g=0,F2R=0,f3g=0,F3R=0 ,f4g=0,F4R=0;

          int shift = 0,counted_bars=0;

          //+------------------------------------------------------------------+
          //| Custom indicator initialization function |
          //+------------------------------------------------------------------+
          int init()
          {

          return(0);
          }
          //+------------------------------------------------------------------+
          //| Custor indicator deinitialization function |
          //+------------------------------------------------------------------+
          int deinit()
          {
          //---- TODO: add your code here

          ObjectDelete("COP Label");
          ObjectDelete("COP Line");
          ObjectDelete("OP Label");
          ObjectDelete("OP Line");
          ObjectDelete("XOP Label");
          ObjectDelete("XOP Line");

          ObjectDelete("Start Label");
          ObjectDelete("Start Line");
          ObjectDelete("Stop Label");
          ObjectDelete("Stop Line");

          ObjectDelete("f1g Label");
          ObjectDelete("f1g Line");
          ObjectDelete("F1R Label");
          ObjectDelete("F1R Line");
          ObjectDelete("f2g Label");
          ObjectDelete("f2g Line");
          ObjectDelete("F2R Label");
          ObjectDelete("F2R Line");
          ObjectDelete("f3g Label");
          ObjectDelete("f3g Line");
          ObjectDelete("F3R Label");
          ObjectDelete("F3R Line");
          ObjectDelete("f4g Label");
          ObjectDelete("f4g Line");
          ObjectDelete("F4R Label");
          ObjectDelete("F4R Line");

          //----
          return(0);
          }
          //+------------------------------------------------------------------+
          //| Custom indicator iteration function |
          //+------------------------------------------------------------------+
          int start()
          {
          int counted_bars=IndicatorCounted(),CountBars;
          if (CountBars>=Bars) CountBars=Bars;
          //SetIndexDrawBegin(0,Bars-CountBars);
          //SetIndexDrawBegin(1,Bars-CountBars);
          for (shift=1;shift<=0;shift--) {
          }

          //---- Calculate Lines

          COP = (PointB-PointA)*0.618+PointC;
          OP = PointB-PointA+PointC;
          XOP = (PointB-PointA)*1.618+PointC;

          f1g = PointF-(PointF-PointF1_blue)*0.382;
          F1R = PointF-(PointF-PointF1_blue)*0.618;
          f2g = PointF-(PointF-PointF2_pink)*0.382;
          F2R = PointF-(PointF-PointF2_pink)*0.618;
          f3g = PointF-(PointF-PointF3_brown)*0.382;
          F3R = PointF-(PointF-PointF3_brown)*0.618;
          f4g = PointF-(PointF-PointF4_silver)*0.382;
          F4R = PointF-(PointF-PointF4_silver)*0.618;

          //---- Set line labels on chart window
          {

          if(ObjectFind("COP Label") != 0)
          {
          ObjectCreate("COP Label", OBJ_TEXT, 0, Time[40], COP);
          ObjectSetText("COP Label", "COP", 11, "Arial", Yellow);
          }
          else
          {
          ObjectMove("COP Label", 0, Time[40], COP);
          }

          if(ObjectFind("OP Label") != 0)
          {
          ObjectCreate("OP Label", OBJ_TEXT, 0, Time[40], OP);
          ObjectSetText("OP Label", " OP", 11, "Arial", Yellow);
          }
          else
          {
          ObjectMove("OP Label", 0, Time[40], OP);
          }

          if(ObjectFind("XOP Label") != 0)
          {
          ObjectCreate("XOP Label", OBJ_TEXT, 0, Time[40], XOP);
          ObjectSetText("XOP Label", "XOP", 11, "Arial", Gold);
          }
          else
          {
          ObjectMove("XOP Label", 0, Time[40], XOP);
          }

          //-------------------------------------------------------------------
          if(ObjectFind("f1g Label") != 0)
          {
          ObjectCreate("f1g Label", OBJ_TEXT, 0, Time[45], f1g);
          ObjectSetText("f1g Label", " f1g", 11, "Arial", DodgerBlue);
          }
          else
          {
          ObjectMove("f1g Label", 0, Time[45], f1g);
          }

          if(ObjectFind("F1R Label") != 0)
          {
          ObjectCreate("F1R Label", OBJ_TEXT, 0, Time[45], F1R);
          ObjectSetText("F1R Label", " F1R", 11, "Arial", DodgerBlue);
          }
          else
          {
          ObjectMove("F1R Label", 0, Time[45], F1R);
          }
          //---------------------------------------------
          if(ObjectFind("f2g Label") != 0)
          {
          ObjectCreate("f2g Label", OBJ_TEXT, 0, Time[50], f2g);
          ObjectSetText("f2g Label", " f2g", 11, "Arial", DeepPink);
          }
          else
          {
          ObjectMove("f2g Label", 0, Time[50], f2g);
          }

          if(ObjectFind("F2R Label") != 0)
          {
          ObjectCreate("F2R Label", OBJ_TEXT, 0, Time[50], F2R);
          ObjectSetText("F2R Label", " F2R", 11, "Arial", DeepPink);
          }
          else
          {
          ObjectMove("F2R Label", 0, Time[50], F2R);
          }
          //------------------------------------------------
          if(ObjectFind("f3g Label") != 0)
          {
          ObjectCreate("f3g Label", OBJ_TEXT, 0, Time[55], f3g);
          ObjectSetText("f3g Label", " f3g", 11, "Arial", Peru);
          }
          else
          {
          ObjectMove("f3g Label", 0, Time[55], f3g);
          }

          if(ObjectFind("F3R Label") != 0)
          {
          ObjectCreate("F3R Label", OBJ_TEXT, 0, Time[55], F3R);
          ObjectSetText("F3R Label", " F3R", 11, "Arial", Peru);
          }
          else
          {
          ObjectMove("F3R Label", 0, Time[55], F3R);
          }
          //----------------------------------------------------------
          if(ObjectFind("f4g Label") != 0)
          {
          ObjectCreate("f4g Label", OBJ_TEXT, 0, Time[60], f4g);
          ObjectSetText("f4g Label", " f4g", 11, "Arial", Silver);
          }
          else
          {
          ObjectMove("f4g Label", 0, Time[60], f4g);
          }

          if(ObjectFind("F4R Label") != 0)
          {
          ObjectCreate("F4R Label", OBJ_TEXT, 0, Time[60], F4R);
          ObjectSetText("F4R Label", " F4R", 11, "Arial", Silver);
          }
          else
          {
          ObjectMove("F4R Label", 0, Time[60], F4R);
          }


          //--- Draw lines on chart


          if(ObjectFind("COP Line") != 0)
          {
          ObjectCreate("COP Line", OBJ_HLINE, 0, Time[40], COP);
          ObjectSet("COP Line", OBJPROP_STYLE, STYLE_DOT);
          ObjectSet("COP Line", OBJPROP_COLOR, Yellow);
          }
          else
          {
          ObjectMove("COP Line", 0, Time[40], COP);
          }

          if(ObjectFind("OP Line") != 0)
          {
          ObjectCreate("OP Line", OBJ_HLINE, 0, Time[40], OP);
          ObjectSet("OP Line", OBJPROP_STYLE, STYLE_DASH);
          ObjectSet("OP Line", OBJPROP_COLOR, Gold);
          }
          else
          {
          ObjectMove("OP Line", 0, Time[40], OP);
          }

          if(ObjectFind("XOP Line") != 0)
          {
          ObjectCreate("XOP Line", OBJ_HLINE, 0, Time[40], XOP);
          ObjectSet("XOP Line", OBJPROP_STYLE, STYLE_DOT);
          ObjectSet("XOP Line", OBJPROP_COLOR, Yellow);
          }
          else
          {
          ObjectMove("XOP Line", 0, Time[40], XOP);
          }

          //----------------------------------------------------------------
          if(ObjectFind("f1g Line") != 0)
          {
          ObjectCreate("f1g Line", OBJ_HLINE, 0, Time[45], f1g);
          ObjectSet("f1g Line", OBJPROP_STYLE, STYLE_DOT);
          ObjectSet("f1g Line", OBJPROP_COLOR, LawnGreen);
          }
          else
          {
          ObjectMove("f1g Line", 0, Time[45], f1g);
          }

          if(ObjectFind("F1R Line") != 0)
          {
          ObjectCreate("F1R Line", OBJ_HLINE, 0, Time[45], F1R);
          ObjectSet("F1R Line", OBJPROP_STYLE, STYLE_DOT);
          ObjectSet("F1R Line", OBJPROP_COLOR, OrangeRed);
          }
          else
          {
          ObjectMove("F1R Line", 0, Time[45], F1R);
          }
          //----------------------------------------------
          if(ObjectFind("f2g Line") != 0)
          {
          ObjectCreate("f2g Line", OBJ_HLINE, 0, Time[50], f2g);
          ObjectSet("f2g Line", OBJPROP_STYLE, STYLE_DOT);
          ObjectSet("f2g Line", OBJPROP_COLOR, LawnGreen);
          }
          else
          {
          ObjectMove("f2g Line", 0, Time[50], f2g);
          }

          if(ObjectFind("F2R Line") != 0)
          {
          ObjectCreate("F2R Line", OBJ_HLINE, 0, Time[50], F2R);
          ObjectSet("F2R Line", OBJPROP_STYLE, STYLE_DOT);
          ObjectSet("F2R Line", OBJPROP_COLOR, OrangeRed);
          }
          else
          {
          ObjectMove("F2R Line", 0, Time[50], F2R);
          }
          //-------------------------------------------------
          if(ObjectFind("f3g Line") != 0)
          {
          ObjectCreate("f3g Line", OBJ_HLINE, 0, Time[55], f3g);
          ObjectSet("f3g Line", OBJPROP_STYLE, STYLE_DOT);
          ObjectSet("f3g Line", OBJPROP_COLOR, LawnGreen);
          }
          else
          {
          ObjectMove("f3g Line", 0, Time[55], f3g);
          }

          if(ObjectFind("F3R Line") != 0)
          {
          ObjectCreate("F3R Line", OBJ_HLINE, 0, Time[55], F3R);
          ObjectSet("F3R Line", OBJPROP_STYLE, STYLE_DOT);
          ObjectSet("F3R Line", OBJPROP_COLOR, OrangeRed);
          }
          else
          {
          ObjectMove("F3R Line", 0, Time[55], F3R);
          }
          //-----------------------------------------------------
          if(ObjectFind("f4g Line") != 0)
          {
          ObjectCreate("f4g Line", OBJ_HLINE, 0, Time[60], f4g);
          ObjectSet("f4g Line", OBJPROP_STYLE, STYLE_DOT);
          ObjectSet("f4g Line", OBJPROP_COLOR, LawnGreen);
          }
          else
          {
          ObjectMove("f4g Line", 0, Time[60], f4g);
          }

          if(ObjectFind("F4R Line") != 0)
          {
          ObjectCreate("F4R Line", OBJ_HLINE, 0, Time[60], F4R);
          ObjectSet("F4R Line", OBJPROP_STYLE, STYLE_DOT);
          ObjectSet("F4R Line", OBJPROP_COLOR, OrangeRed);
          }
          else
          {
          ObjectMove("F4R Line", 0, Time[60], F4R);
          }
          //------------------------------------------------------

          }
          //---- End of Lines Draw
          //---- End Of Program
          return(0);
          }
          //+------------------------------------------------------------------+
          I hope some one understands it all and has the time to help.
          HI boboinuk, all
          like you, i'm very interested in DINAPOLI style FIBO PLOT...have you successfully converted from metatrader to ninjatrader language? someone helped you?
          many thanks for help!

          Comment


            #35
            DiNapoli Stochastics.

            Hello all,

            I try to find last version of DiNapoli Stochastics and diNapoli MacD for NT7. Can someone post last WORKING version?

            Thanks a lot.

            Regards,
            FBO

            Comment


              #36
              Please Add to: Version 7 Indicators

              Originally posted by NinjaTrader_Bertrand View Post
              See if this works better, there was a division issue in the original code, which is fixed now.

              Hi NinjaTrader Bertrand,
              Could you please add this template to the Thread Version 7 Indicators? It shouldn't get lost!

              Although I have this Indicator and am using it, I had an awful time finding the template here again. For some reason it wasn't in my Import Folder.

              I needed it in my Import Folder because I'm going to experiment and try to change the K% line to Rising/Falling colors. If I mess up, I wanted to make sure I had the original template. I didn't want to lose it.

              I'm just lucky I found it again.

              Thanks.
              Last edited by SharonSS; 06-27-2013, 07:12 PM.

              Comment


                #37
                Sharon, sure we can post it there for future reference. Just a note, you can create a copy of any script as well easily to have the default version to back to if needed, just right click in your code and select to 'Save as' and then provide a new name...edit / amend only the new version now.
                BertrandNinjaTrader Customer Service

                Comment


                  #38
                  Thanks for that information and thank you for adding the template to the Version 7 Indicators Thread so others can use it!

                  Comment


                    #39
                    Dinapoli Macd Predictor &amp; Detrend Oscillator Predictor

                    Dear Experts,

                    I see that some people have already provided prefered stochastic, dmacd, DMA and detrend oscillator of dinapoli indicators. What I am looking for is the most important ones which are macd predictor and oscillator predictor. May I ask some help to code these two indicators for Ninjaplatform usage. By the way I have already these indicators for Metatrader platform so If needed I can provide them also.

                    My Best,

                    Ertan

                    Comment


                      #40
                      Hello,

                      Thank you for the question.

                      Since this is not related to the original discussion I would ask that you create a new thread instead of appending to an existing unrelated thread.

                      If you would like to reach out to other forum members on this item specifically, please start a topic for this in the NinjaScript forum here for this item: http://www.ninjatrader.com/support/f...splay.php?f=15

                      Otherwise you could also speak with a NinjaScript consultant if you would like this developed for you. you can find the consultants on the publicly available page here: http://ninjatraderecosystem.com/Part...ultants.php#81

                      I look forward to being of further assistance.
                      JaredNinjaTrader Ecosystem

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by sidlercom80, 10-28-2023, 08:49 AM
                      168 responses
                      2,262 views
                      0 likes
                      Last Post sidlercom80  
                      Started by Barry Milan, Yesterday, 10:35 PM
                      3 responses
                      10 views
                      0 likes
                      Last Post NinjaTrader_Manfred  
                      Started by WeyldFalcon, 12-10-2020, 06:48 PM
                      14 responses
                      1,429 views
                      0 likes
                      Last Post Handclap0241  
                      Started by DJ888, 04-16-2024, 06:09 PM
                      2 responses
                      9 views
                      0 likes
                      Last Post DJ888
                      by DJ888
                       
                      Started by jeronymite, 04-12-2024, 04:26 PM
                      3 responses
                      41 views
                      0 likes
                      Last Post jeronymite  
                      Working...
                      X