hello, i wud like a help...
i use qstick indicator with EMA.. i wud like to generate Buy/Sell Signal in case of crossovers... i need help in the coding.. In amibroker
_SECTION_BEGIN("qstick");
/* QStick from Tushar Chande. This indicator measures intraday momentum by
using the distance between the open and close of price over "n periods".
It is set at the default ( 8 ) periods that Chande suggest. */
MaxGraph=3;
Graph0=MA( C-O,8);
// The '0' line.
Graph1=0;
Graph1Style=5;
Graph1Style=styleNoLabel;
_SECTION_END();
_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 200, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
Plz help.. Thanx.
i use qstick indicator with EMA.. i wud like to generate Buy/Sell Signal in case of crossovers... i need help in the coding.. In amibroker
_SECTION_BEGIN("qstick");
/* QStick from Tushar Chande. This indicator measures intraday momentum by
using the distance between the open and close of price over "n periods".
It is set at the default ( 8 ) periods that Chande suggest. */
MaxGraph=3;
Graph0=MA( C-O,8);
// The '0' line.
Graph1=0;
Graph1Style=5;
Graph1Style=styleNoLabel;
_SECTION_END();
_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 200, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
Plz help.. Thanx.
Attachments
-
156 KB Views: 433