• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 4:13am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 4:13am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Bollinger Squeeze Alert (ps for the coders) 2 replies

Bollinger Band deviation strategy Part I 12 replies

Bollinger Band Squeeze 55 replies

Bollinger Bands Strategy 23 replies

Bollinger squeeze code 0 replies

  • Trading Systems
  • /
  • Reply to Thread
  • Subscribe
  • 42
Attachments: The Bollinger Squeeze (TBS) Strategy
Exit Attachments
Tags: The Bollinger Squeeze (TBS) Strategy
Cancel

The Bollinger Squeeze (TBS) Strategy

  • Last Post
  •  
  • 1 234Page 56 7
  • 1 4Page 56 7
  •  
  • Post #81
  • Quote
  • Oct 24, 2017 8:59am Oct 24, 2017 8:59am
  •  martyr13
  • | Joined Oct 2017 | Status: Member | 18 Posts
Thank u makemo8... This system has a very good win ratio... Most of the trades are successfull... And if you avoid trading during big news, you get better results...
 
 
  • Post #82
  • Quote
  • Oct 24, 2017 12:00pm Oct 24, 2017 12:00pm
  •  reteid2222
  • Joined Aug 2015 | Status: Member | 2,507 Posts
Quoting makemo8
Disliked
{quote} Pair: USDCHF Timeframe: Daily {image}
Ignored
corrected...took BB Close instead of low or high....no taking crossover if BB was touched with high/low the last 5 candles!
Attached File(s)
File Type: ex4 MakeMo8 - TBS V1.01 - Simple Arrow+AlertV2.71.ex4   35 KB | 1,255 downloads
Vucking good EA coder...
 
1
  • Post #83
  • Quote
  • Oct 24, 2017 12:02pm Oct 24, 2017 12:02pm
  •  makemo8
  • Joined Nov 2007 | Status: Member | 40 Posts
Quoting jgadefelth
Disliked
{quote} Yes iwas most intrested of how you set up the buys and sells and tp you described in that post. How trades like that looks like. You say not many of those baskets become losers. I was hoping you could describe more about this please. Thank You. Best regards
Ignored
I have shown how the orders will work in the screenshot.
You get a signal:
1. Open pending Limit and Stop orders 10 pips apart (it does not matter how many, this is just the initial orders to cover price movement. If price moves past these initial orders, you will continue to create more orders to cover price movement).
2. Set TP = 50 pips for each order.
3. When a position is closed due to TP, open another pending order to replace it. Same price as original
3. Some positions would have reached TP and some may not. But the entire basket of open positions and pending orders should be closed at the Middle Bollinger band.

For the SELL example in the screenshot, the price went against us initially and pick up the pending stop orders and later price continues in the anticipated direction. We close all at middle BB for good profit.

For the BUY signal, the same rules above apply. The BUY signal in the screenshot shows price moves in our direction almost instantly..
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot1.png
Size: 622 KB
 
 
  • Post #84
  • Quote
  • Oct 24, 2017 12:14pm Oct 24, 2017 12:14pm
  •  makemo8
  • Joined Nov 2007 | Status: Member | 40 Posts
Quoting reteid2222
Disliked
{quote} corrected...took BB Close instead of low or high....no taking crossover if BB was touched with high/low the last 5 candles! {file}
Ignored
Great job reteid2222. It looks very good. The signals are showing where they were not in the previous version. If I come accross anything that needs attention, I will let you know.

I just posted the way this strategy could be traded (post 83). You could take a look at it and see if you understand the logic or need more clarifications.
 
 
  • Post #85
  • Quote
  • Oct 24, 2017 12:20pm Oct 24, 2017 12:20pm
  •  jgadefelth
  • | Joined Jan 2008 | Status: Trillion Dollar Man | 1,494 Posts
Quoting makemo8
Disliked
{quote} I have shown how the orders will work in the screenshot. You get a signal: 1. Open pending Limit and Stop orders 10 pips apart (it does not matter how many, this is just the initial orders to cover price movement. If price moves past these initial orders, you will continue to create more orders to cover price movement). 2. Set TP = 50 pips for each order. 3. When a position is closed due to TP, open another pending order to replace it. Same price as original 3. Some positions would have reached TP and some may not. But the entire basket...
Ignored

