Need help in this indicator beautiful

#1
Hello everyone
Fibonacci this equation and I would like to increase the rates of 88% and 262% and 362% and 424%
And thank you super
And the idea of the equation is very excellent



_SECTION_BEGIN("AA - Fibonacci Retracements and Goals");
///////////////////////////////////////////////////
// **************** Parameters ********************
//
Period = Param("Period", 1,1, 50);
ShowExt = ParamToggle("Show Extension ?", "No|Yes");
///////////////////////////////////////////////////
// **************** Calculations *****************
//
Period = Period*(13*.618);

Hhb = LastValue(HHVBars(H, Period));
Llb = LastValue(LLVBars(L, Period));
Hv = LastValue(HHV(H, Period));
Lv = LastValue(LLV(L, Period));

Mid = (Hv - Lv);
L1Text = "0 % ";
L2Text = "23.6 %";
L3Text = "38.2 %";
L4Text = "50 %";
L5Text = "61.8 %";
L6Text = "78.6 %";
L7Text = "100 %";
L8Text = "1.618 %";
L9Text = "1.27 %";
L10Text = "200 %";

if(Hhb > Llb)
{
L1 = Lv;
L2 = (Mid*.236)+L1;
L3 = (Mid*.382)+L1;
L4 = (Mid*.5)+L1;
L5 = (Mid*.618)+L1;
L6 = (Mid*.786)+L1;
L7 = Hv;
L8 = (Mid*.618)+Hv;
L9 = (Mid*.27)+Hv;
L10 = (Mid)+Hv;
x0 = BarCount - 1 - Llb;
x1 = BarCount - 1 - Hhb;
}
else
{
L1 = Hv;
L2 = L1 - (Mid*.236);
L3 = L1 - (Mid*.382);
L4 = L1 - (Mid*.5);
L5 = L1 - (Mid*.618);
L6 = L1 - (Mid*.786);
L7 = Lv;
L8 = Lv - (Mid*.618);
L9 = Lv - (Mid*.27);
L10 = Lv - (Mid);
x0 = BarCount - 1 - Hhb;
x1 = BarCount - 1 - Llb;
}
//////////////////////////////////////////////////////////////////////////////////////
/// **************************** Plotting Area ********************************
//
Plot(C, "", IIf(C > O, colorGreen, colorRed), ParamStyle("Price Style", styleBar, maskPrice));

Plot(LineArray(x0, L1, BarCount, L1), "", colorPink, styleLine);
PlotText(L1Text, BarCount, L1, colorPink);

Plot(LineArray(x1, L2, BarCount, L2), "", colorBlue, styleLine);
PlotText(L2Text, BarCount, L2, colorBlue);

Plot(LineArray(x1, L3, BarCount, L3), "", colorGold, styleLine);
PlotText(L3Text, BarCount, L3, colorGold);

Plot(LineArray(x1, L4, BarCount, L4), "", colorRed, styleLine);
PlotText(L4Text, BarCount, L4, colorRed);

Plot(LineArray(x1, L5, BarCount, L5), "", colorGold, styleLine);
PlotText(L5Text, BarCount, L5, colorGold);

Plot(LineArray(x1, L6, BarCount, L6), "", colorBlue, styleLine);
PlotText(L6Text, BarCount, L6, colorBlue);

Plot(LineArray(x1, L7, BarCount, L7), "", colorPink, styleLine);
PlotText(L7Text, BarCount, L7, colorPink);

if(ShowExt)
{
Plot(LineArray(x1, L8, BarCount, L8), "", colorGold, styleLine);
PlotText(L8Text, BarCount, L8, colorGold);

Plot(LineArray(x1, L9, BarCount, L9), "", colorGold, styleLine);
PlotText(L9Text, BarCount, L9, colorGold);

Plot(LineArray(x1, L10, BarCount, L10), "", colorRed, styleLine);
PlotText(L10Text, BarCount, L10, colorRed);
}
Title = FullName()+" - "+Name()+"\nO:"+O+", H:"+H+", L:"+L+", C:"+C;
_SECTION_END();
 
#5
Pls revert back if any calculation is wrong.

The revised code:

_SECTION_BEGIN("AA - Fibonacci Retracements and Goals");
///////////////////////////////////////////////////
// **************** Parameters ********************
//
Period = Param("Period", 1,1, 50);
ShowExt = ParamToggle("Show Extension ?", "No|Yes");
///////////////////////////////////////////////////
// **************** Calculations *****************
//
Period = Period*(13*.618);

Hhb = LastValue(HHVBars(H, Period));
Llb = LastValue(LLVBars(L, Period));
Hv = LastValue(HHV(H, Period));
Lv = LastValue(LLV(L, Period));

