Subscription & data-feed pricing Class schedule

Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.

 Code Not Compiling Rate this Topic:
 Previous Topic · Next Topic Watch this topic · Print this topic ·
danielbender
 Posted : Tuesday, December 04, 2018 12:18:03 PM
Platinum Customer

Joined: 1/14/2006
Posts: 436

Hello Bruce

As usual, I need your coding expertise.  The following code is not compiling.  Please debug.

Thanks ... Dan

If(Price.MaxHigh(10.1) - Price.MinLow(10.1)) / Price.MinLow(10, 1) > 0.10 And_
Price.Netchange(1, 1)<0 And Price.close>Price.open Then
Plot = 1
ElseIf (Price.MaxHigh(10.1) - Price.MinLow(10.1)) / Price.MinLow(10, 1) > 0.10 and_
Price.Netchange(1, 1) > 0) And Price.close < Price.open) Then
Plot = -1
Else
Plot = 0
End If
Bruce_L
 Posted : Tuesday, December 04, 2018 12:30:45 PM

Worden Trainer

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

I think it is mostly just a matter of some periods which should have been commas and some missing spaces.

``````'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:My Indicator
'|******************************************************************
If(Price.MaxHigh(10, 1) - Price.MinLow(10, 1)) / Price.MinLow(10, 1) > .1 AndAlso _
Price.Netchange(1, 1) < 0 AndAlso Price.Close > Price.Open Then
Plot = 1
ElseIf (Price.MaxHigh(10, 1) - Price.MinLow(10, 1)) / Price.MinLow(10, 1) > .1 AndAlso _
Price.Netchange(1, 1) > 0 AndAlso Price.Close < Price.Open Then
Plot = -1
Else
Plot = 0
End If``````

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
danielbender
 Posted : Tuesday, December 04, 2018 1:11:30 PM
Platinum Customer

Joined: 1/14/2006
Posts: 436

thank you... Dan

Bruce_L
 Posted : Tuesday, December 04, 2018 1:13:54 PM

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 Customer Training & Support - Ask a Trainer - TC2000 version 12/18 - Ask a Trainer - TC2000 version 7 - Ask a Trainer - StockFinder 5.0 - PCFs, EasyScan and Custom Indicators General Discussions - Stock and Market Talk - TC2000 version 12 or 18 - TC2000 version 7 - StockFinder 5.0 - RealCode for StockFinder 5.0 Tutorial Videos - TC2000 version 12 tutorial videos - TC2000 version 7 tutorial videos 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.