Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

RC Indicator Returns 0.00 Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
sageofhalo
Posted : Thursday, September 27, 2018 2:32:47 PM
Platinum Customer 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
Bruce_L
Posted : Thursday, September 27, 2018 2:59:08 PM


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
sageofhalo
Posted : Friday, September 28, 2018 12:37:02 AM
Platinum Customer 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

Bruce_L
Posted : Friday, September 28, 2018 8:13:13 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.