Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dinapoli Stochastic

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

    Dinapoli Stochastic

    I programmed my first indicator, the "Dinapoli Stochastic". Nothing really fancy about it, but it is a stochastic based on an EMA instead of a SMA. I found this indicator on the GFT-Dealbook platform. And here it is.
    I also implemented a color-background with opacity ("alpha" parameter) which looks better and which can be changed in the indicator properties (in the "General" section).
    One parameter specifies behavior of the color background (called "extremes" in the "General" section of the properties).
    For example: If the K-line crosses the D-line from below anywhere on the indicator pane, the background changes to green (and to red vice versa). If you switch the parameter "extremes" in the properties to "true", the behavior changes. Extreme zones (over 80, below 20) are respected now. That means the same cross wouldn`t change the background color to green, if the D-line is still below the 20 zone ("overbought"). Instead it "waits" until the D-line crosses above 20 (and vice versa for 80) . See my pics for explanation.
    I have a problem with my indicator export. So I compiled an archive on my own, which imports well on my platform, so this shouldn't be a problem. But you never know.
    Please comment, if anyone has a problem with it.
    Attached Files
    Last edited by delta88; 09-26-2007, 11:30 PM. Reason: update indicator

    #2
    Originally posted by delta88 View Post
    I programmed my first indicator, the "Dinapoli Stochastic". Nothing really fancy about it, but it is a stochastic based on an EMA instead of a SMA. I found this indicator on the GFT-Dealbook platform. And here it is.
    I also implemented a color-background with opacity ("alpha" parameter) which looks better and which can be changed in the indicator properties (in the "General" section).
    One parameter specifies behavior of the color background (called "extremes" in the "General" section of the properties).
    For example: If the K-line crosses the D-line from below anywhere on the indicator pane, the background changes to green (and to red vice versa). If you switch the parameter "extremes" in the properties to "true", the behavior changes. Extreme zones (over 80, below 20) are respected now. That means the same cross wouldn`t change the background color to green, if the D-line is still below the 20 zone ("overbought"). Instead it "waits" until the D-line crosses above 20 (and vice versa for 80) . See my pics for explanation.
    I have a problem with my indicator export. So I compiled an archive on my own, which imports well on my platform, so this shouldn't be a problem. But you never know.
    Please comment, if anyone has a problem with it.
    Hi Delta,

    Thanks for the indicator ,it looks really good.

    I am having a problem getting it to work on timeframes lower than 30 min charts.

    EDIT, I have NT6 running on 2 machines ,I can see the indicator on lower timeframes on FX my charts from Gain. But for some reason I cant get it to display on charts under M30 on my other machine that is connected to IB,
    a bit odd really .

    Thanks
    Ian
    Last edited by buderim; 09-25-2007, 09:48 PM.

    Comment


      #3
      I'm sorry to hear that. What does your log say when you put the indicator on the chart? Does it say something funny?

      I don't have an IB account, so I cannot reproduce the error.

      Comment


        #4
        Originally posted by delta88 View Post
        I'm sorry to hear that. What does your log say when you put the indicator on the chart? Does it say something funny?

        I don't have an IB account, so I cannot reproduce the error.
        Hi Delta,

        I dont get any error message in the log, I will have a play about to try and see why.

        It looks good on the M30 .

        Thanks
        Ian
        Attached Files
        Last edited by buderim; 09-26-2007, 12:31 AM.

        Comment


          #5
          Great Indicator

          Hello,

          I see the smoothness of the lines in your chart example,
          do you mind sharing your settings?

          I tried to get the same smoothness and it always comes
          out very choppy compared to your example???

          thanks in advance

          Colin

          Comment


            #6
            Thanks for your compliments.
            I used the default values for Period(14), LineK_Period(6), LineD_Period(6), Price(close).

            Maybe your timeframe is too fast (below 30min), that means you may want to extend the Period to maybe 25 or even 30. Also you may need to adjust the smoothing period of the D and K line from 6 to maybe 10 or 12. This should result in less "choppiness".

            Or could this be another bug? I don't know.

            Delta88

            Comment


              #7
              Originally posted by buderim View Post
              Hi Delta,

              I dont get any error message in the log, I will have a play about to try and see why.

              It looks good on the M30 .

              Thanks
              Ian
              Do you Try

              if (CurrentBar < period)
              return;

              Comment


                #8
                I dont' think this is zipped corrected because the zip file only contains @EMA.cs
                @MAX.cs
                @MIN.cs
                and no dinStoch file.

                Comment


                  #9
                  Dinapoli Stochastic Use in a Strategy

                  I was hoping somebody could help me.
                  I like the Dinapoli Stochastics but when I use
                  it in a strategy it always defaults to the
                  original inputs of (6,6,14) no matter where in the
                  strategy I try to change them.

                  Any suggestions?

                  Thanks

                  Hank777

                  Comment


                    #10
                    When you are adding the strategy you should be able to change the settings.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      I have change the variables once the strategy has been applied
                      and from inside the strategy itself. It gives me the same result.
                      It will only use the indicators default values(6,6,14). It also takes a
                      long time to load if inputs are changed... up to 20 seconds ...strange..
                      It is just a simple cross over strat made with the Strat. Wizard.

                      Maybe there is something wrong with the indicator.?

                      Comment


                        #12
                        Yep, I took a look at the code and it is setting those values in the Initialize section. If you delete these 3 lines:

                        Period = 14;
                        LineK_Period = 6;
                        LineD_Period = 6;

                        it should work for you.

                        Comment


                          #13
                          I am using NT6.5, cant get it to plot

                          Hello, i cant get it to plot. the log has error message that says
                          'Error on plotting indicator 'DinapoliStochastic'. Please check the 'Plot' method:Overflow error. can anyone help? would love to get this to work and check it out.

                          Comment


                            #14
                            It works on 6.5 larger charts

                            It works on a 1,000 and 5,000 volume chart but doesn't work on a 300 or 100 (very small). It doesn't work on a 1 minute ES chart either.

                            I did get to work on a 400 volume chart.

                            Regards

                            Cliff
                            Last edited by ct; 02-04-2008, 01:24 AM.

                            Comment


                              #15
                              Pete_S.

                              Thank you for the help. It seems to be working fine now.

                              Hank

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by bortz, 11-06-2023, 08:04 AM
                              47 responses
                              1,606 views
                              0 likes
                              Last Post aligator  
                              Started by jaybedreamin, Today, 05:56 PM
                              0 responses
                              8 views
                              0 likes
                              Last Post jaybedreamin  
                              Started by DJ888, 04-16-2024, 06:09 PM
                              6 responses
                              18 views
                              0 likes
                              Last Post DJ888
                              by DJ888
                               
                              Started by Jon17, Today, 04:33 PM
                              0 responses
                              4 views
                              0 likes
                              Last Post Jon17
                              by Jon17
                               
                              Started by Javierw.ok, Today, 04:12 PM
                              0 responses
                              13 views
                              0 likes
                              Last Post Javierw.ok  
                              Working...
                              X