Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Want to modify bw fractal indicator

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

    Want to modify bw fractal indicator

    The bwfractal indicator for NT 7 puts a number on the chart at the fractal point which takes up to much space on the chart. I would like to replace that with a dot or diamond, where/how would I change that in the code?
    Attached Files

    #2
    Change the DrawText methods to DrawDot or DrawDiamond

    For instance change
    Code:
    	DrawText("High"+barcounter.ToString(), true, High[period].ToString(".0000"), period, High[period], 10, color, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
    To this:
    Code:
    DrawDot("High"+barcounter.ToString(), true, period, High[period], color);
    MatthewNinjaTrader Product Management

    Comment


      #3
      Originally posted by NinjaTrader_Matthew View Post
      Change the DrawText methods to DrawDot or DrawDiamond

      For instance change
      Code:
          DrawText("High"+barcounter.ToString(), true, High[period].ToString(".0000"), period, High[period], 10, color, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
      To this:
      Code:
      
      
      http://www.ninjatrader.com/support/h...t7/drawdot.htm

      do you mean replace that and insert just with this: DrawDot("High"+barcounter.ToString(), true, period, High[period], color);

      and cut off the rest of the original code?

      Comment


        #4
        In a sense - the two methods have a different number of arguments to compile. It's not exactly cutting off the rest of the code, but you are eliminating the arguments that are not needed in the DrawDot method.
        MatthewNinjaTrader Product Management

        Comment


          #5
          Originally posted by NinjaTrader_Matthew View Post
          In a sense - the two methods have a different number of arguments to compile. It's not exactly cutting off the rest of the code, but you are eliminating the arguments that are not needed in the DrawDot method.

          well I did that and saved the changes but it did not reflect in chart/is there another way to save the changed code?

          Comment


            #6
            After you make the changes, make sure you have right clicked on the code and select "Compile".

            Once compiled, please right click on the chart with the indicator and select 'reload NinjaScript'
            MatthewNinjaTrader Product Management

            Comment


              #7
              Originally posted by NinjaTrader_Matthew View Post
              After you make the changes, make sure you have right clicked on the code and select "Compile".

              Once compiled, please right click on the chart with the indicator and select 'reload NinjaScript'

              I did that but "compile" does not appear...

              Is there another way to compile ?
              Last edited by Gregory Arkadin; 03-19-2013, 01:49 PM.

              Comment


                #8
                Hi,

                Taking a step back - are you editing this from within NinjaTrader?

                You will need to make these changes under Tools--> Edit NinjaScript--> Indicator

                Please review our Help Guide article on the NinjaScript editor for more information:

                MatthewNinjaTrader Product Management

                Comment


                  #9
                  Originally posted by NinjaTrader_Matthew View Post
                  Hi,

                  Taking a step back - are you editing this from within NinjaTrader?

                  You will need to make these changes under Tools--> Edit NinjaScript--> Indicator

                  Please review our Help Guide article on the NinjaScript editor for more information:

                  http://www.ninjatrader.com/support/h...components.htm

                  I don't have the edit script option Is there a way you could edit/compile the change and re upload it the reply?
                  Last edited by Gregory Arkadin; 03-19-2013, 01:53 PM.

                  Comment


                    #10
                    Please try importing this and let me know if that does not do the trick.
                    Attached Files
                    MatthewNinjaTrader Product Management

                    Comment


                      #11
                      Originally posted by NinjaTrader_Matthew View Post
                      Please try importing this and let me know if that does not do the trick.

                      yes it works , but could you reduce the dot size ..3/4 the size of the current one?
                      Thanks again I appreciate ir

                      Can't reduce in the indicator itself

                      Comment


                        #12
                        The dots are dynamically drawn based off the scale of the chart.
                        MatthewNinjaTrader Product Management

                        Comment


                          #13
                          Originally posted by NinjaTrader_Matthew View Post
                          The dots are dynamically drawn based off the scale of the chart.

                          In the program you can reduce the lettering, wish there was a way to use perhaps another symbol or even letter that could be modified in size

                          Comment


                            #14
                            This indicator used to use a Wingdings symbol which was identical to the original BW Fractal indicator. I'd also like to see the original restored. I'm going to go through some scripting videos so I can try to figure this stuff out for myself. In the mean time....if anyone can assist that would be great!

                            My next goal is to plot the BW Wiseman signals.

                            Comment


                              #15
                              Here is BwFractals with Diamonds. I think getting the original symbol is a matter of using DrawText and plugging in the wingdings font.
                              Attached Files

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by zstheorist, Today, 07:52 PM
                              0 responses
                              3 views
                              0 likes
                              Last Post zstheorist  
                              Started by pmachiraju, 11-01-2023, 04:46 AM
                              8 responses
                              149 views
                              0 likes
                              Last Post rehmans
                              by rehmans
                               
                              Started by mattbsea, Today, 05:44 PM
                              0 responses
                              5 views
                              0 likes
                              Last Post mattbsea  
                              Started by RideMe, 04-07-2024, 04:54 PM
                              6 responses
                              33 views
                              0 likes
                              Last Post RideMe
                              by RideMe
                               
                              Started by tkaboris, Today, 05:13 PM
                              0 responses
                              5 views
                              0 likes
                              Last Post tkaboris  
                              Working...
                              X