Page 1 of 2
A days worth of coding
Posted: Sat Oct 31, 2009 7:42 am
1st rule : to paraphrase an old joke - dont code and trade: you might slip and spill your beer.
Apart from the spanking i took on E/J while not watching properly (my bad- no stop and 70 or 80 pips of brutal one-way movement in about 15 minutes, from which it never returned), I knocked up a couple of indis, both of which are visible in the piccy:
note the buzzard indi on the right which only appears in the right circumstances, and the 'picture in picture' bars which are M15 bars on an H1 chart. With a bit of playing round I think I can get it to show semas and stuff so I dont have to switch timeframes. and I could also pretty it up some, i suppose
next to work on a popup rat indi including a pic-in-pic popup of the relevant chart....
btw, I couldnt seem to find a more appropriate place to post this on kreslik.
Posted: Sat Oct 31, 2009 10:24 am
bredin,please can you share these new indicators with us!? Thanks.
Posted: Sat Oct 31, 2009 3:26 pm
Posted: Sun Nov 01, 2009 12:24 am
This is the buzzard indi.
The two messages are "THE BUZZARDS ARE CIRCLING" which is a 'heads up' for the NEXT candle, and
"GO LONG ON GREEN CANDLE" / "GO SHORT ON RED CANDLE" which should be self explanatory to those who know how to make a buzzard trade.
If you dont know how to make this trade go read the NEVER LOSE AGAIN thread.
This indi uses a font for the buzzard image, which is included in the zip.
If nothing appears when you attach the indi to a chart it is because there is no buzzard trade or setup occuring on the chart.
NB. some things may or may not work fully, please let me know if (when) something breaks.
Posted: Sun Nov 01, 2009 1:01 am
This is the Picture in Picture indi, which is based on code from the mql4 codebase, and modified to show a user defined number of bars in a user defined amount of space. I think because of this it does some strange things when loaded as part of a template, if that happens make sure the chart is at its most current place and load the template again.
This indi is also NOT FULLY IMPLEMENTED at this time as I have a bunch of stuff i want to do to pretty it up.
Due to the way the candles are drawn, they will look very ugly at many zoom levels.
The PIP chart will need to be located so that it does not overlap the actual chart, you'll see why and is a limitation of mql4 (also a reason it doesnt look like my other indis, with a nice box and dropshadows and stuff). Also horizontal line indis will draw right through the PIP and may cause confusion (SweetSpotGold eg).
Oh how I wish mql4 had better object layer implementation....
Now to the inputs, most should be obvoius:
SubSymbol if use.chart.pair is false use this to show a different pair on this chart.
pos.lo - lowest position of the PIP in percent up from the bottom of the chart
pos.hi - height of the PIP in percent of chart.
head.depth - height of the title bar in percent of the chart
draw.first.bar - where to start drawing the PIP from in bars on the chart
bar.limit - how many PIP bars to display
Posted: Tue Nov 03, 2009 1:30 am
Quick Note: the buzzard indi just helped me grab 20 pips in 5 minutes (e/j) for a happy melbourne cup day bonus! thats half of todays target, and a modified tickchart indi helped tell me when to get out! 20 minutes later and the price is still above my exit!
i just noticed how broken the PIP indi is... might try to fix that later
Posted: Tue Nov 03, 2009 6:03 am
Grabbed another 11 on e/j and 8 on g/j, didnt have the patients (or will to sit through the drawdown I knew was coming) to wait 40 minutes for more profit that eventually appeared.
I realize now that I just dont care about 'lost profits' anymore, another good trade is right around the corner, and in any case Ive hit my daily goal of 40 pips, and hence a 10% profit for the day.
All this in the Asain session, too the euro session doesnt start for another hour.
I'll say here publicly thanks TRO, MightyOne, Dragon, along with many others who have unknowingly contributed, and will continue to do so as my charts get cleaner, simpler and more profitable.
Posted: Tue Nov 03, 2009 11:29 am
Missed a 15ish pip buzzard (I obviously forgot rule one) while I updated the II_PIP indi and threw up this template:
Its beginning to look less and less like MT4...
II_PIP now replicates SweetSpot, and can be toggled.
there is a toggle to display ask price, not yet implemented so thats not actually bug
attached is the template with relevant indicators.
not included is the font.
Posted: Tue Nov 03, 2009 12:40 pm
Remember to KEEP IT SIMPLE, when trading.
Posted: Thu Nov 05, 2009 10:39 am
Thanks TRO, i'm now working on simplifying my trading style and unsurprisingly becoming more profitable at the same time.
After tuesdays great (for me) 10% for the day, wed was a slight smacking for a buzzard that refused to materialize, and my stubborn refusal to get out when I knew it just wasnt happening for me, and just trade the psycholines as the price ran...
Today, better with +7% on two psycho trades in about 6 minutes. with that I remembered rule one, STOPPED TRADING and done some code.
With that II_PIP v 102 is out
edit: the 'oddness' in the image is due to tinypic, not the indi.
theres some new inputs and enhancements, most are visible on the image.