NY, NY/USA
Experience: Advanced
Platform: Investor/RT and TT XT
Broker: DTN IQFeed, Rthmic, TT-NET
Trading: Energy Futures
Posts: 222 since Mar 2013
Thanks Given: 196
Thanks Received: 1,179
|
I was wondering if anyone could help interpret two lines of ThinkScript code from the VSA indicator.
The first is:
rec avgVolume = CompoundValue(volumeEMALength, ExpAverage(volume, volumeEMALength), Double.NaN)
and the second:
rec sAvgVolume = CompoundValue(volumeEMALength, Average(volume, volumeEMALength), Double.NaN);
I initially thought that the first one was simply an EMA of the volume, but the presence of the CompoundValue(volumeEMALength, is throwing me off.
The second appeared to be just the simple average of the volume, but again, I am having a hard time understanding the beginning.
Could someone shed some light on what these two lines of code are actually measuring and the logic behind it.
I checked the TOS website and am having hard time making sense of the explantion in regard to compound value and this specific code.
Thank you in advance for the help
If you can keep your wits about you while all others are losing theirs, and blaming you....The world will be yours and everything in it, what's more, you'll be a man, my son. - Kipling |
|