danilogalisteu

Average Volume at Time (AVAT)

danilogalisteu تم تحديثه   
Calculation of average volume at current time for a number of previous sessions, known as Average Volume at Time (AVAT).

Inputs:
* period to use for accumulation. "D" is the default value, useful to view data for each session.
* number of previous sessions to average

TODO: more intelligent accumulation of number of bars in a session, since there may be sessions with different values
TODO: interpolate volume according to current time, inside of the last bar
ملاحظات الأخبار:
Volume on last bar is linearly interpolated according to current time (updated every tick).
ملاحظات الأخبار:
Reduced function calls.

Cleaned-up comments.
ملاحظات الأخبار:
Implemented more intelligent accumulation of number of bars in a session, since there may be sessions with different values.
ملاحظات الأخبار:
Time interpolation for the last bar implemented inside the function call (for easier reuse).
ملاحظات الأخبار:
max_bars_back increased to 5000 allows an averaging length of 100 down to the 10-minute timeframe.
ملاحظات الأخبار:
Added current cumulative volume plot for comparison, which can be disabled.
ملاحظات الأخبار:
Added option to show only % ratio of current session to average volume, as a simpler value for decision making. This option disables the other plots.
ملاحظات الأخبار:
only aesthetic changes (input strings, histogram width input)

Default length changed to 5 (previous days of data to average).
ملاحظات الأخبار:
Changed appearance to look like classic volume bars (green/red). Average value show as transparent area plot.
Code updated to version 5.

نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