Beruflich Dokumente
Kultur Dokumente
LONG SETUP
Take only Long trades when: Linear regression line > EMA, and price is greater than
both the lines.
SHORT SETUP
Take only Short trades when: Linear regression line < EMA of LR, and price is Less
than both the lines.
Enter at close of a Strong Trend bar, Price moves above/below swing pivots
Price moves out of multiple dojis or sideways congetion, etc
STOPS
When Long: Use lowest low of previous 2 bars as Stop
_SECTION_BEGIN("TriggerLines");
r=LinearReg(C, 55);
e=EMA(r, 3);
col = IIf(r > e, colorBlue, colorRed);
Plot(r, "TriggerLine 1", col, styleThick|styleNoLabel|styleDashed);
Plot(e, "TriggerLine 2", col, styleThick|styleNoLabel);
_SECTION_END();
_SECTION_BEGIN("Price Chart");
bgTop = ParamColor("BgTop",
colorBlack);
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}}- {{INTERVAL}} {{DATE}} O= %g, H= %g, L= %g,
C= %g (%.1f%%) V= " +WriteVal( V, 1.0 ) +"\n{{VALUES}}", O, H, L, C,
SelectedValue( ROC( C, 1 )) ));
ThisStyle = styleCandle;
ThisTitle = "";
switch (pStyle )
{
case "Bar":
ThisStyle = styleBar;
break;
case "Line":
ThisStyle = styleLine;
ThisColor = cLine;
break;
case "Heikin-Ashi":
_C = (O+H+L+C)/4;
_O = AMA( Ref( _C, -1 ), 0.5 );
_H = Max( H, Max( _C, _O ) );
_L = Min( L, Min( _C, _O ) );
default:
SetBarFillColor( ThisColor );
ThisColor = cLine;
break;
_SECTION_END();
_SECTION_BEGIN("BandStop");
/* Done
by
Rajandran R */
/* Author of www.marketcalls.in */
// BBands_Stop_v1.mq4 by igorad2004@list.ru
// translation in Amibroker AFL, E.M.Pottasch, 2011
// Modified By KelvinHand
// Offset Factor
TurnedUp=Nz(StaticVarGet("TurnedUp"));
TurnedDown=Nz(StaticVarGet("TurnedDown"));
SoundON = ParamToggle("Sound","Off|On",1);
procedure
CalcTrend_proc(bbtop,bbbot,Length,MoneyRisk,SoundON,TurnedUp,TurnedDown)
{
global UpTrendLine;
global DownTrendLine;
global smax;
global smin;
UpTrendLine=Null;
DownTrendLine=Null;
smax=Null;
smin=Null;
trend=0;
}
}
if (trend<0)
{
DownTrendLine[i]=bsmax[i];
if (SoundON==True && !TurnedDown && i==BarCount-1 &&
IsEmpty(DownTrendLine[i-1]))
{
Say("Bollinger Bands going Down");
TurnedUp=StaticVarSet("TurnedUp",0);
TurnedDown=StaticVarSet("TurnedDown",1);
}
} //if (trend<0)
} //for
} //procedure
bbtop=BBandTop(C,Length,Deviation);
bbbot=BBandBot(C,Length,Deviation);
CalcTrend_proc(bbtop,bbbot,Length,MoneyRisk,SoundON,TurnedUp,TurnedDown);
UpTrendSigNal=UpTrendLine AND IsEmpty(Ref(UpTrendLine,-1));
DownTrendSigNal=DownTrendLine AND IsEmpty(Ref(DownTrendLine,-1));
DisplayStyle = styleNoLabel|styleDots|styleNoTitle;
if(LineStyle == 0) DisplayStyle |= styleNoLine;
Plot(UpTrendLine,"UPTRENDLINE",cUpTrendLine,DisplayStyle);
Plot(DownTrendLine,"DOWNTRENDLINE",cDnTrendLine,DisplayStyle) ;
PlotShapes(IIf(UpTrendSignal,shapeCircle,shapeNone),cUpTrendLine,0,bbbot,0);
PlotShapes(IIf(DownTrendSignal,shapeCircle,shapeNone),cDnTrendLine,0,bbtop,0);
_SECTION_END();
_SECTION_BEGIN("Wave Channel");
_SECTION_END();
_SECTION_BEGIN("WMA Rainbow");
_SECTION_END();