Changing the IsUp parameters for rising moving average

Optuma Forums Optuma Scripting Changing the IsUp parameters for rising moving average

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #66361
    Tonia
    • Topics: 12
    • Replies: 12
    • Posts: 24

    Hi Optuma
    I’m looking to create a scan that finds stocks which have a 50sma which is rising at a specific rate of change. I have tried using the default ‘IsUp’ coding but the stock list produced does not show stocks with a steep enough moving average. I have found forum coding questions in relation to moving average colour change but I want a scan to only find stocks with a steeper sloping moving average. Not sure if it is possible, but if so, could you tell me how to change the default ‘IsUp’ coding so I can use it in scans to generate stocks with whatever degree of moving average slope I specify please?

    #66363
    Matthew
    • Topics: 5
    • Replies: 487
    • Posts: 492

    Hi,

    You can wrap a ROC() function around an MA to find the value you are after.

    Here’s a quick example using a 40SMA and a 10 Bar ROC…

    Here is how it would look on a chart using a Show View:

    Ex2

    For a scan, you’d look for V3 as the criteria:

    • This reply was modified 1 month ago by Matthew.
    2 users thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest