• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:42pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:42pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Bollinger Band & Stochastic 25 replies

MT4 Breakout Alert Bollinger Band & Donchian Channel indi? 0 replies

Trade the Bollinger Band 2 replies

rsi & bollinger band alert indicator 0 replies

ema bollinger band alerts 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 14
Attachments: Bollinger Band trade tools - Trade Manager & Dashboard
Exit Attachments
Tags: Bollinger Band trade tools - Trade Manager & Dashboard
Cancel

Bollinger Band trade tools - Trade Manager & Dashboard

  • Last Post
  •  
  • Page 1 2
  • Page 1 2
  •  
  • Post #1
  • Quote
  • First Post: Edited 11:11pm Oct 11, 2010 9:47am | Edited 11:11pm
  •  kennyhubbard
  • Joined Sep 2008 | Status: Member | 354 Posts
Hi guys,

I have been developing some tools at the indo forum. This was started in response to a request by Benny, so please pop over there and follow his trade journal if interested, and also to thank him for his great idea.

The first tool is the Trade Manager which does several things. It started as a simple partial close at the middle of the bollinger band(BB) and then sets TP to the opposite band.

I have included many extras in the funtionality and I can't go through them in depth. Please visit the thread at indo-investasi(just search under my username kennyhubbard), or post your questions here.

The EA only manages the trade.....it does not make any trades. There are also 2 scripts that work together with the EA that will make trades for you. The EA calculates trade sizes based on SL targets and will tell the script what tradesize to use in order to keep any losses within the size defined by the risk setting in the EA.

The second tool is a dashboard that allows you to monitor several currency pairs across several timeframes(customisable). It will show you when the price action(PA) breaches the 2 deviation BB as well as the PA relative to 2 moving averages(for trend determination) and also when stochastics are oversold or overbought.

Herewith a summary of the inputs and installation instructions as posted at indo.

The package consists of 5 files. In the order of the links below we have :-

Bol_TP_Dashboard_v3.mq4.............this is an indicator and goes in your expert/indicators folder.
Bol_TP_v4_Enhanced.mq4.............this is the main EA. I assume you know where this goes.
Bol_TP_Include.mqh......................this file goes in your "experts/include" folder.
Bol_TP_BUY.mq4 & Bol_TP_SELL.mq4.....these go in your "experts/scripts" folder.

The settings are as follows:-

Use_MagicNo.....if set to true, EA will generate its own unique 8 digit Magic Number for use with the script. If set to false, Magic Number that will be used is the Personal Magic number set on the next input. Use 0 if you wish to trade manually without the scrippts.
Personal_Magic....if for some reason the auto magic number is not unique enough for you, you can add from 0 to 100 to the generated magic number.
Set_SL.............enables/disables the automatic stoploss entry
SL_Buffer.........the buffer between previous bars high/low for stoploss. Set to -1 to use auto buffer determination.
SL_Bars...........number of previous bars to use for stoploss entry. Includes the current bar.
Use_Move_BE......Enable/disable move to break even;
BE_Pips.........Move SL to break even when the profit is BE_Pips. Leave at zero to use the auto BE_Pips which equals the SL_Buffer.
Use_WCA_MBE...........in the event of multiple trades on the same pair/TF, the EA can calculate the weighted cost average of your entry. Using the WCA_MBE(weighted cost entry move to break-even), the EA uses the same SL for all trades, calculated so that the sum of the profit/loss amounts to zero ie break even, rather than letting each trade reach its own independant BE point(still an option if you prefer to use that).
Offside_Close............you may recall we discussed the issue of what happens when a trade is negative and the middle MA line crosses your entry price? Well now you can elect to have the EA ignore the middle band if this presents itself, or you can still have it close half the trade(my own preference) in a sort of partial stoploss. If set to true, the half the trade will close.
Deinit_Alert..............I tend to do stupid things sometimes. Setting this to true will pop up a warning if you change the chart(pair or TF) that is currently managing a trade. It just warns you that there is a trade in progress.
Show_Comment.......if you want to hide the info in the top right corner, you can disable the display with this setting.

