Bars that contain multiple MAs

Optuma Forums Optuma Scripting Bars that contain multiple MAs

This topic contains 3 replies, has 2 voices, and was last updated by Darren Darren 2 months ago.

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

    Steve
    • Topics: 2
    • Replies: 3
    • Posts: 5

    Hello

    I am looking at using multiple moving averages and in particular I am looking at finding any bars such that all moving averages pass through that bar.

    That is – I would like to highlight situations where the moving averages ‘squeeze’ together so that all moving averages pass through a single bar.

    Generally speaking – something along the lines of the following

    V1 = MA(5)

    V2 = MA(10)

    V3 = MA(15)

    Is the high of the current bar above V1 and V2 and V3 AND the low of the current bar below V1 and V2 and V3

    If it is, then return a positive value

    Thanks

    Steve

    #48411
    Darren
    Darren
    • Topics: 29
    • Replies: 157
    • Posts: 186

    Hi Steve,

    Try something like this:

     

    Capture

    #48487

    Steve
    • Topics: 2
    • Replies: 3
    • Posts: 5

    Hi

    I have created my own ‘moving averages’ using a script. Is it possible to obtain the same result using a script in place of a default style moving average (ie determining where the custom moving averages all converge and pass through a single bar)

    Is one script able to call upon another script – or is there another way to get the same result?

    Thanks

     

    #48527
    Darren
    Darren
    • Topics: 29
    • Replies: 157
    • Posts: 186

    Hi Steve,

    You can use a Show Plot to plot a value on the same scale as the price chart, and you can use the SCRIPT() function to reference a previously created (and saved) script.

    https://help.optuma.com/kb/faq.php?id=723

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