Sample Script

Optuma Forums Optuma Scripting Sample Script

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48351
    Jennifer
    • Topics: 4
    • Replies: 3
    • Posts: 7

    I found the following script in the sample script section and copied and pasted it to the script editor, but I get an error message saying “Please enter a valid script to add to this criteria”

    I have tried other sample scripts and they seem to work ok, but I can’t work out what is wrong with this one.

     

    5th Consecutive Close Above 34 EMA after Crossing
    CLOSE(5) CLOSE(4) > OFFSET(MA(BARS=34, STYLE=Exponential),4) and CLOSE(3) > OFFSET(MA(BARS=34, STYLE=Exponential),3) and CLOSE(2) > OFFSET(MA(BARS=34, STYLE=Exponential),2) and CLOSE(1) > OFFSET(MA(BARS=34, STYLE=Exponential),1) and CLOSE() > MA(BARS=34, STYLE=Exponential)

     

    Best regards,

     

    Jennifer Taylor

    #48355
    Henry
    • Topics: 0
    • Replies: 17
    • Posts: 17

    Hi Jennifer

    The first Close(5) seems like a typo.

    It works fine after I remove it.

    CLOSE(4) > OFFSET(MA(BARS=34, STYLE=Exponential),4) and CLOSE(3) > OFFSET(MA(BARS=34, STYLE=Exponential),3) and CLOSE(2) > OFFSET(MA(BARS=34, STYLE=Exponential),2) and CLOSE(1) > OFFSET(MA(BARS=34, STYLE=Exponential),1) and CLOSE() > MA(BARS=34, STYLE=Exponential)

    Henry

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

Pin It on Pinterest