Mid = (Hv - Lv);

L1Text = "0 % ";
L2Text = "23.6 %";
L3Text = "38.2 %";
L4Text = "50 %";
L5Text = "61.8 %";
L6Text = "78.6 %";
L6atext= "88 %";
L7Text = "100 %";
L8Text = "1.618 %";
L9Text = "1.27 %";
L10Text = "200 %";
L11Text = "262 %";
L12Text = "362 %";
L13Text = "424 %";



if(Hhb > Llb)
{
L1 = Lv;
L2 = (Mid*.236)+L1;
L3 = (Mid*.382)+L1;
L4 = (Mid*.5)+L1;
L5 = (Mid*.618)+L1;
L6 = (Mid*.786)+L1;
L6a= (Mid*.88)+L1;
L7 = Hv;
L8 = (Mid*.618)+Hv;
L9 = (Mid*.27)+Hv;
L10 = (Mid)+Hv;
L11 = (Mid)+(Mid*.62)+Hv;
L12 = (Mid)+(Mid)+(Mid*.62)+Hv;
L13 = (Mid)+(Mid)+(Mid)+(Mid*.24)+Hv;



x0 = BarCount - 1 - Llb;
x1 = BarCount - 1 - Hhb;
}
else
{
L1 = Hv;
L2 = L1 - (Mid*.236);
L3 = L1 - (Mid*.382);
L4 = L1 - (Mid*.5);
L5 = L1 - (Mid*.618);
L6 = L1 - (Mid*.786);
L6a= L1 - (Mid*.88);
L7 = Lv;
L8 = Lv - (Mid*.618);
L9 = Lv - (Mid*.27);
L10 = Lv - (Mid);
L11 = Lv - ((Mid)+(Mid*.62));
L12 = Lv - ((Mid)+(Mid)+(Mid*.62));
L13 = Lv - ((Mid)+(Mid)+(Mid)+(Mid*.24));




x0 = BarCount - 1 - Hhb;
x1 = BarCount - 1 - Llb;
}
//////////////////////////////////////////////////////////////////////////////////////
/// **************************** Plotting Area ********************************
//
Plot(C, "", IIf(C > O, colorGreen, colorRed), ParamStyle("Price Style", styleCandle, maskPrice));

Plot(LineArray(x0, L1, BarCount, L1), "", colorBrown, styleLine);
PlotText(L1Text, BarCount, L1, colorBrown);

Plot(LineArray(x1, L2, BarCount, L2), "", colorBlue, styleLine);
PlotText(L2Text, BarCount, L2, colorBlue);

Plot(LineArray(x1, L3, BarCount, L3), "", colorGreen, styleLine);
PlotText(L3Text, BarCount, L3, colorGreen);

Plot(LineArray(x1, L4, BarCount, L4), "", colorRed, styleLine);
PlotText(L4Text, BarCount, L4, colorRed);

Plot(LineArray(x1, L5, BarCount, L5), "", colorGreen, styleLine);
PlotText(L5Text, BarCount, L5, colorGreen);

Plot(LineArray(x1, L6, BarCount, L6), "", colorBlue, styleLine);
PlotText(L6Text, BarCount, L6, colorBlue);

Plot(LineArray(x1, L6a, BarCount, L6a), "", colorBlack, styleLine);
PlotText(L6aText, BarCount, L6a, colorBlack);

Plot(LineArray(x1, L7, BarCount, L7), "", colorBrown, styleLine);
PlotText(L7Text, BarCount, L7, colorBrown);

if(ShowExt)
{
Plot(LineArray(x1, L8, BarCount, L8), "", colorGold, styleLine);
PlotText(L8Text, BarCount, L8, colorGold);

Plot(LineArray(x1, L9, BarCount, L9), "", colorGold, styleLine);
PlotText(L9Text, BarCount, L9, colorGold);

Plot(LineArray(x1, L10, BarCount, L10), "", colorRed, styleLine);
PlotText(L10Text, BarCount, L10, colorRed);

Plot(LineArray(x1, L11, BarCount, L11), "", colorRed, styleLine);
PlotText(L11Text, BarCount, L11, colorRed);

Plot(LineArray(x1, L12, BarCount, L12), "", colorRed, styleLine);
PlotText(L12Text, BarCount, L12, colorRed);

Plot(LineArray(x1, L13, BarCount, L13), "", colorRed, styleLine);
PlotText(L13Text, BarCount, L13, colorRed);


}
Title = FullName()+" - "+Name()+"\nO:"+O+", H:"+H+", L:"+L+", C:"+C;
_SECTION_END();


Kaleem
 

Similar threads