OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
Frank Birch

Veteran
1002525
Posts: 171

Joined: 3/25/2006
Location: UK

User Profile
 
Subject : RE: volume system help
Posted : 7/3/2023 1:38 PM
Post #32256 - In reply to #32246

Hi to all,
I am not on my PC but looked at this on my phone.

#Indicator

Dim f1 as Single
Dim averageVolume as Single

averageVolume = AVG(V,20) ' Calculate 20-day average volume
f1 = (V - averageVolume) / averageVolume * 100 ' Calculate percentage difference

Return f1 ' Return the value calculated by the indicator

Plot("VolPerCentDiff", f1, red, 2) ' Plot the calculated value

will try tomorrow see if I get a compile error, or if you can let me know.

Regards

Frank Birch

Deleting message 32256 : RE: volume system help


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.