Reply To: Composite Modeling

Optuma Forums Optuma Scripting Composite Modeling Reply To: Composite Modeling

#66981
Matthew
  • Topics: 5
  • Replies: 616
  • Posts: 621

You would need to use both the Switch() and IF() functions.

First setting up the two trigger rules as booleans (RSI Crosses above 70 and RSI Crosses below 30)…

Then wrapping those in a Switch() function…

Then using the IF() to set the values of +1 and -1 …

These steps would repeated for all the tool rules you needed to build.  CCI complete example:

The final line of the script would then add all the “RESx” variables together…

The final result would look like this (bottom view tool)…

Ex4

1 user thanked author for this post.

Pin It on Pinterest