Reply To: Composite Modeling

Optuma Forums Optuma Scripting Composite Modeling Reply To: Composite Modeling

  • Topics: 7
  • Replies: 5
  • Posts: 12


After further research on this model. It appears that in addition to the scoring parameters of:
1.            If indicator value crosses above +200 = +1

2             If indicator value crosses below -200 = -1

There is a third parameter where:
3.            If indicator value is < +200 and > -200 then = 0

Here is the script from just one indicator to use as an example. This code works fine for defining parameters 1 &2.

The trouble comes when I try to introduce parameter #3. I’ve tried a nested if statement that looks like this:

No matter how I write the Nested if statement where IF(Test Condition,Then, Else) I receive an invalid Script statement from the Script manager. Is the Switch Function necessary? Any clues would be appreciated.


Pin It on Pinterest