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