Yes and it must go in drawdown maybe big if we get sufddenly in to a strong trend ?

Best regards
 
 
  • Post #86
  • Quote
  • Oct 24, 2017 12:43pm Oct 24, 2017 12:43pm
  •  makemo8
  • Joined Nov 2007 | Status: Member | 40 Posts
Quoting jgadefelth
Disliked
{quote} Yes and it must go in drawdown maybe big if we get sufddenly in to a strong trend ? Best regards
Ignored
That is very much possible with a prolong trend after a signal. You could look at the signals on any timeframes and you will see that we don't have those prolong trends often. I use daily timeframe.

To mitigate this a little, you can adjust the distance between the orders (default was 10, you could say 20 or even more). This will reduce the number of positions open and could reduce drawdown, it will reduce the amount of pips you will gain as well. But you can weigh the risk/reward.
 
 
  • Post #87
  • Quote
  • Oct 24, 2017 1:16pm Oct 24, 2017 1:16pm
  •  TPHoch
  • | Joined Oct 2017 | Status: Junior Member | 1 Post
I am new to this site. Not sure if this will work? Saw your TBS strategy and it looks interesting and I will try it out. You said you will send info to email address here is mine.{ email address deleted by staff }
 
 
  • Post #88
  • Quote
  • Oct 24, 2017 1:32pm Oct 24, 2017 1:32pm
  •  JayDavis
  • Joined Nov 2013 | Status: Member | 140 Posts
Ok, I guess it is time for me to stop tinkering with the expert advisor that I made to trade this strategy. I'm not happy with the way that it trades, maybe there is something that I missed about this strategy, please take a look at your leisure.

