Simple Coding Help - No Promise.

john302928

Well-Known Member
Hi Can anyone help me to create afl that can produce % gainers/losers in 15 min time frame at every 15 min like below.Thanks in advance
upload_2017-7-28_16-31-23.png
 
is there any short cut key to switch back to normal zoom. i have defult zoom of 140 bars.
plz help.
 
How to increase Width here-

_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

I want thick EMA

ty
 

Romeo1998

Well-Known Member
How to increase Width here-

_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

I want thick EMA

ty
Hi :)
use this code
Code:
_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style", stylethick) );
_SECTION_END();
 
Hi :)
use this code
Code:
_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style", stylethick) );
_SECTION_END();
I want to make it super thick.
Should be able to change its width to any thickness I want.
 

Romeo1998

Well-Known Member
I want to make it super thick.
Should be able to change its width to any thickness I want.
Dear friend,
use this code
right click on chart and then from parameters u can change thickness from 0 % to 100 % :) , i have kept its default value at 20 % :)

Code:
_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
aa = Param("Width thickness", 20,0,100,1);
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ,Null, Null, 0, 1, aa);
_SECTION_END();
 
Dear friend,
use this code
right click on chart and then from parameters u can change thickness from 0 % to 100 % :) , i have kept its default value at 20 % :)

Code:
_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
aa = Param("Width thickness", 20,0,100,1);
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ,Null, Null, 0, 1, aa);
_SECTION_END();
Romeo Ji,its giving error
aa has something wrong?
If aa removed and kept ParamStyle("Style") ,Null, Null, 0, 1)
then width do not change at all.
 

Similar threads