Index filter script

Optuma Forums Optuma Scripting Index filter script

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #56499
    AvatarPeter
    • Topics: 23
    • Replies: 19
    • Posts: 42

    I’m trying to write a script for an index filter that I can apply to my charts using either a showview or showplot. I want to show where the index -(XJO) is above or below a moving average. Then apply that script to my charts ie BHP. Beyond my skills. Can it be done?

    Thanks Peter

     

    #56501
    MatthewMatthew
    • Topics: 4
    • Replies: 274
    • Posts: 278

    Hi Peter,

    It can be done using the GETDATA() function.  You can see an example here:

    Getdata

    In that post the example wraps a ROC() script around the XJO, but it will work for any other function as well including MA() for Moving Averages.

    #56513
    AvatarPeter
    • Topics: 23
    • Replies: 19
    • Posts: 42

    Thanks for the help

Viewing 3 posts - 1 through 3 (of 3 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