Support Board
Date/Time: Sat, 08 Feb 2025 15:19:23 +0000
Post From: Long Legged Doji Parameters and Values
[2020-07-09 02:41:41] |
User14953 - Posts: 241 |
I'm interested in Sierra Chart CandleStick Pattern Finder Parameters and Values to the default Long Legged Doji. If anyone has a way to peel those off and drop them into a reply, that would be most excellent. She's strict and stringent as Betty Lou. Thanks in advance for any joy that glides on down to grace this post. Something listing -_Parameter_ and _Value_ ? from studies4.cpp /*==========================================================================*/ const double k_BearishLongleggedDoji_SimularityPercent = 10.0; bool IsBearishLongleggedDoji(SCStudyInterfaceRef sc, const s_CandleStickPatternsFinderSettings& settings, int index) { // BEARISH LONGLEGGED DOJI // 1. Uptrend // 2. The candle [index] is Doji // 3. The candle [index] is long // 4. The wicks of the candle [index] are nearly the same // 5. The body of the candle [index] is higher than the maximum of the candle [index-1] SCBaseDataRef InData = sc.BaseData; bool ret_flag = false; if(settings.UseTrendDetection == false || sc.Subgraph[TREND_FOR_PATTERNS][index] == CANDLESTICK_TREND_UP) // check for the uptrend { if (IsDoji(sc, settings, index)) // the candle 0 is Doji { // the candle 0 is long if (IsCandleStrength(InData,index)) { // the body of the candle 0 is higher than the maximum of the candle -1 if (max(InData[SC_LAST][index], InData[SC_OPEN][index]) > InData[SC_HIGH][index-1]) { // the wicks of the candle 0 are nearly the same if (abs(LowerWickLength(InData, index) - UpperWickLength(InData, index))< PercentOfCandleLength(InData, index, k_BearishLongleggedDoji_SimularityPercent)) { ret_flag = true; } } } } } return ret_flag; } /*==========================================================================*/ const double k_BullishLongleggedDoji_SimularityPercent = 10.0; Date Time Of Last Edit: 2020-07-09 02:42:10
|