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)
I want to have my indicators follow my strategy updates as I backtest. Right now I have to manually copy/past from one to another all the time and update both individually, but can I have a strategy include an indicator as a part of its code, or have an indicator slave to a strategy somehow?
Can you help answer these questions from other members on NexusFi?
I think I may have a solution. What I do is I create a function to do the calculations, then create a strategy and indicator that uses the function. I wrote about this in the MultiCharts area of FIO, but it applies to EasyLanguage, too:
I tried to transform a signal into a generic function and reuse it into a signal. It seemed to work, but, after some updates in OS, I am not able to make it work anymore (the same signal and the others, meanwhile, I wrote). Maybe some name conflict (variable …
'Signals' in MultiCharts are the same things as 'Strategies' in TradeStation.
When you need to update your code, just update the function, and the strategy and indicator will use the new code. I did that with my latest strategy a few weeks ago.
So take a look at that post and see if it makes sense. The only time this doesn't work is if you have purchased or are leasing an indicator, though most vendors (e.g. Jurik) provide access to the functions.
Hi, I have the same problem. I have been writing functions for this purpose. However, is there anyway for a strategy to make references to indicator values on a chart? Is GlobalDictionary usefully for such purpose? Thanks.
it depends a bit on what you exactly want to do. If the goal is adjusting an indicator's inputs to the strategy inputs when you change these, you can use a Global Dictionary for that. This way you can detect changes to settings within the indicator and trigger a recalculation to apply the new settings.