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)
Let's say I found a new indicator and want to incorporate it into my strategy...but it's a very basic indicator in terms of display, and the parameters available to me as I'm writing the strategy code are not sufficient to use in conditional statements. So I decide to tweak the indicator a little bit and create a boolean I can pass into my strategy. I know this has something to do with public classes and the like, but is there an example I can look at that illustrates in detail how to instantiate this variable in the indicator code and then have it be accessible by a strategy?
Can you help answer these questions from other members on NexusFi?
Please wrap your code in the CODE tags when posting to prevent bad formatting by the forum. -- Big Mike
There a lots - just about every indicator does this.
As an example, check out the standard Darvas NT indicator (just the first one I opened). Taking the buySignal as an example, you need to declare a private instance (visible only within your class):
As C## is case sensitive, the function BuySignal is different from the variable buySignal. Your strategy should be able to reference Darvas.BuySignal to return the value of the variable buySignal.
I welcome any feedback, comments and suggestions for improvement.
Please discuss the PriceActionSwing (PAS) indicator in this thread. Any comments or suggestions are more than welcome here. If you have a more private issue send me a PM or better an …
The question has no doubt been already asked and answered before in that thread if you will read it.