------------------------
TP_Use_Timer...updates the TP2 at predetermined intervals rather than every tick. EA updates each new bar by default. This setting overides new bar and sets the TP more often.
TP_Update........number of seconds interval when changing TP2
Use_TP2_Close....use market order to close at TP2 instead of server side stop. This overides all other TP2 methods.
Show_TP_Line.....enables or disables the visual TP1 line
TP_Color.............the color of the mid band TP line.
---------------------------
Use_Trail...............enables or disbles the trailing stop function
Trail_Percent.........this is the % of profit to trail by ie 50 pips profit = 25 pips trail.
Trail_Max..............stop will trail by the % you set eg 50% until the trail is equal to Trail_Max. Then the EA will trail at this fixed value. Set to -1 to use auto trail max which is the same as your SL_Buffer. Auto buffer is a function of ATR.
Use_Decay.............my little pride and joy. Ever watched the Price action hang within 1 pip of your TP and then reverse. With this option, the trailing stop is tightened as the Price approaches the TP2. The trail is equal to TP - Price, so if you are 5 pips short of TP, your trailing stop will equal 5 pips.
----------------------------
Use_Script..........this enables/disable the EA setting for the scripts. If set to false, you will get an error if you try and use the script. You must make a manual entry if this is set to false.
Risk..................this tells the script how much you want to risk. It is a % of your account balance. If you have it set to 1% and you have a $5000 account, the EA will calculate the trade size is limited to ensure that your loss at full stoploss = $50(1% of your account). So, the further you are from your stoploss at trade entry, the smaller the trade will be.
Fixed_Lots.........you can overide the risk setting and have the EA/script trade fixed lotsizes for you. In this case the EA will calculate and display your loss at full stoploss, as well as the risk level. Leave it at zero to use EA risk setting.....anything more than zero overides the risk setting.
----------------------------
Auto_SL_Ref.............this is a reference to adjust the Auto_SL_Buffer. If you feel that the buffer is too big or too small, use this parameter to adjust.
Mod_Threshold..........this is the EA's own internal stoplevel. Basically you don't want it sending orders to change things by 1 tenth of a pips, so I have set it here by default to only change any order if the modification will be more than half a pip. This can also be used as a jumping stop by entering a bigger number like 5 or 10 pips.
----------------------------
The rest of the settings are for the Bollinger bands. They should stay at default unless you have good reason to change them.

Setting up the dashboard

In order to load the currencies that you wish to monitor in the dashboard, there are several steps to take. The currencies are stored by the indicator in a csv file in the experts/files folder and is called xxx_My_DashBoard.csv where xxx represents your broker's name.

There are 2 ways to load the displayed currencies. First is to hide all currencies that you do not wish to display in your marketwatch window. Alternatively, you can simply go to the CSV file and delete the unwanted currencies. Be sure to delete the entire line in the csv file, not just the entry. If you delete the currency but leave a blank line, the dashboard will try and display that blank with unpredictable results.

In order to create the CSV file, run load the indicator onto a blank chart. You will get an alert telling you to modify the CSV file to select your currencies. If you have already sorted out your currencies in the market watch window, then ignore this message, or else go modify the CSV as mentioned.

Then reload the dashboard. Now it should display correctly. The first time you are using it, it will most probably have missing data, so you will see the following indications :-

XX - this means there is no data for that currency & timeframe.
-- This means that there is data but not enough bars.

Be sure to then download the history data.

Please refer to the thread at the indo forum for a more indepth explanation of what the number, arrows and colors mean on the dashboard.

In short, a number with color implies that the 2 dev BB has been pierced with a - being the lower band and absence of a - being the upper band. The arrows indicate the PA relative to 2 moving average with a green arrow meaning PA is above or below both moving average in the direction of the trend(trend is the direction of fast MA relative to slow MA). A red arrow would be countertrend PA and is what you are really interested in since your trade direction would be with-trend. If the arrow has no color it means the stoch is between 20 and 80, so the arrow only gets color when the stoch indicates overbought or oversold.

Have fun, ask questions and please report any bugs.

