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)
Return a signal from an indicator for use in Strategy
I have a basic question that I'm sure some of you could answer relatively quickly. How do I take an indicator that's available here and add/modify the code to return a True/False condition for use in my Strategy?
For example, I just downloaded the CenTexFishDiv divergence indicator and after seeing it work in real time, I'd like to backtest the signals. How can I return a True/False for whenever a Short or Long Divergence is spotted (i.e. line drawn)? Would the code modification be made wherever the sound files are generated?
Many thanks,
Paul
Can you help answer these questions from other members on NexusFi?
This indicator gives a choice for drawing the divergence lines for FisherTransform and also for the MacDhistograhm.
I want to give all the credit to Cory who made it possible for the FisherTransform to have the divergence lines work in this indicator. …
The way it's coded now, you can't use it in an automated strategy. A developer would have to add a public Series of when long or short signals fire and then an automated strategy can examine that series on the indicator on each bar. Right now it only exposes IndicPlot0-3 series and I only ever see a value in IndicPlot0.
NJT support was able to help me a little by pointing to a reference sample showing how to add a Public series. I made the changes to this code and it largely works except sometimes, it returns a Divergence signal when I don't see one drawn on the chart. I only see this when I run it through a sample test script and call the 2 public series that I added. Inside the Indicator code, when I echo out the private series bool values, it looks right.
I was wondering if possibly you could point out what I'm missing?