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 |

Code Not Compiling Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
danielbender
Posted : Tuesday, December 4, 2018 12:18:03 PM
Registered User
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 4, 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 4, 2018 1:11:30 PM
Registered User
Joined: 1/14/2006
Posts: 436

thank you... Dan

Bruce_L
Posted : Tuesday, December 4, 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
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.