EDIT : Please note that the scripts cannot be used without the trade manager.
Attached File(s)
File Type: mq4 Bol_TP_Dashboard_v3.mq4   17 KB | 1,979 downloads
File Type: mq4 Bol_TP_v4_Enhanced.mq4   39 KB | 1,635 downloads
File Type: mqh Bol_TP_Include.mqh   6 KB | 1,545 downloads
File Type: mq4 Bol_TP_BUY.mq4   2 KB | 1,507 downloads
File Type: mq4 Bol_TP_SELL.mq4   2 KB | 1,469 downloads
  • Post #2
  • Quote
  • Oct 11, 2010 9:52am Oct 11, 2010 9:52am
  •  kennyhubbard
  • Joined Sep 2008 | Status: Member | 354 Posts
http://img840.imageshack.us/img840/5189/legendi.jpg
 
 
  • Post #3
  • Quote
  • Oct 11, 2010 8:15pm Oct 11, 2010 8:15pm
  •  hayseed
  • Joined Nov 2006 | Status: Member | 3,831 Posts
Quoting kennyhubbard
Disliked
It started as a simple partial close at the middle of the bollinger band.
Ignored
hey kenny.... well done......... funny how what starts out just a simple idea can end up a complex combination.......

once you start it's hard to stop....... ....again....h
to trade and code, keep both simple... no call to impress....h
 
 
  • Post #4
  • Quote
  • Oct 11, 2010 10:35pm Oct 11, 2010 10:35pm
  •  kennyhubbard
  • Joined Sep 2008 | Status: Member | 354 Posts
Hi h,

Yeah, isn't that the truth.....and I got it bad. But it was a really good exercise in learning how to code.

The dashboad is still very much a work in progress. I will add an alarm to it and I am also pondering extending the indication that price action has penetrated the upper or lower BB from the current bar to include the previous bar and maybe further back.
 
 
  • Post #5
  • Quote
  • Oct 12, 2010 11:05am Oct 12, 2010 11:05am
  •  hayseed
  • Joined Nov 2006 | Status: Member | 3,831 Posts
hey kenny.... extending the indication........... yeah, your bit........ and once the dashboard bug bites, well, consider it fatal.....

i'm still searching for a vaccine.....

//---

extending the indication is a big plus..... usually single purpose dashboards can be very informing but equally boring..... as it can take so long for any new signals/info to appear or change.....

to satisfy the boredom you can extend to infinte signals and allow the dashboard to change in a user selectable or timed pace.....

click on the picture below for short example..... the red circle slider at the bottom allows for easy manual change..... also has a adjustable timer similar to slideshow......

it scrolls thru virtually every imaginable indication..... from candlestick patterns, pivot breaks, indicator changes , on and on and on......

//----
//----

oh and btw, welcome to the "dashboard addiction club"..... we meet every tuesday, 9pm..... ......h
Attached Image (click to enlarge)
Click to Enlarge

Name: kenny.gif
Size: 263 KB
to trade and code, keep both simple... no call to impress....h
 
 
  • Post #6
  • Quote
  • Oct 12, 2010 11:12am Oct 12, 2010 11:12am
  •  kennyhubbard
  • Joined Sep 2008 | Status: Member | 354 Posts
h, you're just evil, feeding my addiction like this.......so much more to go ponder now.

Nice work BTW.

So tuesdays for DB_Anonymous......
 
 
  • Post #7
  • Quote
  • Oct 12, 2010 12:41pm Oct 12, 2010 12:41pm
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
Quoting hayseed
Disliked
hey kenny.... extending the indication........... yeah, your bit........ and once the dashboard bug bites, well, consider it fatal.....

i'm still searching for a vaccine.....

//---

extending the indication is a big plus..... usually single purpose dashboards can be very informing but equally boring..... as it can take so long for any new signals/info to appear or change.....

to satisfy the boredom...
Ignored
it's a tetris game, isn't it? correct me if i'm wrong..
 
 
  • Post #8
  • Quote
  • Oct 12, 2010 2:00pm Oct 12, 2010 2:00pm
  •  hayseed
  • Joined Nov 2006 | Status: Member | 3,831 Posts
