Moving average code calculated over volume bars

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #79677 quote
    Mert
    Participant
    Average

    Hello,

    I am looking for a code that calculates a moving average over volume bars. I need it in code so that I can use it in an indicator. If I plot over the volume bars a normal moving average from the library, I am unable to work it into a trading set up. For example I would like to build an indicator that says: green bar with volume above the 10 period moving average. (average over volume bars)

    Can someone help me out?

    Best regards and thanks in advance,

    Andre

    #79679 quote
    robertogozzi
    Moderator
    Master
    MyAvg = average[10,0](volume)
    IF Volume > MyAvg THEN.....
    #79681 quote
    Mert
    Participant
    Average

    Roberto,  Thanks a lot.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Moving average code calculated over volume bars


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Mert @mert Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Mert
7 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/03/2018
Status: Active
Attachments: No files
Logo Logo
Loading...