|
beech pilot
 Member
 Posts: 36
Joined: 11/1/2018
Location: Visalia
User Profile |
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 - 422 downloads)
|
|
beech pilot
 Member
 Posts: 36
Joined: 11/1/2018
Location: Visalia
User Profile |
best of luck getting any responses
|
|
Bekaert
 Regular
  Posts: 52
Joined: 2/1/2008
Location: Oostkamp, Belgium, Europe
User Profile |
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 - 212 downloads)
|
|
roberthalljr
 Member
Posts: 13
Joined: 3/4/2007
User Profile |
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)
|
|
beech pilot
 Member
 Posts: 36
Joined: 11/1/2018
Location: Visalia
User Profile |
thanks very much
|
|
Frank Birch
 Veteran
   Posts: 171
Joined: 3/25/2006
Location: UK
User Profile |
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
|
|
Frank Birch
 Veteran
   Posts: 171
Joined: 3/25/2006
Location: UK
User Profile |
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)
|
|
Etherist
 Member
 Posts: 25
Joined: 6/9/2024
Location: South Australia
User Profile |
Here's a reply to a similar request:
https://www.omnitrader.com/currentclients/proforum/thread-view.asp?threadid=8111&posts=3
|