Old stagers, do you remember sixths? Selling in the top sixth of the chart and buying in the bottom? I shall be introducing them toe HGBnD soon.
Attached is a version of the indi I just introduced in the DFC thread - I developed this to create the code for HGBnD.
The attached version calculates the distance between the high and low then divides this by 6 - there is a user input that allows you to play with this divisor. The dotted yellow lines delineate the top and bottom sixths. The idea is to take HGI buy signals only when the market is below the bottom dotted line, and sell only when the market is above the top dotted line. Hedged grid trades will be placed no further than the peak hilo of the next time frame up.
Drag the indi and then HGI onto a few charts. The display looks very promising.
I am just working out the code for some of the detail. We should have an updated version in time for next week.
Hi SteveHopwood
Thanks for updating us users and upgrading the said ver,your efforts and kind considerations appreciated.
regards
Old stagers, do you remember sixths? Selling in the top sixth of the chart and buying in the bottom? I shall be introducing them toe HGBnD soon.
Attached is a version of the indi I just introduced in the DFC thread - I developed this to create the code for HGBnD.
The attached version calculates the distance between the high and low then divides this by 6 - there is a user input that allows you to play with this divisor. The dotted yellow lines delineate the top and bottom sixths. The idea is to take HGI buy signals only when the market is below the bottom dotted line, and sell only when the market is above the top dotted line. Hedged grid trades will be placed no further than the peak hilo of the next time frame up.
Drag the indi and then HGI onto a few charts. The display looks very promising.
I am just working out the code for some of the detail. We should have an updated version in time for next week.
Steve, Thomas
I like the idea.
Would using sixths (buy bottom sixth and sell top sixth) negate HGBnD also from buying and/or selling based on HGI signals in the space between the top and bottom sixth, if the signal was with the trend ?
Would using sixths (buy bottom sixth and sell top sixth) negate HGBnD also from buying and/or selling based on HGI signals in the space between the top and bottom sixth, if the signal was with the trend ?
Thanks
I have discovered this last couple of weeks that the terms 'trend' and 'range' are meaningless. The markets will go where they are destined to go in an unending repetition of the same patterns. Trading in the middle of any chart on any time frame is a recipe for DD.
HGBnD will eventually dig us out of the DD but it could take a long time and only happen when what she does lines up with the market cycles. Better to try to take accurate trades in the first place.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
This one is for the coders. The problem is driving me nuts.
The attached 2j makes the same sixths calculations that the indi in post 1 makes, apart from only concerning itself with the trading time frame. It calculates them fine - you can see that on the chart display. It refuses to draw the trendlines.
Lines:
292+ declare the trend line names.
2922 call the function that draws the trend lines.
5096+ is the void DrawTrendLine(string name, datetime time1, double val1, datetime time2, double val2, color col, int width, int style, bool ray) function. Line 5102 does not generate an error.
Yet the bloody line does not get drawn.
Any ideas?
You do not have the required permissions to view the files attached to this post.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
There are 3 new versions of 2j in post 1. They all contain the latest code improvements by Thomas.
HGBnD: this is the live trading version and you should immediately replace 2i with this version. Trading an earlier version still? You are a moron. The Sixths code is included but the facility is commented out as it is experimental.
HGBnD Experimental 1:
espouses the principle of 'buy low, sell high' - often stated but never before explained properly. CJ and DFC does this perfectly:
identify the highest high and lowest low on the chart.
the market is rising if the lowest low is later than the highest high, so only take buy trades. Only buy from the bottom and do not trade the middle of the chart.
the market is falling if the highest high is later than the lowest low, so only take sell trades. Only sell from the top and do not trade the middle of the chart.
adopts Bob's Sixths principal that we played with a few years ago:
divide the chart into rows of equal sixths:
buy only from the bottom sixth and close towards the middle.
sell only from the top sixth and close towards the middle.
buying low and selling high should be done with the maximum amount of chart space available so:
close all windows on the left of your chart - Navigator, Market Watch etc.
HGBnD zooms your chart out to its maximum zoom. This will bugger up your display if you have HGI on the chart but you can zoom in again if you want to, as soon as the bot has finished its calculations. She recalculates at the start of every TradingTimeFrame candle and does the zooming out automatically.
HGBnD adjusts your right hand margin to its minimum size = 10% of the chart.
draws solid yellow lines to mark the highest and lowest prices the market made. She ignores spikes, so switch to line chart if you want to see why the lines are drawn where they are.
draws a dotted line to show the size of the sixth at the top and bottom of the chart. Do a time frame change if the lines do not appear, but give it a few seconds first - there can be a lot of calculations to make when loaded up.
you can adjust the size of the 'sixths' with the ChartDivisor input. It could turn out that a sixth of the screen is two narrow and that we will need fourths or even thirds. This needs experimenting with.
HGBnD Experimental 2:
the UseSixths input has morphed into UseBuyLowSellHigh
the market is rising if the lowest low is later than the highest high, so only take buy trades. Only buy from the bottom and do not trade the middle of the chart.
the market is falling if the highest high is later than the lowest low, so only take sell trades. Only sell from the top and do not trade the middle of the chart.
controls the zoom etc as does E1 but only draws the solid line - no need for the dotted one.
the TradeLong and TradeShort inputs have vanished. These are controlled by the bot now.
Coders will notice that the code to find the highest hilo of the next time frame up is included but commented out. It is there in case we decide to use it in the future - I can especially see a use for it in E2.
There is no difference in the code in E1 and E2 apart from the change of boolean input name, so finding my changes is easy. Load E1 into the editor and do a Match case (not Match whole word only) search for 'Sixths' to take you to them. Other functions are to be found in the Sixths module starting at line 2849.
Those brave souls who have learned Naked Trading the tough way by ploughing through CJ's thread and those of us who took the lazy way via DFC, will recognise the influence on all this. Thanks CJ and Jeffrey.
Have fun playing.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
SteveHopwood » Fri Feb 10, 2017 4:52 pm wrote:There are 3 new versions of 2j in post 1. They all contain the latest code improvements by Thomas.
...........................
Those brave souls who have learned Naked Trading the tough way by ploughing through CJ's thread and those of us who took the lazy way via DFC, will recognise the influence on all this. Thanks CJ and Jeffrey.
Have fun playing.
Hi Steve
Thanks for upgrading system and well explained updating info.
regards