Home | Trading Alchemy Manual | Alchemy Functions IndexAlchemyStrongTrend201111 (Function)AlchemyStrongTrend201111 is a multiple-output function that returns the strong trend paint bar and entry zone values of the Alchemy TrendCatcher (Alchemy TrendCatcherComplete) indicator. double
AlchemyStrongTrend201111 ( double
Price,double
Length,double
Factor,double
Type,double
UpPriceType,double
DnPriceType,double
BuyPriceType,double
SellPriceType,double
MinBars,double
Retest,double
oTrendBuy,double
oTrendSell,double
oStrongUpTrend,double
oStrongDnTrend, Parameters |
Price |
Specifies the price to be used for the Strong Trend calculation such as open, high, low or close. |
Length |
Specifies the number of trailing bars to include in the Strong Trend calculation. |
Factor |
Specifies the Strong Trend sensitivity factor. For a less sensitive Strong Trend calculation, this factor can be increased and for a more sensitive Strong Trend calculation, this factor can be decreased. |
Type | Specifies the calculation method of the Strong Trend and the options are whole numbers from 1 through 4. |
UpPriceType | Specifies the method type for calculating a strong up trend whereas a setting of 1 is the most sensitive setting and a setting of 4 is the least sensitive setting that requires a much stronger up move before an uptrend is detected. The options are whole numbers from 1 through 4. |
DnPriceType | Specifies the method type for calculating a strong down trend whereas a setting of 1 is the most sensitive setting and a setting of 4 is the least sensitive setting that requires a much stronger down move before a downtrend is detected. The options are whole numbers from 1 through 4. |
BuyPriceType | Specifies the method type for signaling a strong trend buy entry paint bar as follows: With a setting of 1, the bar has to open within the buy entry zone. With a setting of 2, the high of the bar has to be within the buy entry zone. With a setting of 3, the low of the bar has to be within the buy entry zone. With a setting of 4, the bar has to close within the buy entry zone. |
SellPriceType | Specifies the method type for signaling a strong trend sell entry paint bar as follows: With a setting of 1, the bar has to open within the sell entry zone. With a setting of 2, the high of the bar has to be within the sell entry zone. With a setting of 3, the low of the bar has to be within the sell entry zone. With a setting of 4, the bar has to close within the sell entry zone. |
MinBars | Specifies the minimum number of bars for a trend confirmation. |
Retest | Specifies the minimum factor for detecting a new strong trend. |
oTrendBuy | A numeric reference that receives the strong trend buy status number, whereas a value of 1 indicates a strong up trend as displayed by the cyan paint bars, a value of 2 indicates that price is starting to retrace back down after a strong up trend has been detected and a value of 3 indicates that price has entered the buy zone |
oTrendSell | A numeric reference that receives the strong trend sell status number, whereas a value of 1 indicates a strong down trend as displayed by the magenta paint bars, a value of 2 indicates that price is starting to retrace back up after a strong down trend has been detected and a value of 3 indicates that price has entered the sell zone |
oStrongUpTrend | A numeric reference that receives a value of 1 when a strong trend buy zone is displayed. Otherwise it receives a value of 0. |
oStrongDnTrend | A numeric reference that receives a value of 1 when a strong trend sell zone is displayed. Otherwise it receives a value of 0. |
oLongRetrace | A numeric reference that receives the number of consecutive retracements into a new strong trend buy zone within the same strong up trend. |
oShortRetrace | A numeric reference that receives the number of consecutive retracements into a new strong trend sell zone within the same strong down trend. |
oLastUpStrength | A numeric reference that receives the strength of the last strong up trend. |
oLastDnStrength | A numeric reference that receives the strength of the last strong down trend. |
oEntry1 | A numeric reference that receives the Entry1 plot value of the Alchemy Trend Entry Indicator |
oEntry2 | A numeric reference that receives the Entry2 plot value of the Alchemy Trend Entry Indicator |
oSig | A numeric reference that receives a value -1 when price is within the strong trend sell zone and a value of 1when price is within the strong trend buy zone. Otherwise it receives a value of 0. |
ReturnsThe function returns 1 when the Strong Trend module is in an up trend and the function returns -1 when the Strong Trend module is in a down trend |