Inserted Code
//+------------------------------------------------------------------+
//|                                          TheBollingerSqueeze.mq4 |
//|                                                        Jay Davis |
//|                            https://www.mql5.com/en/users/johnthe |
//+------------------------------------------------------------------+
#property copyright "Jay Davis"
#property link      "https://www.mql5.com/en/users/johnthe"
#property version   "1.00"
#property strict
//---
sinput string The_Bollinger_Band_Squeeze_Settings;
input ENUM_TIMEFRAMES timeframe=PERIOD_CURRENT; // Timeframe for Bollinger Band Squeeze
input double BollingerSqueezePercentage=0.20; // Squeeze must be less than this % of Max
input int BarsInSqueezeTest=100; // Bars in squeeze test
//---
sinput string Stochastic_Settings;
input int  king= 9; // K-value
input int  dog = 3; // D-value
input int slowing=3;// Slowing
input ENUM_MA_METHOD maMethod=MODE_SMA;// Moving average method
input ENUM_STO_PRICE pricefield=STO_LOWHIGH;
enum STO_MODE{main,signal};
input STO_MODE STO_Mode=signal;
input int STO_Shift=1;
//---
sinput string Bollinger_Band_Settings;
input int BBPeriods=20;//Averaging period to calculate the main line
input int BBDeviation=2;//Number of standard deviations from the main line
input int BBBandsShift=0;//The indicator shift relative to the chart
input ENUM_APPLIED_PRICE BBAppPrice=PRICE_CLOSE;//Applied price
enum BB_MODE{bbmain,upper,lower};
input int BBShift=1;
//---
sinput string Trade_Settings;
input int BarsInSwingTest=10; // Bars in swing high/low test
input int PipBuffer=10; // Points of buffer for stoploss
input double LotSize=0.01; // Size of lot for orders
//--- Global variables
datetime NewTime=0;
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   if(NewTime!=Time[0]) // Run only on new bars
     {
      NewTime=Time[0];
      // Gather decision material
      bool
      stochasticCrossedOverBought=false,stochasticCrossedOverSold=false,
      touchedLowerBB=false,touchedUpperBB=false,
      range=TheBollingerBandSqueeze(BollingerSqueezePercentage);
      // Stochastic cross
      double stochastic=iStochastic(NULL,timeframe,king,dog,slowing,maMethod,pricefield,STO_Mode,STO_Shift);
      double previousStochastic=iStochastic(NULL,timeframe,king,dog,slowing,maMethod,pricefield,STO_Mode,STO_Shift+1);
      if(previousStochastic>80 && stochastic<80) stochasticCrossedOverBought=true;
      if(previousStochastic<20  &&  stochastic>20) stochasticCrossedOverSold=true;
      // Bollinger Band cross
      double
      middleBB= iBands(_Symbol,timeframe,BBPeriods,BBDeviation,BBBandsShift,BBAppPrice,bbmain,BBShift),
      upperBB = iBands(_Symbol,timeframe,BBPeriods,BBDeviation,BBBandsShift,BBAppPrice,upper,BBShift),
      lowerBB=iBands(_Symbol,timeframe,BBPeriods,BBDeviation,BBBandsShift,BBAppPrice,lower,BBShift);
      if(iHigh(NULL,0,1) > upperBB && iLow(NULL,0,1) < upperBB) touchedUpperBB = true;
      if(iHigh(NULL,0,1) > lowerBB && iLow(NULL,0,1) < lowerBB) touchedLowerBB = true;
      // stoploss and take profit calculations
      double
      takeprofit=middleBB, // Take profit at the middle Bollinger Band
      highestHigh=iHigh(NULL,PERIOD_CURRENT,iHighest(NULL,PERIOD_CURRENT,MODE_HIGH,BarsInSwingTest,1)),
      lowestLow=iLow(NULL,PERIOD_CURRENT,iLowest(NULL,PERIOD_CURRENT,MODE_LOW,BarsInSwingTest,1));
      // lotsize calculations
      double Lots=LotSize;
      // Trading
      int ticket=0;
      bool orderSelected = false;
      bool orderModified = false;
      if(stochasticCrossedOverSold // Stochastic crosses from above oversold to below
         && touchedLowerBB // If price touches the lower Bollinger Band during last bar
         && range // If bandwidth is less than the percentage of max bandwith in squeeze test
         && middleBB-iClose(_Symbol,timeframe,1)>(20*Point)) // If price close is less than the middle Bollinger Band
        {
         // Place buy order
         double stoploss=lowestLow -(PipBuffer*Point); // Stoploss is lowest low in x periods - pips buffer
         ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,NULL,0,0,Blue);
         if(ticket>0) orderSelected=OrderSelect(ticket,SELECT_BY_TICKET);
         orderModified=OrderModify(OrderTicket(),OrderOpenPrice(),stoploss,takeprofit,0,clrGreen);
        }
      if(stochasticCrossedOverBought // Stochastic crosses from above overbrought to below
         && touchedUpperBB // If price touches the upper Bollinger Band during last bar
         && range // If bandwidth is less than the percentage of max bandwith in squeeze test
         && iClose(_Symbol,timeframe,1)-middleBB>(20*Point)) // If price close is more than the middle Bollinger Band
        {
         // Place sell order
         double stoploss=highestHigh+(PipBuffer*Point);// Stoploss is highest high in x periods + pips buffer
         ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,0,NULL,0,0,Blue);
         if(ticket>0) orderSelected=OrderSelect(ticket,SELECT_BY_TICKET);
         orderModified=OrderModify(OrderTicket(),OrderOpenPrice(),stoploss,takeprofit,0,clrBlue);
        }
     }
  }
//+------------------------------------------------------------------+
//| Bollinger Band Squeeze determination                             |
//+------------------------------------------------------------------+
bool TheBollingerBandSqueeze(double thresholdPercentage)
  {
   double currentBandWidth=0.0;
   currentBandWidth=(iBands(_Symbol,timeframe,BBPeriods,BBDeviation,BBBandsShift,BBAppPrice,upper,BBShift)
                     -iBands(_Symbol,timeframe,BBPeriods,BBDeviation,BBBandsShift,BBAppPrice,lower,BBShift));
   double widestBandWidth=0.0;
   for(int i=1; i<=BarsInSqueezeTest; i++)
     {
      // find the widest bandwidth
      double
      bandWidth,
      upperBBS = iBands(_Symbol,timeframe,BBPeriods,BBDeviation,BBBandsShift,BBAppPrice,upper,i),
      lowerBBS = iBands(_Symbol,timeframe,BBPeriods,BBDeviation,BBBandsShift,BBAppPrice,lower,i);
      bandWidth=upperBBS-lowerBBS;
      if(bandWidth>widestBandWidth) widestBandWidth=bandWidth;
     }
   if(currentBandWidth < (widestBandWidth * thresholdPercentage))return true;
   return false;
  }
