Reply To: Composite Modeling

Optuma Forums Optuma Scripting Composite Modeling Reply To: Composite Modeling

  • Topics: 5
  • Replies: 521
  • Posts: 526


In the original post you stated:

If RSI(10)>= 70 then the indicator score would be +1. It would stay +1 until the indicator fell to <= 30 in which case the score would flip to -1.

This rule is why the Switch() function is needed, there were only 2 outcomes and one always needed to be true.

What you are describing now is a different set of rules with 3 outcomes.  For the CCI that looks to be:

  • CCI > 200
  • CCI < -200
  • CCI >-200 and < 200

Nested IFs would be the way to do this, SWITCH() is no longer required.

See article here:

CCI Example:

Chart Example…


1 user thanked author for this post.

Pin It on Pinterest