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.


  Current location        Thread information  
OmniTrader Professional Forum
OmniScripts
volume system help
Last Activity 7/3/2023 1:41 PM
8 replies, 1061 viewings

Jump to page : 1
Now viewing page 1 [25 messages per page]
 
back reply
Printer friendly version

^ Top
beech pilot

Member
25
Posts: 33

Joined: 11/1/2018
Location: Visalia

User Profile
 
Subject : volume system help
Posted : 7/10/2020 11:02 PM
Post #31187

hello any help on the indicator VHI in volume systems when a big green bar occurs or big red bar occurs when it hits the high of the window pane thanks


Attached file : 7-10-2020 9-01-07 PM.jpg (177KB - 266 downloads)

^ Top
nawaz

New User

Posts: 3

Joined: 5/16/2016
Location: BURNABY BC CANADA

User Profile
 
Subject : volume system help
Posted : 5/12/2023 11:28 AM
Post #32242 - In reply to #31187

PLEASE , CAN SOMEONE HELP, TO MAKE A VOLUME INDICATOR SCRIPT ?
percentage difference between the current volume and the 20-day average volume.
Attached file : % volume change.png (479KB - 52 downloads)

^ Top
beech pilot

Member
25
Posts: 33

Joined: 11/1/2018
Location: Visalia

User Profile
 
Subject : RE: volume system help
Posted : 5/12/2023 8:18 PM
Post #32243 - In reply to #32242

best of luck getting any responses
^ Top
Bekaert

Regular
2525
Posts: 51

Joined: 2/1/2008
Location: Oostkamp, Belgium, Europe

User Profile
 
Subject : RE: volume system help
Posted : 5/14/2023 6:48 AM
Post #32245 - In reply to #31187

Hi
Just copy this file in the directory C:\Program Files (x86)\Nirvana\OT2023\VBA\Systems
it gives you a signal when the volume is x-times greater than the xx-volumeaverage.

Regards
Marc
Attached file : VolumePeakSys.txt (0KB - 56 downloads)

^ Top
roberthalljr

Member

Posts: 13

Joined: 3/4/2007

User Profile
 
Subject : RE: volume system help
Posted : 5/14/2023 3:32 PM
Post #32246 - In reply to #31187

Maybe this will help. If I understand correctly your request, you are looking for today's volume relative to the average volume over the past 20 days as a percentage. Here is the code, paste it into indicator file under VBA and compile it in Omnitrader or you can copy and paste it into the EDIT section for Omnilanguage as a NEW indicator, then compile it. The code does compile and will appear in the indicator pane on the chart if you choose to do so.

#Indicator

Dim f1 as Single

f1 = V/AVG(V,20) * 100

Return f1 ' Return the value calculated by the indicator

Plot("VolPerCentDiff",f1,red,2)


^ Top
beech pilot

Member
25
Posts: 33

Joined: 11/1/2018
Location: Visalia

User Profile
 
Subject : RE: volume system help
Posted : 5/14/2023 7:28 PM
Post #32247 - In reply to #32245

thanks very much
^ Top
nawaz

New User

Posts: 3

Joined: 5/16/2016
Location: BURNABY BC CANADA

User Profile
 
Subject : RE: volume system help
Posted : 7/2/2023 11:36 AM
Post #32255 - In reply to #32246

DEAR SIR,
i am trying since many days, in VBA, INDICATORs, name NEW, NEWindicator,
indicator, and past it.....but not compiling...Indicator' "is not declared. It may be inaccessible due to its protection level." please will you please
guide me step by step ...
thank you

nawaz

^ Top
Frank Birch

Veteran
10025
Posts: 138

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 #32255

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

^ Top
Frank Birch

Veteran
10025
Posts: 138

Joined: 3/25/2006
Location: UK

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

Hi to all,

or

#Indicator

Dim f1 as Single

f1 = (V - AVG(V,20)) / AVG(V,20) * 100

Return f1 ' Return the value calculated by the indicator

Plot("VolPerCentDiff",f1,red,2)

Jump to page : 1
Now viewing page 1 [25 messages per page]
back reply

Legend    Action      Notification  
Administrator
Forum Moderator
Registered User
Unregistered User
E-Mail this thread to a friend
Toggle e-mail notification


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