//+------------------------------------------------------------------+
Attached File(s)
File Type: mq4 TheBollingerSqueeze.mq4   7 KB | 896 downloads
File Type: ex4 TheBollingerSqueeze.ex4   19 KB | 592 downloads
Buy, Sell, plus this other thing equals Profit!
 
1
  • Post #89
  • Quote
  • Oct 24, 2017 2:15pm Oct 24, 2017 2:15pm
  •  makemo8
  • Joined Nov 2007 | Status: Member | 40 Posts
Quoting TPHoch
Disliked
I am new to this site. Not sure if this will work? Saw your TBS strategy and it looks interesting and I will try it out. You said you will send info to email address here is mine.{ email address deleted by staff }
Ignored
You can reach me through my YouTube channel below where this strategy and others are described in full detail. There you will be able to provide your email address. The template and indicator will be sent to you.

Inserted Video
 
 
  • Post #90
  • Quote
  • Oct 24, 2017 2:27pm Oct 24, 2017 2:27pm
  •  makemo8
  • Joined Nov 2007 | Status: Member | 40 Posts
Quoting JayDavis
Disliked
Ok, I guess it is time for me to stop tinkering with the expert advisor that I made to trade this strategy. I'm not happy with the way that it trades, maybe there is something that I missed about this strategy, please take a look at your leisure. //+------------------------------------------------------------------+ //| TheBollingerSqueeze.mq4 | //| Jay Davis | //| https://www.mql5.com/en/users/johnthe | //+------------------------------------------------------------------+ #property copyright "Jay Davis" #property link "https://www.mql5.com/en/users/johnthe"...
Ignored

Is it possible to run backtest with this EA? I seems not to get any trades during a backtest.
 
 
  • Post #91
  • Quote
  • Oct 24, 2017 2:30pm Oct 24, 2017 2:30pm
  •  JayDavis
  • Joined Nov 2013 | Status: Member | 140 Posts
Yes, you can run a backtest, but those specific conditions that you require do not seem to come up all that often.
Buy, Sell, plus this other thing equals Profit!
 
 
  • Post #92
  • Quote
  • Oct 24, 2017 2:31pm Oct 24, 2017 2:31pm
  •  JayDavis
  • Joined Nov 2013 | Status: Member | 140 Posts
If you have an instance where a trade should have happened let me know the settings and I can run a backtest and see if the expert would have taken that trade. It may need to be adjusted somewhat.
Buy, Sell, plus this other thing equals Profit!
 
 
  • Post #93
  • Quote
  • Oct 24, 2017 2:40pm Oct 24, 2017 2:40pm
  •  JayDavis
  • Joined Nov 2013 | Status: Member | 140 Posts
Let me explain that some more. If you have a valid instance where you have taken this trade in the past let me know the date, timeframe, and currency pair and I can backtest the expert over that same time and see if it would have taken the trade. There is one small modification from your strategy that the expert abides by, if it is looking at a buy trade it checks to make sure that the price closes below the middle Bollinger Band by two pips. I found that there were some instances where the trade would be initiated but it was already past the middle Bollinger Band, so the take profit would have placed the trade in the negative. I placed that check there to disallow those types of trades.
Buy, Sell, plus this other thing equals Profit!
 
 
  • Post #94
  • Quote
  • Oct 24, 2017 2:47pm Oct 24, 2017 2:47pm
  •  Smek
  • | Joined Aug 2017 | Status: Member | 7 Posts
Hi!

I rly do like this system so firstly thanks for your awesome job Makemo8! Ive tried to come up with a way of filtering out bad trades and I have found out that you could filter out possibly trades with several time frames. In my example I did get a valid sell signal on H4 but to confirm this I did change the time frame ti H1 and voilla! As you can se stoch is oversold so in this case the H4 Entry would have been a bad trade. I also would not take a trade if the lower BB band would have been touched on H1. This ofc depends on what your SL is and this filtering will not always work but when I did scroll thru the charts this seem to work pretty well.

