Beruflich Dokumente
Kultur Dokumente
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close
%g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle |
ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
// Condition for 3 Baby Bar's Low higher than Mother Candle's Low
CON2 = (Ref(L,-3)> Ref(L,-4)) AND (Ref(L,-2)> Ref(L,-4)) AND (Ref(L,-1)> Ref(L,-
4));
// Condition for 3 Baby Bar's High lower than Mother Candle's High
CON3 = (Ref(H,-3)< Ref(H,-4)) AND (Ref(H,-2)< Ref(H,-4)) AND (Ref(H,-1)< Ref(H,-
4));
// Condition for 3 Baby Bar's Low higher than Mother Candle's Low
CON5 = (Ref(L,-3)> Ref(L,-4)) AND (Ref(L,-2)> Ref(L,-4)) AND (Ref(L,-1)> Ref(L,-
4));
// Condition for 3 Baby Bar's High lower than Mother Candle's High
CON6 = (Ref(H,-3)< Ref(H,-4)) AND (Ref(H,-2)< Ref(H,-4)) AND (Ref(H,-1)< Ref(H,-
4));
//Candle 1
D1LOW=Ref(L,-2);
D1HIGH=Ref(H,-2);
D1CLOSE=Ref(C,-2);
D1OPEN=Ref(O,-2);
//Candle 2
D2LOW=Ref(L,-1);
D2HIGH=Ref(H,-1);
D2CLOSE=Ref(C,-1);
D2OPEN=Ref(O,-1);
//Candle 3
D3LOW=L;
D3HIGH=H;
D3CLOSE=C;
D3OPEN=O;
MotherBar = MHIGH > D1HIGH AND MHIGH > D2HIGH AND MHIGH> D3HIGH AND MLOW < D1LOW
AND MLOW < D2LOW AND MLOW < D3LOW AND MHIGH > MOPEN AND MLOW < MOPEN;
Buy= MotherBar AND MOPEN > MCLOSE AND D1CLOSE > MCLOSE AND D2CLOSE > D1CLOSE AND
D3CLOSE > D2CLOSE AND D1CLOSE > D1OPEN AND D2CLOSE > D2OPEN AND D3CLOSE > D3OPEN;
Sell = MotherBar AND MOPEN < MCLOSE AND D1CLOSE < MCLOSE AND D2CLOSE < D1CLOSE AND
D3CLOSE < D2CLOSE AND D1CLOSE < D1OPEN AND D2CLOSE < D2OPEN AND D3CLOSE < D3OPEN;
//Long Positions
AddColumn(IIf(Buy,LEntry,Null),"Long-Above",1.2,colorGreen);
AddColumn(IIf(Buy,LowestLow,Null),"Long-Stoploss",1.2,colorGreen);
AddColumn(IIf(Buy,LTarget,Null),"Long-Target",1.2,colorGreen);
//Short Positions
AddColumn(IIf(Sell,SEntry,Null),"Short-Below",1.2,colorRed);
AddColumn(IIf(Sell,HighestHigh,Null),"Short-Stoploss",1.2,colorRed);
AddColumn(IIf(Sell,STarget,Null),"Short-Target",1.2,colorRed);