Quoting sangmane
Disliked
it's a tetris game, isn't it? correct me if i'm wrong..
Ignored
hey sangmane..... nope, no game..... over a hundred dashboards in 1..... when on slide show it slowly cycles thru them all in a speed of your choice.....

once the basic structure is in place, adding another signal/dashboard to the collection is only a few lines of code.....

and actually the stucture is only a few lines itself.......

//---
//---


dashboards are addicting so be carefull..... otherwise we will be saving you a seat at the next weeks meeting...... might save you one anyway, just to be safe......h
to trade and code, keep both simple... no call to impress....h
 
 
  • Post #9
  • Quote
  • Oct 12, 2010 6:09pm Oct 12, 2010 6:09pm
  •  Slack
  • | Joined Aug 2009 | Status: Member | 649 Posts
Quoting hayseed
Disliked
hey kenny.... extending the indication........... yeah, your bit........ and once the dashboard bug bites, well, consider it fatal.....

i'm still searching for a vaccine.....

//---

extending the indication is a big plus..... usually single purpose dashboards can be very informing but equally boring..... as it can take so long for any new signals/info to appear or change.....

to satisfy the boredom you can extend to infinte signals and allow the dashboard to change in a user selectable or timed pace.....

click on the...
Ignored
Thanks for the new screen saver
 
 
  • Post #10
  • Quote
  • Oct 16, 2010 10:04am Oct 16, 2010 10:04am
  •  E2u
  • | Joined Feb 2010 | Status: Member | 211 Posts
Hi Kenny
We are testing Starc Bands on this thread http://www.forexfactory.com/showthread.php?t=259770
I have a question regarding your Dashboard. Is it possible to clone it and put Starc Bands instead of Bollinger Bands ore is it plenty changes. We are interested to see witch works better of them 2 indicators. Ore we know that Starc is better but we want to test it.
Thank you for your work.
 
 
  • Post #11
  • Quote
  • Oct 16, 2010 10:17am Oct 16, 2010 10:17am
  •  kennyhubbard
  • Joined Sep 2008 | Status: Member | 354 Posts
Hi there,

Yup, the starc band are pretty easy to put in place. They are actually nothing more than an ATR indicator superimposed on the price action rather than as a separate indicator.

What are the other rules you look at? The dashboard currently uses stochastics and 2 moving averages for trend determination.
 
 
  • Post #12
  • Quote
  • Oct 16, 2010 11:08am Oct 16, 2010 11:08am
  •  E2u
  • | Joined Feb 2010 | Status: Member | 211 Posts
Quoting kennyhubbard
Disliked
Hi there,

Yup, the starc band are pretty easy to put in place. They are actually nothing more than an ATR indicator superimposed on the price action rather than as a separate indicator.

What are the other rules you look at? The dashboard currently uses stochastics and 2 moving averages for trend determination.
Ignored
Thank you for your answer.
I think we try astral77 idea on http://www.forexfactory.com/showthre...=259770&page=2 post 18
In the first post is BolStarc indicator if you can take a look at it.
I used your Dashboard yesterday with good results.
Maybe the boys on the thread want to test something else but we can start with astral77 idea.
If it has legs I will see it on tests and then we have to find somebody who can make an EA of it.
 
 
  • Post #13
  • Quote
  • Oct 16, 2010 1:19pm Oct 16, 2010 1:19pm
  •  kennyhubbard
  • Joined Sep 2008 | Status: Member | 354 Posts
Hi E2u,

It is easier for me if you just spell out the rules here.....I have been through that post and it is not totally clear to me. He talks about daily RSI but the screenshot contain stochastics.
 
 
  • Post #14
  • Quote
  • Oct 16, 2010 2:04pm Oct 16, 2010 2:04pm
  •  E2u
  • | Joined Feb 2010 | Status: Member | 211 Posts
Quoting kennyhubbard
Disliked
Hi E2u,

