TradingView
mebiele1
29 มิถุนา 2022 เวลา 21 นาฬิกา 54 นาที

Zigzag Lines 

Zilliqa / TetherUSBinance

คำอธิบาย

This simplified zigzag/wave identifier may help your trading
ความคิดเห็น
Alex1074765
please, if it possible to add volume in pivot points ?
mebiele1
@Alex1074765, There are 3 volumes added to the script above: Volume per bar, Weis Wave Volume, and Zigzag Volume Bars.

Which volume are you talking about? Can you elaborate?
Alex1074765
@mebiele1,
Hello, mebiele 1
Thank you for the answer! Your script "Zigzag Lines" is very good, but there is a desire to improve it: it is interesting to display on the chart not only the zagzag lines, but also at the pivot points the values of the price, the volume at this point for the entire bar, the volume of the entire wave from the previous pivot point = to sum up the entire volume of all bars along the entire swing wave, and also, show not only the sum of the volumes throughout the swing, but also the relative volume = divide the sum of the volumes of bars throughout the swing by the number of these bars - this is possible ?
I just started learning pine script, so don't judge strictly = something like this :
//@version=5
indicator("Zig Zag Lib_7", overlay = true, max_lines_count = 500, max_labels_count = 500)

import TradingView/ZigZag/7 as ZigZagLib

// Create Zig Zag instance from user settings.
var zigZag = ZigZagLib.newInstance(
ZigZagLib.Settings.new(
input.float(0.00001, "Price deviation for reversals (%)", 0.00001, 100.0, 0.5, "0.00001 - 100"),
input.int(8 , "Pivot legs", 2),
input(color.rgb(155, 155, 155), "Line color","draw"),
input(true, "Extend to last bar"),
input(true, "Display reversal price"),
input(true, "Display cumulative volume"),
input(false, "Display reversal price change", inline = "priceRev"),
// input.string("Absolute", "", ["Absolute", "Percent"], inline = "priceRev"), true)
input.string("Absolute", "", ["Absolute", "Percent"], inline = "priceRev"),
true)

)

// Update 'zigZag' object on each bar with new ​pivots, ​volume, lines, labels.
zigZag.update()
Alex1074765
@mebiele1, + need to add on the graphic the relative volume (normalize volume) = divide the sum of the volumes of bars throughout the swing by the number of these bars
เพิ่มเติม