Platinum Customer
Joined: 2/24/2013 Posts: 16
|
Hello,
Having trouble with the following:
'# ATR = indicator.Library.Average True Range
Dim Trend1 As Single
Dim Trend2 As Single
Dim Trend3 As Single
Trend1 = Price.Close - Price.XAVG(20)
Trend2 = Price.Close - Price.XAVG(50)
Trend3 = Price.Close - Price.XAVG(200)
Plot = (Trend1 + Trend2 + Trend3) / ATR.AVG(200)
Without the "/ATR.AVG(200)" portion it functions properly. With that portion it returns all 0. Any ideas as to what is going on?
Thank you,
Connor
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Actually no,I don't know what the problem might be It seems to wok just fine when I copy and paste it into a RealCode Indicator in StockFinder 5.0 on my computer.
Please contact technical support.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Platinum Customer
Joined: 2/24/2013 Posts: 16
|
The solution was that there was an undeclared number for "period" in the block diagram. They worked with me to fix it and get it defined.
Thanks
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|