Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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?
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.
Ok here is a start anyway.
Life is just too short to spend too much time on such basic stuff.
This will turn the EMA indicator on/off using Shift+H(ide) or V(isible).
BUT It reloads Ninja Script so has very limited value but you know I am not a programmer.....
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)
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.