Its only once you start using hotkeys and the keyboard you realise just how slow mouse clicking is.
Clearly your skill level is way beyond mine Richard but even if I make my own plot I still don't see how I can re write historical bars - sorry if it's simple but I just don't see it?
Are you referring to iterating through every bar on the chart each time I press the hotkey perhaps?
The following user says Thank You to Mindset for this post:
When you make a custom plot() method, you paint the chart when asked to do so by ninja. So... you can just not paint anything if you don't want to. So, it's as simple as doing nothing. Look at indicators that have custom plot() for examples of how to do it, but beware it will be confusing if you don't have any windows.forms experience.
Ah, you're right. If he doesn't want to do anything unusual except not plot, then he can just let ninja take care of the rest. Now why didn't I think of that? I think my brain is hard-wired to equate custom plot() with pain.
This doesn't seem very elegant - but then it gets the job done with the minimum of fuss.
I have only tidied the code up a little and there are 'other' working bits in it but hopefully it will be useful to some.
If somebody more capable than me can make it better please feel free.
It doesn't feel good enough to include as an indicator download but maybe one of the moderators could comment on that?
You can turn the Moving average plot 'On' or 'Off' via toolbar button or keycode (Shift + H)
NB NT7 version only.
The following 5 users say Thank You to Mindset for this post:
Still not entirely convinced by this indicator... but still this is an updated version - just some colour choices and a few minor code changes.
I find every now and again if you click the ema off and then add it say 20 bars later it doesn't update... if you keep the indicator as Calculate on Bar Close this doesn't seem to happen.
This should work in both 6.5 and 7 but I have NOT tested it on 6.5.
The following 2 users say Thank You to Mindset for this post: