Custom technical ranking system

Optuma Forums Optuma Scripting Custom technical ranking system

This topic contains 3 replies, has 2 voices, and was last updated by Matthew Matthew 1 month, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #47155

    Peter
    • Topics: 6
    • Replies: 5
    • Posts: 11

    When writing my code I have found this script to be invalid.

    //MA Momentum 

    V6 = MA(BARS=12, STYLE=Exponential, CALC=Close); v2 = ATR(); MOMENTUM(v1)/v2 > 0.0; 

    Can you suggest what I have done wrong? When I remove this criteria the script is valid.

    Thanks Peter

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

    Hi Peter,

    Is this the full script?  I am wondering if there is a typo at the start and whether V6 = should be V1= ?

    When i make this adjustment the script works on my system.

     

    #47175

    Peter
    • Topics: 6
    • Replies: 5
    • Posts: 11

    I have just realised that variables v1/v2 are use twice. I have included a screen shot. Ranking

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

    Hi Peter,

    You need to adjust the variable labels so there are no duplicates.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

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