logicgate Posted December 7, 2018 Report Share Posted December 7, 2018 I have this indicator here which I found at forexfactory called zigzag counter, which displays the total volume of each leg of the zigzag. What I wanted was for it to show the AVERAGE volume of each leg, not the total sum. Because the total sum does not give a real reading, for example, if you have one up swing with a leg formed by 4 bars, each bar with 2000 volume so total 8000, then you have a down swing with a leg made of 3 bars, two bars with 3000 and one with 2000, also with 8000 total. You would think that it has the same power that the up leg, but no, it is more powerful, it has 33% more power, in this case, if you calculate the average. up leg 8000/4 = 2000, down leg 8000/3 = 2.666 Can someone please tweak this indicator? I think it is easy, you just need to remove the code for summing and replace with a division code, for it to divide the total volume of the leg by the numbers of bars of the leg. Thanks a lot! https://www42.zippyshare.com/v/AhBwNve1/file.html taipan 1 Quote Link to comment Share on other sites More sharing options...
logicgate Posted December 7, 2018 Author Report Share Posted December 7, 2018 Really, no one? Quote Link to comment Share on other sites More sharing options...
logicgate Posted December 7, 2018 Author Report Share Posted December 7, 2018 All right do not bother, I have found one which you can choose to display total or average, also plots histogram: https://www54.zippyshare.com/v/BCZlYUBZ/file.html taipan, ⭐ al2008, ylidor and 1 other 4 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.