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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      41 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      37 views
      0 likes
      Last Post CarlTrading  
      Working...
      X