QTusers Forum
May 20, 2012, 01:14:44 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
New Trading Game Available...
3waymarkets.com/trading_game

 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: are the paintbar rules additive?  (Read 1027 times)
scowby
Just Visiting

Posts: 3


« on: October 20, 2006, 10:35:58 AM »

So, I'm defining a paintbar.  I have added several rules.  Each rule seems to affect the paintbar.

I thought that the paintbar would only indicate a "positive" signal if ALL the rules were met.

Or is the idea behind the paintbars to have one "paintbar region" that changes colors depending on each rule within it.

It seems to me you would want to be able to produce a "signal" based on a combination of indicators.  How would I do this using paintbars?

Thanks!
Logged
cmx
Sr. Member
****
Posts: 93


WWW
« Reply #1 on: October 20, 2006, 10:55:07 AM »

Give an example to discuss.

The paintbars use logical operators within EACH rule.."and", "or", etc...SO a paintbar RULE would "signal" if all logical operations within the rule were true and you used "and" to compare each logical operation WITHIN that rule.

The rules are executed in descending order...so...each subsequent rule is executed from the top down, in order, and will overide the previous rule if there is a coincedence of factors...

The individual RULES that make up a paintbar are NOT compared by logical operators...they just trigger in descending order.

You would need to combine your formulas within ONE rule to compare using the logical operators...

You can then use multiple rules creatively to expand the complexity of the paintbar.

Logged
scowby
Just Visiting

Posts: 3


« Reply #2 on: October 20, 2006, 11:11:09 AM »

Ah - I think I figured it out.

So, I would create One paintbar - say we call it "buy signal"

Then I would create ONE rule for that paintbar, make it a complex rule with something like:

if MACD(12,26,9) > 0 and
bar close > sma(10) set color to Green


And I could add as many rules to this as I wanted.

Got it.  thanks!



Give an example to discuss.

The paintbars use logical operators within EACH rule.."and", "or", etc...SO a paintbar RULE would "signal" if all logical operations within the rule were true and you used "and" to compare each logical operation WITHIN that rule.

The rules are executed in descending order...so...each subsequent rule is executed from the top down, in order, and will overide the previous rule if there is a coincedence of factors...

The individual RULES that make up a paintbar are NOT compared by logical operators...they just trigger in descending order.

You would need to combine your formulas within ONE rule to compare using the logical operators...

You can then use multiple rules creatively to expand the complexity of the paintbar.


Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!