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)
if you dont wanna go with plots + you are able to modify your indicators, you are also able to modify your strategy !
you can do the main strat in the wizard but you use a dummy that has a plot instead of the dataseries you like to use later - lets say you use 'EMA(5) as where "Signal" is used later
+ code something like : if EMA5 > 1 --- blabla
then you compile your strategy and later you open it via editing + add your dataseries instead of the ema-dummy !
if your indicator is called kenny01, your Signal-dataseries is called as kenny05(parameters... ) .Signal [x]
thats basicly how it can be done.
the wizard is helpful for some steps, but also blocks some functions -- so mix it !
I have read the tutorial on exposing boolseries and have successfully added this procedure to the DoubleMA and used it in one of my strategies. However for me it is too time consumming. I would rather edit an indicator with the Script Editor and add "Plots" so that I can keep using the wizard with my strategy and keep my focus on trading not programing. I'm sure once I learn how to add a plot correctly to the DoubleMA for example I will be able to apply the same principle to other trend indicators.
I understand adding the plot to Initialize(), but not sure about the min/max, or setting the plot value. The DoubleMA is a perfect example.
The question is the same: to access an indicator's (like DoubleMA) trend conditons from the strategy wizard, what plot code needs to be added to Initialize(), OnBarUpdate(), and Properties in the Indicator's code? It's really a pretty simple question. I was at a Ninja strategy development webinar yesterday and it was a frequent question of many people.
it goes through some pages with the small arrows upper right corner.
play this tutorial to get the basics about plots.
it gives you a good + simple example. - no frills in there.
if you have this plot working, you have to make some different definition of it - that is whats happening in the OnBarUpdate(),-section.
you want to have 3 different definition (+1 / 0 / -1 ) - this must be made with if .... logics
also maybe move it in panel 2.
try it and post what you have if its not working - that will be a piece we can work on
also post it if its working - its a good example then for others !