Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BB (TTM) Squeeze and PBF Squeeze replica ported to NT

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

  • dj22522
    replied
    Originally posted by roonius View Post
    I recommend to comment out entire enum section...
    So delete ALL the following ?

    public enum SqueezeStyle
    {
    BBSqueeze,
    PBFSqueeze,
    CounterTrend
    }


    thx

    Leave a comment:


  • roonius
    replied
    I recommend to comment out entire enum section...

    Leave a comment:


  • dj22522
    replied
    Originally posted by roonius View Post
    At the very top you have such code:

    public enum SqueezeStyle
    {
    BBSqueeze,
    PBFSqueeze,
    CounterTrend
    }

    comment it out or delete it in your newly saved code before compiling
    (don't touch it in original RSqueeze code)
    roonuis excellent, thx .
    I merely deleted the one word "Squeeze" form "SqeezeStyle"
    and that's solved it.
    That will now, at least, allow me to play around with the code.

    Any clues as to where in the script to add the Bar.Color code would be much appreciated.

    Many thx

    Leave a comment:


  • NinjaTrader_Ben
    replied
    Hello,

    Post the code after OnBarUpdate() in your next post and I will assit you.

    By the way, its BarColor, not Bar.Color.

    Leave a comment:


  • dj22522
    replied
    Originally posted by NinjaTrader_Ben View Post
    Hello,
    >>Oh I see. I misunderstood you. This is the link you want to use:

    Try embedding the BarColor changes within the conditions for the indicator changes, or build your own logic.
    Thx for your reply Ben.
    So I'm back to trying to understand where in the original script to embed the bar.color code.

    Thx

    Leave a comment:


  • roonius
    replied
    Originally posted by dj22522 View Post
    Yes I'm saving it under a diferent name via "save as".

    thx
    At the very top you have such code:

    public enum SqueezeStyle
    {
    BBSqueeze,
    PBFSqueeze,
    CounterTrend
    }

    comment it out or delete it in your newly saved code before compiling
    (don't touch it in original RSqueeze code)

    Leave a comment:


  • dj22522
    replied
    Originally posted by roonius View Post
    are you trying to save it under different name?
    Yes I'm saving it under a diferent name via "save as".?
    But as it creates the error on line 13, I'm unable to compile.

    I have deleted the newly named file via Windows Explorer each time.

    thx
    Last edited by dj22522; 01-17-2009, 02:48 PM.

    Leave a comment:


  • roonius
    replied
    Originally posted by dj22522 View Post
    Thx again .
    1. Firstly I need to get past the error on line 13 that keeps coming up regardless if I return the code to it's original (ie: if I add script and then delete it but I still get an error on line 13 as described in earlier post ) ?

    2. I am not understranding the links you refer to.
    Pressumably the script already has the code to plot and color the Histogram ? What I want to do is color the price bars on the chart according to the green/red histogram.

    Perhaps I'm missunderstanding your post ?

    Many thx
    are you trying to save it under different name?

    Leave a comment:


  • NinjaTrader_Ben
    replied
    Hello,

    1. Firstly I need to get past the error on line 13 that keeps coming up regardless if I return the code to it's original (ie: if I add script and then delete it but I still get an error on line 13 as described in earlier post ) ?

    >>Please follow the instructions below to see where the errors are coming from after compiling the indicator. This will allow you to debug the indicator/strategy or remove it from your PC. If you are wondering why you receive an error when compiling only one indicator, it is because NinjaTrader compiles all indicators and strategies- not just one.
    • Open NinjaTrader
    • From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
    • Select an indicator and double click on it.
    • A new window will appear and you will need to right click in the window and select Compile to compile the indicators.
    • At the bottom of the window a new section will appear were you can find the error locations.
    • From there you have the option to remove the indicator or debug it.
    If that does not work, you will need to completely re-install NT.
    Please follow the steps listed below to completely uninstall and reinstall NinjaTrader:
    1. Close all running applications.
    2. Then from the Start menu select --> Control Panel --> Add and Remove Programs.
    3. From Add and Remove Programs select NinjaTrader 6.5 and click Remove.
    4. Then manually delete the folder "NinjaTrader 6.5" located under Start --> My Documents.
    5. Delete any NinjaTrader installation files. This can be done by going to Start --> My Computer --> Search button --> search for (NinjaTrader*) --> select Local C Disk and then press search.
    6. Then you will need to clear your internet browser cache and history. You will clear this from within your internet browser (with IE, Tools-->Options, delete cookies and files, clear history).
    7. Reboot your machine.
    8. Once these steps are completed, download NT6.5 from the link below:
      Download
    Please let us know if you are able to get up and running after the reinstall.


    2. I am not understranding the links you refer to.
    Pressumably the script already has the code to plot and color the Histogram ? What I want to do is color the price bars on the chart according to the green/red histogram.

    >>Oh I see. I misunderstood you. This is the link you want to use:

    Try embedding the BarColor changes within the conditions for the indicator changes, or build your own logic.

    Leave a comment:


  • dj22522
    replied
    Originally posted by NinjaTrader_Ben View Post
    Hello,


    BarColor changes the price bar colors. This link will help:


    Study the PercentB2 indicator found in the link below to see how a histogram color change is done:


    You have to Add() the plot types then use if and else's to change the colors. This link will help with Add():
    http://www.ninjatrader-support.com/HelpGuideV6/Add.html
    Thx again .
    1. Firstly I need to get past the error on line 13 that keeps coming up regardless if I return the code to it's original (ie: if I add script and then delete it but I still get an error on line 13 as described in earlier post ) ?

    2. I am not understranding the links you refer to.
    Pressumably the script already has the code to plot and color the Histogram ? What I want to do is color the price bars on the chart according to the green/red histogram.

    Perhaps I'm missunderstanding your post ?

    Many thx

    Leave a comment:


  • roonius
    replied
    Originally posted by dj22522 View Post
    Thank you for the offer of assistance.


    If I could know what part of the original code is specific to the histogram then I am supposing I could add the Bar.Color code there ?
    Exactly...

    Leave a comment:


  • NinjaTrader_Ben
    replied
    Hello,


    BarColor changes the price bar colors. This link will help:


    Study the PercentB2 indicator found in the link below to see how a histogram color change is done:


    You have to Add() the plot types then use if and else's to change the colors. This link will help with Add():

    Leave a comment:


  • dj22522
    replied
    Originally posted by NinjaTrader_Ben View Post
    Hello,


    If you post some code I can help you with specific questions/issues.
    Thank you for the offer of assistance.
    I'm out of my depth here, I really don't know where to start.

    If I could know what part of the original code is specific to the histogram then I am supposing I could add the Bar.Color code there ?

    Or perhaps it's far more involved than that ?

    thx

    Leave a comment:


  • NinjaTrader_Ben
    replied
    Hello,


    If you post some code I can help you with specific questions/issues.

    Leave a comment:


  • dj22522
    replied
    Originally posted by roonius View Post
    Yes it's possible... Feel free to play with code
    Hi, thanks for quick reply.
    I've tried, but I'm not getting anywhere.
    I'm not at all capable with ninja code.

    Even when I type anything in the script and then delete it so that it as original I get an error for line 13
    "The namespace'<glabal namespace>' already contains a definition for SqueezeStyle"

    Any help would be much appreciated

    thx
    Last edited by dj22522; 01-17-2009, 02:10 PM.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by kinfxhk, 07-14-2026, 09:39 AM
0 responses
134 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by kinfxhk, 07-13-2026, 10:18 AM
0 responses
106 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by kinfxhk, 07-13-2026, 09:50 AM
0 responses
89 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by kinfxhk, 07-13-2026, 07:21 AM
0 responses
110 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by kinfxhk, 07-11-2026, 02:11 AM
0 responses
88 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Working...
X