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 am new to NT7 code. I have this indicator that shows divergence based upon Momentum and draws lines on chart. But I want it to show a value in the data series, so I can have it do alerts in Market Analyzer and maybe someday in Strategies. How can I assign a value to kdbuy and kdsell in the attached. I tried to do it after looking at other strategies, but it did not work. I appreciate the advice.
Can you help answer these questions from other members on NexusFi?
Okay, I figured it out. I had said DataSeries, but I meant Data Box. Once I figured out I was calling it the wrong thing, and searched for the correct term, then I found more resources.
I was assigning variables to both public and private classes, which was a mistake. I now fixed it:
I removed all the assignments at the top in the variables region and in the OnIntialize region.
I kept at the bottom Properties region where I declared the public classes for the variables and assigned them to the Values[1] and Values[2]. Then, when I wanted to assign the price to this variable in the actual code, I used "Values[1].Set(Close(0))" and "Values[2].Set(Close(0))". Very simple coding after I figured it out.