It is easier for me if you just spell out the rules here.....I have been through that post and it is not totally clear to me. He talks about daily RSI but the screenshot contain stochastics.
Ignored
Hi
The sell signal is when BB is coming out of Starc Band from upside and buy signal is when BB is coming out of Starc Band at the bottom.
I post a document here and I have selected the important text in yellow.
I shall see if I find any pictures also.
Attached File(s)
File Type: doc Trend Catcher.doc   33 KB | 1,851 downloads
 
 
  • Post #15
  • Quote
  • Oct 16, 2010 2:43pm Oct 16, 2010 2:43pm
  •  kennyhubbard
  • Joined Sep 2008 | Status: Member | 354 Posts
Ok, thanks. I think I got the idea. Gimme a few days.
 
 
  • Post #16
  • Quote
  • Oct 16, 2010 2:53pm Oct 16, 2010 2:53pm
  •  E2u
  • | Joined Feb 2010 | Status: Member | 211 Posts
Here is a picture from the BolStarc-TC_Sig The red line is Starc and the blue BB. When they cross the indi show an arrow for Sell and Buy
Attached Image (click to enlarge)
Click to Enlarge

Name: StBB.jpg
Size: 76 KB
 
 
  • Post #17
  • Quote
  • Oct 16, 2010 3:24pm Oct 16, 2010 3:24pm
  •  E2u
  • | Joined Feb 2010 | Status: Member | 211 Posts
Do you think it can work whit everything like you have it now but change BB for Starc. Maybe stupid question but I don't know how things works. I only know what it looks like.
 
 
  • Post #18
  • Quote
  • Oct 16, 2010 7:32pm Oct 16, 2010 7:32pm
  •  astral77
  • | Joined Nov 2009 | Status: Member | 1,196 Posts
Hi Kenny

E2U asked me to pop in and explain the concept to you, however, I see your brilliant creative mind has already figured it out.

Basically it is a cross of upper or lower BB of the upper or lower Starc band for short or long signal respectively. An RSI filter based on daily RSI to determine the trend would be useful also (or more accurately to ensure we do not buy in overbought or sell in oversold situations).

Ideally the settings of the BB and STARC and RSI should be user selectable option if possible. That is it very straight forward. I have been using the visual backtester on a number of pairs and the results are very encouraging. A dashboard would be fantastic and we are most grateful to you for the consideration you are giving to this. If you need further information please do not hesitate in either posting here or the starc thread or pm me.

Kind regards
 
 
  • Post #19
  • Quote
  • Oct 16, 2010 10:51pm Oct 16, 2010 10:51pm
  •  kennyhubbard
  • Joined Sep 2008 | Status: Member | 354 Posts
Hi E2u,

I imagine, it would work simarlarly to the current dashboard but obviously I will tailor it.

Hi astral, thank for your kind words. Please tell me quick, the current dashboard uses 2 moving averages as a very basic trend determination, does your system require moving averages?

Is the RSI ONLY related to the daily, or should I tie it in with the RSI on each specific timeframe? ie if you looking at a M30 chart, should we not use the M30 RSI, etc, etc......
 
 
  • Post #20
  • Quote
  • Oct 16, 2010 11:26pm Oct 16, 2010 11:26pm
  •  astral77
  • | Joined Nov 2009 | Status: Member | 1,196 Posts
Quoting kennyhubbard
Disliked
Hi E2u,

I imagine, it would work simarlarly to the current dashboard but obviously I will tailor it.

Hi astral, thank for your kind words. Please tell me quick, the current dashboard uses 2 moving averages as a very basic trend determination, does your system require moving averages?

Is the RSI ONLY related to the daily, or should I tie it in with the RSI on each specific timeframe? ie if you looking at a M30 chart, should we not use the M30 RSI, etc, etc......
Ignored
Many thanks for your help Kenny. We do not need Moving averages (only BB, STARC and RSI). On the question of RSI, I prefer to use the daily regardless of the time frame I am trading (which is mainly H4), however, I can understand if some people would prefer the RSI of the TF of their chart. Is it possible to have this user optional? If not then the RSI of the chart I suppose would be fine.

Kind Regards
 
 
  • Platform Tech
  • /
  • Bollinger Band trade tools - Trade Manager & Dashboard
  • Reply to Thread
    • Page 1 2
    • Page 1 2
0 traders viewing now
  • 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