Sample Script

Optuma Forums Optuma Scripting Sample Script

This topic contains 1 reply, has 2 voices, and was last updated by Henry Henry 2 months, 2 weeks ago.

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
    Henry
    • Topics: 0
    • Replies: 12
    • Posts: 12

    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

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