Relative Volume Coding - futures io
futures io

Relative Volume Coding

Discussion in EasyLanguage Programming

    1. trending_up 2,917 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 150,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

Search this Thread

Relative Volume Coding

(login for full post details)
  #1 (permalink)
Rio de Janeiro, Brazil
Posts: 2 since Jul 2021
Thanks: 0 given, 0 received

Hi, guys!

I'm having a hard time figuring out how to code the Relative Volume in Easylanguage. The RVol is a real time indicator and changes its value every minute (I'm using 1 min chart). Going straight to the point, here's what I'm trying to do:

1) Calculate the accumulated volume from the beginning of the session until "now". Let's say the session starts at 10:00 and it's now 11:35. The first step would be to accumulate the total volume traded today (quantity, no financial) from 10:00 to 11:35. This I managed to do:
vAcum := QuantityVol(false);
if (Date = Date[1]) then
  vAcum :=  vAcum + vAcum[1];
Lets say the value I get is 109

2) This is where things get tricky. I need to calculate the average value of the variable above for previous sessions (from beginning of session until "now"). Let's say I want the average of 5 previous sessions. Example:
  • Day -1: accumulated volume from 10:00 to 11:35 = 150
  • Day -2: accumulated volume from 10:00 to 11:35 = 73
  • Day -3: accumulated volume from 10:00 to 11:35 = 85
  • Day -4: accumulated volume from 10:00 to 11:35 = 94
  • Day -5: accumulated volume from 10:00 to 11:35 = 113
Average = 103

3) Calculate the ration between (1) and (2). In other words: 109/103 = 1.058 which is my Rvol.

I'm using a really simple Easylanguage software here in Brazil, so complex formulas and scripts are not able to be used (yeah, that's ridiculous!).

Thanks a lot!

Reply With Quote

Can you help answer these questions
from other members on futures io?
Multi Time Frame High/Low/Median levels
Big Mo Indicator for NT8
NT8 Order Management Strategy
The Elite Circle
Market on Close data within IB
Platforms and Indicators
Dissect open interest data
Crypto Futures
Best Threads (Most Thanked)
in the last 7 days on futures io
Is anyone actually making money?
123 thanks experience and review
11 thanks
Want your NinjaTrader indicator created, free?
7 thanks
Artificial Intelligence (AI) and Chat GPT
7 thanks
Dax market profile (FDAX, TPO)
7 thanks
(login for full post details)
  #2 (permalink)
Madrid, Espaņa
Posts: 2 since Jan 2011
Thanks: 0 given, 0 received

I can't quite understand what part he can't do

Reply With Quote
(login for full post details)
  #3 (permalink)
Rio de Janeiro, Brazil
Posts: 2 since Jul 2021
Thanks: 0 given, 0 received

juan View Post
I can't quite understand what part he can't do

I'm having a problem trying to get the same bar as of "today" from previous day.

Eg: Right now I'm on bar #5 of the day. I need to get the value of the indicator of the bar #5 from the previous N days.

Reply With Quote

futures io Trading Community Platforms and Indicators EasyLanguage Programming > Relative Volume Coding

Last Updated on July 18, 2021

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


Copyright © 2023 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada),
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts