Page 1 of 2

Easylanguage Candle Ident

Posted: Thu Mar 20, 2008 9:10 pm
by raven4ns
Hello,
Does anyone have a candle ident script that works with MC? I have been trying to find one but without much success. I use one with Amibroker and would like to find a script for MC as well. Thank you for any and all help.

Kindest regards,


Tim

Posted: Sat Mar 29, 2008 12:43 pm
by raven4ns
Has anyone seen such a code that identifies candles on a chart in Easylanguage? I have been trying to find such a code without any success. Any help would be most appreciated. Thank you.


Tim

Posted: Tue Apr 01, 2008 11:22 am
by rrobin
"candle ident script" What does it look like on a chart?
What does it ID?

With more info I may be able to help.

Posted: Tue Apr 01, 2008 12:21 pm
by raven4ns
rrobin wrote:"candle ident script" What does it look like on a chart?
What does it ID?

With more info I may be able to help.


Here is a screen shot of what the candle ident code looks like Robin.


Tim

Posted: Tue Apr 01, 2008 3:27 pm
by rrobin
Tim

I do not believe the TS has this candle type.

Good Luck

Posted: Fri May 30, 2008 12:59 am
by flyingdutchmen
im not sure if you could use this because it is written in equila
which is pretty simmilar to easy language but not everything can be
taken 1/1, for example equila ( TradeSignal5 ) has some shortcuts for indicators and also candlepatterns,
i doubt you could use it but in equila a example of candlepatterns
looks something like this (with shortcuts).....
alternative you could offcourse programm it yourself







Meta:
Synopsis( "Detects and highlights the presence of a specific candlestick
pattern which can be selected in the indicator's properties." ),
ShortCode( "CANPAT" ),
Subchart( False );

Inputs:
Pattern( Hammer, HangingMan, BullishEngulfing, BearishEngulfing, DarkCloudCover, PiercingLine, MorningStar, EveningStar, InvertedHammer, ShootingStar, BullishHarami, BearishHarami, Doji, HaramiCrossBearish, HaramiCrossBullish, DragonflyDoji, GravestoneDoji, TweezerTops, TweezerBottoms, BullishPitFall, BearishPitFall, BullishSunrise, BearishSunset, BullishCounterattack, BearishCounterattack, RisingWindow, FallingWindow, BearishTasukiGap, BullishTasukiGap, ThreeBlackCrows, ThreeWhiteSoldiers, ConfirmedHammer, ConfirmedHangingMan, ConfirmedInvertedHammer, ConfirmedShootingStar, BigBlackCandle, BigWhiteCandle ) = Hammer,
TrendFilter( True ),
TrendFilterPrice( Close ),
TrendFilterPeriod( 5, 1 );

Variables:
trend, upTrend, downTrend, drawMarker, rHammer, rHangingMan, rBullishEngulfing, rBearishEngulfing,
rDarkCloudCover, rPiercingLine, rMorningStar, rEveningStar, rInvertedHammer, rShootingstar,
rBullishHarami, rBearishHarami, rDoji, rHaramiCrossBearish, rHaramiCrossBullish, rDragonflyDoji,
rGravestoneDoji, rTweezerTops, rTweezerBottoms, rBullishPitFall, rBearishPitFall, rBullishSunrise,
rBearishSunset, rBullishCounterattack, rBearishCounterattack, rRisingWindow, rFallingWindow,
rBearishTasukiGap, rBullishTasukiGap, rThreeBlackCrows, rThreeWhiteSoldiers, rConfirmedHammer,
rConfirmedHangingMan, rConfirmedInvertedHammer, rConfirmedShootingStar, rBigBlack, rBigWhite;

// Determine the trend, in this case using a simple method
trend = XAverage( TrendFilterPrice, TrendFilterPeriod );
upTrend = ( TrendFilter = False Or TrendFilterPrice > trend );
downTrend = ( TrendFilter = False Or TrendFilterPrice < trend );

// Identify which patterns are present on this bar
CandlePatterns( 20, 2.0, upTrend, downTrend,
rHammer, rHangingMan, rBullishEngulfing, rBearishEngulfing, rDarkCloudCover, rPiercingLine,
rMorningStar, rEveningStar, rInvertedHammer, rShootingstar, rBullishHarami, rBearishHarami,
rDoji, rHaramiCrossBearish, rHaramiCrossBullish, rDragonflyDoji, rGravestoneDoji,
rTweezerTops, rTweezerBottoms, rBullishPitFall, rBearishPitFall, rBullishSunrise,
rBearishSunset, rBullishCounterattack, rBearishCounterattack, rRisingWindow, rFallingWindow,
rBearishTasukiGap, rBullishTasukiGap, rThreeBlackCrows, rThreeWhiteSoldiers, rConfirmedHammer,
rConfirmedHangingMan, rConfirmedInvertedHammer, rConfirmedShootingStar, rBigBlack, rBigWhite );

// Depending on the chosen pattern determine if we have to draw a marker
drawMarker = False;
If Pattern = Hammer And rHammer Then drawMarker = True
Else If Pattern = HangingMan And rHangingMan Then drawMarker = True
Else If Pattern = BullishEngulfing And rBullishEngulfing Then drawMarker = True
Else If Pattern = BearishEngulfing And rBearishEngulfing Then drawMarker = True
Else If Pattern = DarkCloudCover And rDarkCloudCover Then drawMarker = True
Else If Pattern = PiercingLine And rPiercingLine Then drawMarker = True
Else If Pattern = MorningStar And rMorningStar Then drawMarker = True
Else If Pattern = EveningStar And rEveningStar Then drawMarker = True
Else If Pattern = InvertedHammer And rInvertedHammer Then drawMarker = True
Else If Pattern = Shootingstar And rShootingstar Then drawMarker = True
Else If Pattern = BullishHarami And rBullishHarami Then drawMarker = True
Else If Pattern = BearishHarami And rBearishHarami Then drawMarker = True
Else If Pattern = Doji And rDoji Then drawMarker = True
Else If Pattern = HaramiCrossBearish And rHaramiCrossBearish Then drawMarker = True
Else If Pattern = HaramiCrossBullish And rHaramiCrossBullish Then drawMarker = True
Else If Pattern = DragonflyDoji And rDragonflyDoji Then drawMarker = True
Else If Pattern = GravestoneDoji And rGravestoneDoji Then drawMarker = True
Else If Pattern = TweezerTops And rTweezerTops Then drawMarker = True
Else If Pattern = TweezerBottoms And rTweezerBottoms Then drawMarker = True
Else If Pattern = BullishPitFall And rBullishPitFall Then drawMarker = True
Else If Pattern = BearishPitFall And rBearishPitFall Then drawMarker = True
Else If Pattern = BullishSunrise And rBullishSunrise Then drawMarker = True
Else If Pattern = BearishSunset And rBearishSunset Then drawMarker = True
Else If Pattern = BullishCounterattack And rBullishCounterattack Then drawMarker = True
Else If Pattern = BearishCounterattack And rBearishCounterattack Then drawMarker = True
Else If Pattern = RisingWindow And rRisingWindow Then drawMarker = True
Else If Pattern = FallingWindow And rFallingWindow Then drawMarker = True
Else If Pattern = BearishTasukiGap And rBearishTasukiGap Then drawMarker = True
Else If Pattern = BullishTasukiGap And rBullishTasukiGap Then drawMarker = True
Else If Pattern = ThreeBlackCrows And rThreeBlackCrows Then drawMarker = True
Else If Pattern = ThreeWhiteSoldiers And rThreeWhiteSoldiers Then drawMarker = True
Else If Pattern = ConfirmedHammer And rConfirmedHammer Then drawMarker = True
Else If Pattern = ConfirmedHangingMan And rConfirmedHangingMan Then drawMarker = True
Else If Pattern = ConfirmedInvertedHammer And rConfirmedInvertedHammer Then drawMarker = True
Else If Pattern = ConfirmedShootingStar And rConfirmedShootingStar Then drawMarker = True
Else If Pattern = BigBlackCandle And rBigBlack Then drawMarker = True
Else If Pattern = BigWhiteCandle And rBigWhite Then drawMarker = True;

If drawMarker Then
DrawSymbol( low, "Candle Pattern", SymbolTriangleUp, 8 );

Posted: Fri May 30, 2008 9:15 pm
by raven4ns
Thank you Dutchman for your kindness, I appreciate it. I'm surprised that TS doesn't have a pattern recognition study. In any event, thank you again.

Kindest regards,

Tim

Posted: Sat May 31, 2008 4:15 pm
by rrobin
Run a search for "pattern recognition" in the TS forums.

I think you may find some ideas.

https://www.tradestation.com/Discussion ... c_ID=58299

https://www.tradestation.com/Discussion ... xactMatch=

Good Luck

rr

Posted: Sat May 31, 2008 7:07 pm
by raven4ns
Hi rrobin,
You have to be a user of TS in order to use the forums I believe. I use MultiCharts and don't qualify. Thank you for your thoughtfulness though, it is appreciated.

Tim

Posted: Thu Jun 05, 2008 2:24 pm
by flyingdutchmen
Maybe this could be interesting for you

http://www.markplex.com/tutorial16.php