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.
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 and Values. Then, when I wanted to assign the price to this variable in the actual code, I used "Values.Set(Close(0))" and "Values.Set(Close(0))". Very simple coding after I figured it out.
Last edited by stearno; October 29th, 2014 at 04:45 AM.