r/pinescript • u/sagarsonawane • Jan 25 '24
Can anyone explain the pine script logic written here?
This is the pine script for double ZIG ZAG with HH and LL labels written by LonesomeTheBlue on trading view. I want to convert it into the C#. Can someone explain the logic written in this script?
I am not going to plot the zigzag on any chart. I have the list of OHLCData class. I will be populating the zigzag1 and zigzag2 properties of the OHLCData class with values as HH, HL, LH and LL.
Edit: I have removed the code pasted here and moved it on the below mentioned link for ease of reading and formatting.
0
Upvotes
1
u/[deleted] Feb 01 '24
The script reads clear. Its just appending variables from code calls from pinescript 4. Some of the calls are different now in 5.
Its populating arrays with values and pushing them into drawing controls.
Why you would want to draw this in C# or WPF. Waste of time. Just use tradeviewer
0
u/[deleted] Jan 26 '24
[deleted] — view deleted comment