AlphaTrend is a new indicator which derived from Trend Magic.
Alpha Trend aims to minimize stop losses and provide accurate BUY/SELL signals during trending market conditions, have significant support and resistance levels, and combine indicators from different categories to make a meaningful combination. The Alpha Trend indicator acts as a dead indicator during sideways market conditions and provides BUY and SELL signals from their crossovers with another line. It also acts as support and resistance levels and trailing stop losses during uptrend and downtrend respectively. Additionally, the Alpha Trend indicator combines CCI, ATR, MFI, and RSI indicators to provide information on momentum, trend, volatility, volume, and trailing stop loss.
default values:
coefficient: 1 which is the factor of trailing ATR value
common period: 14 which is the length of ATR MFI
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
//PRC_AlphaTrend | indicator //07.04.23 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge //author: kivancozbilgic // --- settings // AP = 14 //Common Period // coeff = 1 //Multiplier // --- end of settings if (MoneyFlowIndex[ap]>=50) then magic=Low[0]-AverageTrueRange[ap](close)*coeff endif if (MoneyFlowIndex[ap]<50) then magic=High[0]+AverageTrueRange[ap](close)*coeff endif if (MoneyFlowIndex[ap]>=50 and magic<magic[1]) then magic=magic[1] endif if (MoneyFlowIndex[ap]<50 and magic>magic[1]) then magic=magic[1] endif if magic>magic[1] then r=0 g=255 elsif magic<magic[1]then r=255 g=0 endif return magic as "AlphaTrend" coloured(r,g,0) style(line,2) |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Dear Nicolas,
I’m trying to understand if it’s possible to integrate it in a strategy. correct me if I’m wrong but “Magic” is the line of the indicator? to determine the change of trend from green to red and viceversa I have to put MagicMagic[1] ? thank’s
Yes, Magic if the variable that contains the value of the line, you can test if it goes up or down like you did.
Bonjour Nicolas, merci pour cet indicateur. Utilisant pour l’instant la création simplifié pour créer une stratégie automatique, je ne maitrise pas bien le code. Quel serait t-il pour ouvrir une position acheteuse lorsque la ligne devient verte? / vendeuse lorsque la ligne devient rouge? merci de ton retour.
Merci d’ouvrir un sujet sur le forum avec une description complète du système.