Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bb Squeeze

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

    Bb Squeeze

    Here is easy language for an altered version of the BB Squeeze. It seems to work quite well in Trade Station. I thought I would post the easy language here to see if anyone would convert it to C#. thanks, David

    inputs:
    NumATRs (1.5), Length( 20 ), NumDevsUp( 2 ),
    NumDevsDn( -2 ), hlength(9), Displace( 0 ) ;

    variables:
    Avg( 0 ), SDev( 0 ), BLowerBand( 0 ),BUpperBand( 0 ), Shift(0),
    KLowerBand( 0 ), KUpperBand( 0 ), histodiff(0);
    {Bollinger Bands}
    Avg = AverageFC( close, Length ) ;
    SDev = StandardDev( close, Length, 1 ) ;
    BUpperBand = Avg + NumDevsUp * SDev ;
    BLowerBand = Avg + NumDevsDn * SDev ;
    {Keltner Channel}
    Shift = NumATRs * AvgTrueRange( Length ) ;
    KUpperBand = Avg + Shift ;
    KLowerBand = Avg - Shift;

    {squeeze indicator}
    setplotcolor(2,green);
    if bupperband < kupperband {or blowerband < klowerband}
    then setplotcolor(2,red);
    plot2(0,"squeeze");

    {histogram}
    histodiff = averagefc(close - avg,hlength);
    if histodiff > 0 then setplotcolor(3,blue);
    if histodiff > 0 and histodiff < histodiff[1] then setplotcolor(3,darkblue);
    if histodiff < 0 then setplotcolor(3, red);
    if histodiff < 0 and histodiff > histodiff[1] then setplotcolor(3,darkred);

    plot3(histodiff, "Hist");

    #2
    I suggest you search for 'ninjatrader squeeze' at traderslaboratory dot com For various reasons, this is not available on this forum.

    Comment


      #3
      Originally posted by thrunner View Post
      I suggest you search for 'ninjatrader squeeze' at traderslaboratory dot com For various reasons, this is not available on this forum.
      Thanks Thrunner, I found it...

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      571 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      330 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      548 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X