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 |

testing color of bar for awesome oscillator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
kd
Posted : Sunday, December 19, 2010 2:15:22 PM
Registered User
Joined: 4/20/2009
Posts: 188
please advise structure for an IF statement that will test whether the bar color
is red or green when using the 'awesome oscillator'.  assuming it is possible to do that kind of testing.


thanks
Bruce_L
Posted : Monday, December 20, 2010 12:16:23 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You can't test for the color, but you can test for the same criteria used to Paint the Bars in the first place. So a RealCode Condition for a Red Awesome Oscillator could be written as:

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:AO Red
'|******************************************************************
'# AO = indicator.Library.Awesome Oscillator
If AO.NetChange < 0 Then Pass

While a RealCode Condition for a Green Awesome Oscillator could be written as:

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:AO Green
'|******************************************************************
'# AO = indicator.Library.Awesome Oscillator
If AO.NetChange >= 0 Then Pass

-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.