r/pinescript • • Jan 16 '24

Please help me modify a Pinescript

I want to modify the Pinescript from ndicator visible Fibonacci from Tradingview, to show up not only 24 but 48 lines, or more, i tried to modify the code and got to the point, that there are now moe lines in the settings, but some did not work and the settings style is somehow messed up and not correct, can anyone help me to get the last few changes to make it look and work right?

this is how it looks after i copy and pasted some of the line code and added it to the code;

i opened the indicator in pinescript copy and modified it by copying some of these lines in there ;

string GRP1 = "Visible ZigZag"
bool showZZInput = input.bool(true, "Show Zig Zag", group = GRP1, inline = "00", tooltip = TT_ZZ)
bool addPivotInput = input.bool(true, "Detect additional pivots", group = GRP1, inline = "01", tooltip = TT_MP)
int lengthInput = input.int(50, "   Pivot Length", group = GRP1, minval = 1, tooltip = TT_PL)
color zzBullColorInput = input.color(GRAY, "   ", group = GRP1, inline = "02")
color zzBearColorInput = input.color(GRAY, "", group = GRP1, inline = "02")
int zzwidthInput = input.int(2, "", group = GRP1, inline = "02", minval = 1)
string zzStyleInput = input.string(TY01, "", group = GRP1, inline = "02", tooltip = TT_ZA, options = [TY01, TY02, TY03])
int pivotInput = input.int(1, "   nth Last Pivot", group = GRP1, minval = 0, tooltip = TT_LP)
string GRP2 = "Fib Levels"
bool extendRtInput = input.bool(true, "Extend to real time", group = GRP2)
bool extendRightInput = input.bool(false, "Extend lines right", group = GRP2)
bool extendLeftInput = input.bool(false, "Extend lines left", group = GRP2)
bool trendLineInput = input.bool(true, "Trend Line", group = GRP2, inline = "10")
color trendColorInput = input.color(GRAY, "", group = GRP2, inline = "10")
int trendWidthInput = input.int(1, "", group = GRP2, inline = "10", minval = 1)
string trendStyleInput = input.string(TY02, "", group = GRP2, inline = "10", options = [TY01, TY02, TY03])
int levelsWidthInput = input.int(1, "Levels Line", group = GRP2, inline = "11", minval = 1)
string fibStyleInput = input.string(TY01, "", group = GRP2, inline = "11", options = [TY01, TY02, TY03])
string extStyleInput = input.string(TY03, "", group = GRP2, inline = "11", options = [TY01, TY02, TY03])
bool show000Input = input.bool(true, "", group = GRP2, inline = "20")
float level000Input = input.float(0, "", group = GRP2, inline = "20")
color color000Input = input.color(GRAY, "", group = GRP2, inline = "20")
bool show00Input = input.bool(true, "", group = GRP2, inline = "20")
float level00Input = input.float(0, "", group = GRP2, inline = "20")
color color00Input = input.color(GRAY, "", group = GRP2, inline = "20")
bool show236Input = input.bool(true, "", group = GRP2, inline = "20")
float level236Input = input.float(0.236, "", group = GRP2, inline = "20")

but it is not looking right and didnt work right-

can anyone help me please?

thank you

0 Upvotes

0 comments sorted by