Simple Coding Help - No Promise.

amitrandive

Well-Known Member


the trendline color is red here , i want to change it default to black , how to do this ?
currently have to modify colour each time by double clicking it and in parameters i have to change colour manually . wanna to change permanently black from red .
Try using the select color,whatever color you select , the line will be of that color.

The default color is set to red, so if you close Amibroker and restart , it will change to red color again.
:thumb:

 

dell

Well-Known Member
Try using the select color,whatever color you select , the line will be of that color.

The default color is set to red, so if you close Amibroker and restart , it will change to red color again.
:thumb:

so there is no permanent solution ? i have surf yaho o group also but there is also no solution provided , will ask there directly so if any solution is there we can know that .
have searching from morning but still not get any valid solution .
 

trash

Well-Known Member

The default color is set to red, so if you close Amibroker and restart , it will change to red color again.
:thumb:

That's absolute nonsense! You simply have no valid license that's why it doesn't save settings. If you would have one then you would see that the modified selected color stays permanent after restart of AB until you modify it again.
 
Dear AFL seniors,

I need AFL for which calculate 1st hourly Piovt i.e 1015 hrs (H+L+C)/3 which can plot lines for entire day, but data for calculation should be 1st hour only.
I shall be thankful if any senior could help for the same.

Thanks and regards,

Maruti Mane
 

amitrandive

Well-Known Member
Dear AFL seniors,

I need AFL for which calculate 1st hourly Piovt i.e 1015 hrs (H+L+C)/3 which can plot lines for entire day, but data for calculation should be 1st hour only.
I shall be thankful if any senior could help for the same.

Thanks and regards,

Maruti Mane
This should work as per your requirement
Code:
_N(Title = StrFormat("{{NAME}} -"+ EncodeColor(colorBlue)+""+ EncodeColor(colorBlue)+" {{INTERVAL}} "+ EncodeColor(colorWhite)+"{{DATE}} \n Op=> %g, \n Hi=> %g, \n Lo=> %g, \n Cl=> %g, \n
{{VALUES}}", O, H, L, C));
Plot( C, "", ParamColor("Color", colorBlack ), ParamStyle("Style",styleCandle,maskAll) );
i=Interval(0);
a=IIf(i==3600,1,IIf(i==900,4,IIf(i==300,12,IIf(i==60,60,i/60))));
Hh=ValueWhen(TimeNum()==101500,HHV(H,a));
Ll=ValueWhen(TimeNum()==101500,LLV(L,a));
Cc=ValueWhen(TimeNum()==101500,C );

P = (Hh + Ll + Cc)/3;
R2 = P + (Hh-Ll);
R1 = (P*2) - Ll;

S1 = (P*2) - Hh;
S2 = P - (Hh-Ll);
Plot( p," \nPiv : ", ParamColor( "Piv Color", colorYellow ), ParamStyle("piv Style", styleDashed) );

if( ParamToggle("Plot S1 - R1", "No|Yes", 0));
{
Plot( R1," \nR1 : ", ParamColor( "R1 Color", colorPaleGreen ), ParamStyle("R1 Style",styleLine | styleDashed) );
Plot( S1," \nS1 : ", ParamColor( "S1 Color", colorOrange), ParamStyle("S1 Style",styleLine | styleDashed) );
}

if( ParamToggle("Plot S2 - R2", "No|Yes", 0));
{
Plot( R2," \nR2 : ", ParamColor( "R2 Color", colorBrightGreen ), ParamStyle("R2 Style",styleLine | styleDashed) );
Plot( S2," \nS2 : ", ParamColor( "S2 Color", colorRed), ParamStyle("S2 Style",styleLine | styleDashed) );
}
 

Similar threads