The left pic is H4 and the right one is H1
Attached Images
 
 
  • Post #95
  • Quote
  • Oct 24, 2017 3:25pm Oct 24, 2017 3:25pm
  •  littlebunny
  • | Joined Aug 2007 | Status: Member | 109 Posts
Great video; thanks.
My favorite crochet hook is size J. It's a J-Hook!
 
 
  • Post #96
  • Quote
  • Oct 27, 2017 5:26am Oct 27, 2017 5:26am
  •  IAmRetep
  • | Joined Oct 2014 | Status: Member | 54 Posts
Hi,
This an EA which allows Backtests. Please load EA "BandSqueezeSto" and indicators "WelchBBWidth" and Stochastic. If not available download the TBS Strategy.zip folder.
I tested EURUSD and USDCHF from 2017.01.03 to 2017.10.26 , H4 seems to be the most performant timeframe.
Have fun! Use it only with demo accounts, of course :-)

Peter
Attached File(s)
File Type: zip TBS Strategy.zip   108 KB | 985 downloads
 
2
  • Post #97
  • Quote
  • Oct 28, 2017 3:43am Oct 28, 2017 3:43am
  •  JohnLancs
  • | Joined May 2016 | Status: Member | 8 Posts
Hi Everyone,

I've been following this thread closely as this looks like a very promising strategy - early results have been positive.

Thanks to makemo8 for the strategy and very helpful video and to reteid222 for the indicator which is saving me time already. I will also do some becktesting of IAMRetep's EA and get back with some results.

One thing I have noticed is that it is possible to jump up timeframes quite often for more profit as follows:

- take trade on 1h TF and bank profits at middle band, half trade left is for free (hooray!)
- if trade keeps moving in right direction, keep an eye on 4h TF to see if a signal is generated and if so set bigger profit target
- same again on Daily etc.

Every so often you will catch a massive move for very little risk and quite often take a small profit even if it doesn't pan out.
 
 
  • Post #98
  • Quote
  • Nov 1, 2017 8:56pm Nov 1, 2017 8:56pm
  •  Kmb
  • | Joined Oct 2017 | Status: Member | 16 Posts
Quoting IAmRetep
Disliked
Hi, This an EA which allows Backtests. Please load EA "BandSqueezeSto" and indicators "WelchBBWidth" and Stochastic. If not available download the TBS Strategy.zip folder. I tested EURUSD and USDCHF from 2017.01.03 to 2017.10.26 , H4 seems to be the most performant timeframe. Have fun! Use it only with demo accounts, of course :-) Peter {file}
Ignored
Why you have 3 colors in Squeeze Band, if I may ?
 
 
  • Post #99
  • Quote
  • Nov 2, 2017 7:57am Nov 2, 2017 7:57am
  •  JohnLancs
  • | Joined May 2016 | Status: Member | 8 Posts
Quoting IAmRetep
Disliked
Hi, This an EA which allows Backtests. Please load EA "BandSqueezeSto" and indicators "WelchBBWidth" and Stochastic. If not available download the TBS Strategy.zip folder. I tested EURUSD and USDCHF from 2017.01.03 to 2017.10.26 , H4 seems to be the most performant timeframe. Have fun! Use it only with demo accounts, of course :-) Peter {file}
Ignored
Hi Peter,

I am forward testing this now on 28 pairs and some indices with good results so far, though obviously it is very early days. Can you explain a bit more about about how the SL works? I have SL set to zero and was worried this would just let losses run but some trades have been closed at a loss so there is clearly some process running to close trades which get into trouble.

John
 
 
  • Post #100
  • Quote
  • Nov 2, 2017 10:51am Nov 2, 2017 10:51am
  •  lctrader11
  • | Joined Mar 2016 | Status: Member | 297 Posts
Curious about the EA reteid2222 was going to build. Is the EA that is being discussed right now one & the same, or is it different?
I haven't seen her on this thread recently.
 
 
  • Trading Systems
  • /
  • The Bollinger Squeeze (TBS) Strategy
  • Reply to Thread
    • 1 234Page 56 7
    • 1 4Page 56 7
1 member viewing:
nagylaciapi
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023