Reply To: Thin out scan list where a stocks Technical Indicator does not score >=4

Optuma Forums Optuma Scripting Thin out scan list where a stocks Technical Indicator does not score >=4 Reply To: Thin out scan list where a stocks Technical Indicator does not score >=4

#47383
Matthew
Matthew
  • Topics: 3
  • Replies: 58
  • Posts: 61

Hi Mark,

In your script the individual items are using a static value whether they are passing or not.  To setup a rank system you need to only have the values when the criteria passes using an IF() function.

Here is an example with your first criteria…

With this adjustment, the criteria will have a value of 2 when it passes and a value of 0 when it does not.

If you make this adjustment to all of your criteria, and adjust the final line to:

The scan should work.

Pin It on Pinterest

Share This

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close