SCANNING FOR BOOLEAN VALUE TRUE

Optuma Forums Optuma Scripting SCANNING FOR BOOLEAN VALUE TRUE

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #66421
    Andrew
    • Topics: 4
    • Replies: 0
    • Posts: 4

    OPTUMA SCAN SCRIPTING ISSUE

    GOAL

    TO CORRECT EXISTING SCAN SCRIPT

    PROBLEM

    EXISTING SCAN SCRIPT NOT PICKING UP ELIGIBLE CANIDATES

    REQUIRED

    NEED TO SCAN FOR 1 CRITERIA.

    1.      5 SMA OF SLOW STOCHASTICS FOR TRUE CONDITION (BOOLEAN TRUE) SEE BELOW

    CURRENT BOOLEAN STOCHASTIC SCRIPT:

    S1 = ma(stoch(TYPE=Slow, BAR1=125, BAR2=5, BAR3=1), CALC=Close);

    V1 = CLOSE(S1)>=60;       //BULLISH

    V2 = CLOSE(S1)<=40;       //BEARISH

    SWITCH(V1,V2)

    (THIS SCRIPT IS IN A WATCHLIST AND INDICATES TRUE WHEN INDICATOR INITIAL CROSS IS ABOVE 60 AND REMAINS TRUE UNTIL INDICATOR CROSSES BELOW 40 FOR A FALSE SIGNAL)

    HOW TO WRITE SCRIPT SO THAT I CAN SCAN WATCHLIST FOR THE BOOLEAN VALUE TO BE TRUE ONLY (BULLISH)?

    #66435
    Matthew
    • Topics: 5
    • Replies: 487
    • Posts: 492

    Hi,

    You can adjust the existing script to reference only the V1 criteria passing for use in a scan…

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest