I have the indicators and was wondering if you have a template for the chart settings [bar colour changes] that you wouldn't mind sharing? I'm not much of a coder unfortunately
Hello @TheGascogne as you may see you were given a "notification" (upper left hand portion of page-by your username) because I used the "@" sign preceding your username.(no spaces) This will give others the same notification, that you are referencing(such as @WolfieWolf) otherwise could be some time before that member if ever comes across a reference related to them.
Sorry for intruding just thought you might like to know.
The following user says Thank You to learning0101 for this post:
Thanks @learning0101, You're right, I wasn't aware of this question until you referenced my username. @TheGascogne, I would be happy to share my code... I'm not currently using it so give me a couple of days to dig it up.
Right, so this is the first time I've ever shared code with the general public. I never have and never will claim to be a developer although I have learned a few things and it seems that I spend more time these days writing code than anything else. I made the changes to the HeikenAshi code a long time ago and I am aware of a number of things I could have done better, but in the interest of getting this out the door I am electing to not fix it up right now. It works as expected but there are a few things, internally, that I could have done that would be better coding practice.
This is a modified version of FatTails HeikenAshiV4 which is available from the futures.io (formerly BMT) download section. You will need to have the fat tails version installed in order for this to work as I'm only providing the .cs file here, not the moving averages etc. The main change here is that the bars will paint based on HA values but they will also take into consideration the state of a PLADynamicalGold as either rising or falling. As an important note this is coded to use PLADynamicalGold.. if you have Silver or Bronze or whatever else Roger offers you will have to change every reference to this inside the indicator code. If the HA is down but the PLA is up you'll get Salmon coloured bars, if the HA is up but the PLA is down you'll get light green coloured bars... The intention here was to attempt to identify a pullback from a reversal. I don't use this indicator anymore as I have discovered more sophisticated ways of doing this. If the HA and PLA agree you get the usual colours. All the colours are configurable as parameters from the indicator properties as are the properties for the PLA itself for Anti-Reverse, AntiReversePeriod, PLA Length, Speed and Overshoot.
One last thing to mention. Playing around with this indicator at some point I swapped out the smoothing type ZLEMA for the PLA itself. So if you do use smoothing (which I can't imagine why anyone would because it's desperately lagging) ZLEMA will actually produce smoothed HA candles based on the configured values for the PLA properties.
I don't actually have a lot of time at the moment as I'm working on another interesting Ninja development project so if you want code changes feel free to ask and I will get around to it when I can, but just to set expectations, it won't be quickly. Having said that I have benefited greatly from the community here and I share Mike's vision of paying it forward Karma so I am eager to do so.
To use this copy it to your /custom/indicators folder, load it up in your editor... or any indicator for that matter as ninja compiles everything, and hit compile. If you don't get any errors you should find it in your indicator list as WolfieHeikenAshiPLA.
Let me know what you think.
The following 6 users say Thank You to WolfieWolf for this post:
thanks for the indicator. I tried to compile it and it gives two references as missing - is there an updated version of the indicator? (I am a novice as for fixing the indicators) so looking for the easy solution first.