obv sma high

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #218334 quote
    samd
    Participant
    New

    how do you calculate 4 times the 20 day sma of obv. this does not seem to be working

    myOBV = OBV(close)
    avgOBV=average[20](myOBV) * 4

    #218336 quote
    JS
    Participant
    Veteran

    That way you multiply (myOBV) by four…

    Try this:

    myOBV=OBV(close)

    avgOBV=average[20](myOBV)

    avgOBV4=avgOBV * 4

    #218338 quote
    samd
    Participant
    New
    thanks for reply JS but it does not seem to work. How can I spit out the value so I can see what is wrong. When check results on a chart is not meeting the criteria.
    #218340 quote
    JS
    Participant
    Veteran

    It’s nothing more than calculating a “moving average” (which happens well here) and then multiplying the outcome by four…

    Can’t go wrong? 🙂

    Can you show your graph…
    #218373 quote
    robertogozzi
    Moderator
    Master
    avgOBV=average[20](myOBV) * 4 actually multiplies the average, not OBV as 4 times OBV would be avgOBV=average[20](myOBV * 4). Anyway, it might depend on other conditions requiring more than 256 units. Are you using other conditions?
    #218374 quote
    robertogozzi
    Moderator
    Master
    You can simply create this indicator to spot the values returned:
    myAVG  = avgOBV=average[20](myOBV)
    myAVG4 = avgOBV=average[20](myOBV) * 4
    return myAVG AS "average[20](myOBV)",myAVG4 AS "average[20](myOBV) * 4"
    #218381 quote
    samd
    Participant
    New
    basically I want a screener that returns stocks that the current OBV is 4 times the 20 day sma of obv
    #218383 quote
    JS
    Participant
    Veteran

    Hi Roberto,

    It doesn’t matter if you first multiply the OBV by four and then calculate the average or if you multiply the average by four, the result is the same…

    Average[20](myOBV)*4 = Average[20](myOBV*4)

     

    (Why more than 256 units…?)

    robertogozzi thanked this post
    #218398 quote
    JS
    Participant
    Veteran

    Hi Samd,

    Over what period do you want to calculate the OBV?

    #218401 quote
    robertogozzi
    Moderator
    Master
    IF he has more conditions that exceed 256 bars the calculations could be affected. Just guessing. I got your explanation aboyt the multiplier 🙂
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.

obv sma high


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
samd @samd Participant
Summary

This topic contains 9 replies,
has 3 voices, and was last updated by robertogozzi
2 years, 7 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 07/30/2023
Status: Active
Attachments: No files
Logo Logo
Loading...