roberthalljr![]() Member Posts: 13 Joined: 3/4/2007 ![]() | 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) |