Harmonic Patterns Afl Code For Amibroker 12l

65 views
Skip to first unread message

Ronald Bonk

unread,
Jul 2, 2024, 1:53:06 PM7/2/24
to vevemapa

for the bearisch patterns. Then shapeDigit4 is put at the point where the harmonic pattern with 4 pivots is known. Then it looks for the 5-th point. I only start plotting the harmonic patterns when the complete pattern is know at the earliest point. The point is shown by the orange colored shapeSmallCircle*BearHar.

Harmonic Patterns Afl Code For Amibroker 12l


Downloadhttps://urluss.com/2yU44d



then you will see the points appear in the chart where your harmonic patterns starts to develop. Note that in some cases the 4-point figure developed but it will not result in a harmonic pattern because the 5-th points is not developed. However, the 4-th point shapeDigit4 is still plotted in the chart.

this thread on Harmonic patterns was closed. I will open a new one. I have rewritten the code so that changes in the algorithm that defines the pattern can more easily be implemented. I have the books on these patterns but admit I just read only some of the pages. So the patterns are probably not defined 100% correctly but here is a start. Maybe there are some people out there who can point to errors. With these Fib numbers I just took the range. So if the retrace is showing either 0.382 or 0.886 I just use the entire range. Because he is taling about all the other Fibonacci numbers that are in between and that covers about the entire range

i made some small cosmetic changes. Often a harmonic pattern overlaps with an ABCD pattern. I made that better visible. Also the letter labels and the pattern label I made a bit nicer. So you can add more harmonic patterns when you look up the parameters MinXB, MaxXB etc. I think the PointZero guy defined 19 patterns. Sometimes more than 1 Harmonic pattern overlaps. That looks messy but I will leave that for now.

I will update the code some other time when I finish my version of the pivots. It seems these "fractal" pivots are the best suitable for these patterns. But if someone knows some other suitable pivots let me know. Scott Carney does not mention what he uses is any of his 3 books as far as I can see.

thanks, personally i like these ABCD patterns the most. The late David Keleher I had some talks with around 2010. He gave me the code below which he used at the time for long trades ES-mini. I am sure he will not mind me posting this since he died in 2016 at the age of 62 if I remember correctly. But he also used that code that these guys originally posted on these harmonic patterns around 2008/2009

Could you include other Harmonic pattered like 3 drives pattern and 5-0 patteren in you exisiting harmonic patteren AFL. and publish also most of the times this AFL is not displaying what is the pattern and Entry, SL and Exit. and add exploration scanner which we can scan it.Could you tweak this AFL with this points and republish it. You can find information about above patterns in below link.

  • ''name'' - the name of the parameter
  • ''values'' - parameter values (separated with character, e.g. "NoYes" - first string represents false value and second string represents true value)
  • defaultval - default value of the parameter
IMPORTANT: Parameter names and values must NOT contain non-printable characters (ASCII codes < 32). EXAMPLE SEE ALSO PARAM() function , ParamTrigger() function References: The ParamToggle function is used in the following formulas in AFL on-line library:
  • Pivots And Prices And Swing Volume
  • 2 Timeframes Candlestick Bar Chart
  • 3TF Candlestick Bar Chart
  • Adaptive Centre of Gravity
  • Adaptive Cyber Cycle
  • Adaptive Relative Vigour Index
  • Add SL/TGT other params to any strategy
  • Advanced Search and Find
  • Advanced Trend Lines with S & R
  • AFL_Glossary_Converter
  • AllinOneAlerts - Module
  • Alphatrend
  • Alternative ZIG function
  • Alternative ZIG type function, multi TF
  • Aroon The Advisor
  • AR_Prediction.afl
  • Auto Fib Ext&Retracement
  • Auto Trade Step by Step
  • Automatic Linear Trend Channel
  • Automatic Linear Trend Channel 2
  • automatic trendlines using fractal patterns
  • Automatic Trendlines using multiple timeframes
  • AutoTrade using an Exploration
  • AutoTrader Basic Flow - updated April 15, 2009
  • AutoTrader Basic Flow - updated Nov 18, 2008
  • Average Price Crossover
  • B-Xtrender
  • Basket Trading System T101
  • BBAreacolor&TGLCROSSNEW
  • BEANS-Summary of Holdings
  • Bid Vs Ask Dashboard
  • Brian Wild
  • Button trading using AB auto trading interface
  • Caleb Lawrence
  • CCI 14 DrBobStyle
  • CCI 50 DrBob Style
  • Centre of Gravity
  • channel indicator
  • Channel/S&R and trendlines
  • Congestions detection
  • Controlling Height of Volume Bars
  • Coppock Trade Signal on Price Chart
  • Coppock Trade Signal v1.1
  • Cyber Cycle
  • Cycle Highlighter
  • Cycle Highlighter (auto best-fit)
  • Cycle Period
  • DEBAJ
  • Evaluating Candle Patterns in a trading system
  • Export EOD or Intraday to .csv file
  • Fast Refreshed KAGI Swing Charts (Price Swing)
  • Fibonacci Calculations & Speed Resistance
  • Fibonacci Internal and External Retracements
  • Fibonacci Moving averages
  • Fisher Centre of Gravity
  • Fisher Cyber Cycle
  • Fisher Oscillator
  • Fisher Relative Vigour Index
  • Fre
  • Future Plotting of Time and Price
  • Future Plotting of Time and Price
  • Gann Swing Charts in 3 modes with text
  • Geometric Mean of Volume
  • Get Moneycontrol News Snippets into Amiboker
  • Gfx Toolkit
  • Halftrend
  • Harmonic Pattern Detection
  • Harmonic Patterns
  • Heatmap V1
  • Heikin Ashi Delta
  • Hilbert Sine Wave Support & Resistance
  • ICHIMOKU SIGNAL TRADER
  • IchimokuBrianViorelRO
  • interactively test discretionary trading
  • Intraday Fibonacii Trend Break System
  • Intraday Range and Periods Framer
  • Intraday Volume EMA
  • Inverted Plotted Volume Overlay Indicator
  • JEEVAN'S SRI CHAKRA
  • Least Squares Channel Indicator
  • Linear Candle
  • MACD BB Indicator
  • Manual Bracket Order Trader
  • Market Breadth Chart-In-Chart
  • Multiple sinus noised
  • N Line Break Chart
  • NASDAQ 100 Volume
  • NRx Exploration
  • Peter Cooper
  • Pivots And Prices
  • Point & figure Chart India Securities
  • prakash
  • Random Walk
  • Range Filter - Trading Strategy
  • Relative Vigour Index
  • RSI + Avgs
  • RSI indicator with Upper & Lower Zone Bars
  • Say Notes
  • Smoothed Adaptive Momentum
  • Square of Nine Roadmap Charts
  • Stochastic Centre of Gravity
  • Stochastic Cyber Cycle
  • Stochastic Relative Vigour Index
  • Stochastic RSI
  • Stress with SuperSmoother
  • Support and resistance
  • TD Sequential
  • Three Day Balance Point
  • Tracking Error
  • Trend Lines from 2 points
  • Triangle Search Extended
  • Trigonometric Fit - TrigFit with AR for cos / sin
  • TSV
  • Updated Renko Chart
  • Vikram's Floor Pivot Intraday System
  • Visi-Trade
  • Visualization of stoploses and profit in chart
  • Volume Divided Histogram
  • VolumeDivAvgV3_Study_BrS
  • Wolfe Wave Patterns
  • Woodie's CCI Panel Basic
  • Woodie's CCI Panel Full Stats
  • Woodie's Price Panel With Woodie's Pivots
  • ZigZag - Days, Avg (Ord) Volume and Channels
  • ZigZag Hi Lo Barcount
  • ZigZag Retracements
More information: See updated/extended version on-line.

  • "name" - defines parameter name that will be displayed in the parameters dialog
  • defaultval - defines default value of the parameter
  • min, max - define minimum and maximum values of the parameter
  • step - defines minimum increase of the parameter via slider in the Parameters dialog
  • sincr - automatic section increment value (used by drag-drop interface to increase default values for parameters)
WARNING: default/min/max/step parameters have to be CONSTANT numbers. This is because these valuesare cached and are not re-read during subsequent formula evaluations.IMPORTANT: Parameter names and values must NOT contain non-printable characters (ASCII codes < 32). EXAMPLE Sample code 1:ticker = ParamStr( "Ticker", "MSFT" );
sp = Param( "MA Period", 12, 2, 100 );
PlotForeign( ticker, "Chart of "+ticker, ParamColor( "Price Color", colorLightYellow ), styleCandle );
Plot( MA( Foreign( ticker, "C" ), sp ), "MA(" + WriteVal( sp, 1.0 ) + ")", ParamColor( "MA Color", colorRed ) );
Sample code 2:sp = Param( "RSI Period", 12, 2, 100 );
r = RSI( sp );
Plot( r, "RSI("+WriteVal(sp,1.0)+")", ParamColor("RSI Color", colorRed ) );

Buy = Cross( r, 30 );
Sell = Cross( 70, r );

PlotShapes( shapeUpArrow * Buy + shapeDownArrow * Sell, IIf( Buy, colorGreen, colorRed ) );
SEE ALSO PARAMCOLOR() function , PARAMSTR() function PARAMCOLOR() function , ParamTime() function , ParamDate() function Comments:Tomasz Janeczko
tj --at-- amibroker.com
2006-02-19 06:18:23Note that Parameters are INDEPENDENT for each chart pane and for Automatic Analysis window.
In Automatic Analysis window parameters can be modified using "Parameters" button and they are independent from ones you use for any chart.Tomasz Janeczko
tj --at-- amibroker.com
2006-02-19 06:19:59To change the parameters for the indicator, please click with RIGHT mouse button over chart pane and select "Parameters" from the menu.References: The Param function is used in the following formulas in AFL on-line library:
  • Pivots And Prices And Swing Volume
  • 2 Timeframes Candlestick Bar Chart
  • 3 Price Break
  • 3 ways to use RMI in one script
  • 3TF Candlestick Bar Chart
  • Adaptive Centre of Gravity
  • Adaptive Cyber Cycle
  • Adaptive Laguerre Filter, from John Ehlers
  • Adaptive Price Channel
  • Adaptive Relative Vigour Index
  • Add SL/TGT other params to any strategy
  • Advanced MA system
  • Advanced Trend Lines with S & R
  • Adverse Move Ratio
  • ADX Indicator - Colored
  • AFL Example
  • AFL Example - Enhanced
  • AFL Timing functions
  • AFL to Python COM Link
  • AFL_Glossary_Converter
  • ALJEHANI
  • AllinOneAlerts - Module
  • Alphatrend
  • Alternative ZIG function
  • Alternative ZIG type function, multi TF
  • An n bar Reversal Indicator
  • Andrews Pitchfork
  • Andrews PitchforkV3.3
  • Animated BackGround 1.1
  • AO+Momentum
  • Application of Ehler filter
  • Arnaud Legoux Moving Average (ALMA)
  • Aroon The Advisor
  • AR_Prediction.afl
  • Auto Fib Ext&Retracement
  • Auto Trade Step by Step
  • Automatic Linear Trend Channel
  • Automatic Linear Trend Channel 2
  • Automatic trend channel
  • automatic trendlines using fractal patterns
  • Automatic Trendlines using multiple timeframes
  • AutoTrader Basic Flow - updated April 15, 2009
  • AutoTrader Basic Flow - updated Nov 18, 2008
  • Average Dollar Price Volatility Exploration
  • Average Price Crossover
  • babaloo chapora
  • Bad Tick Trim on 5 sec database
  • Baseline Relative Performance Watchlist charts V2
  • Basket Trading System T101
  • BBAreacolor&TGLCROSSNEW
  • BEANS-Summary of Holdings
  • Better Bollinger Bands
  • Black Scholes Option Pricing
  • Bman's HaDiffCO
  • bolingerbands
  • Bollinger - Keltner Bands
  • Bollinger Band Squeeze
  • Bollinger Fibonacci Bands
  • bonlinger bands
  • Bottom Fisher Exploration
  • Brian Wild
  • Buff Volume Weighted Moving Averages
  • Bull/Bear Volume
  • Button trading using AB auto trading interface
  • Caleb Lawrence
  • Candle Stick Analysis
  • Candle Stick Demo
  • candlestick chart for Volume/RSI/OBV
  • CCI 14 DrBobStyle
  • CCI 50 DrBob Style
  • CCI(20) Divergence Indicator
  • Centre of Gravity
  • Chandelier Exit
  • Chandelier Exit
  • Chandelier Exit or Advanced Trailing Stop
  • channel indicator
  • Channel/S&R and trendlines
  • Chart Zoom
  • Color MACD Histogram Changes
  • Color Price Bar - Impulse System
  • Color Price Bars with MACD Histogram Changes
  • com-out
  • Commodity Selection Index (CSI)
  • Computing Cointegration and ADF Dashboard
  • Congestions detection
  • ConnorsRSI
  • Controlling Height of Volume Bars
  • Coppock Histogram
  • Coppock Trade Signal on Price Chart
  • Coppock Trade Signal v1.1
  • Coral Trend Indicator
  • Cyber Cycle
  • Cybernertic Hilbert Sine Wave
  • Cycle Highlighter
  • Cycle Highlighter (auto best-fit)
  • Cycle Period
  • Darvas Amibroker
  • Dave Landry PullBack Scan
  • Day Bar No
  • DEBAJ
  • Demand Index
  • DiNapoli Detrended Oscillator
  • Dinapoli Perferred Stochastic
  • Dominant Cycle Phase
  • Double Super Trend System
  • DPO with shading
  • DT Oscillator
  • Dynamic Momentum Index
  • Dynamic Momentum Index
  • Dynamtic Momentum Index
  • Effective Swing Indicator
  • Ehlers Center of Gravity Oscillator
  • Ehlers Hilbert Transformer Indicator
  • Ehlers Reflex Indicator
  • Ehlers Trendflex Indicator
  • ekeko price chart
  • EKEKO SAR-MF
  • Elder Impulse Indicator
  • Elder Impulse Indicator V2
  • Elder Ray Oscillator with MA
  • Elder safe Zone Long + short
  • Elder Triple Screen Trading System
  • Elder's Market Thermometer
  • Elder's SafeZone Stop
  • ElderSafeZoneStopLong
  • ElderSafeZoneStopShort
  • Ergodic Oscillator
  • Even Better Sinewave Indicator
  • FastStochK FullStochK-D
  • Fib CMO
  • Fib Fan Based on ZZ
  • Fibonacci Calculations & Speed Resistance
  • Fibonacci Internal and External Retracements
  • Fibonacci Moving averages
  • Fisher Centre of Gravity
  • Fisher Cyber Cycle
  • Fisher Oscillator
  • Fisher Relative Vigour Index
  • For Auto Trading Setup
  • Forward/Reverse EMA by John Ehlers
  • Fre
  • Frequency distribution of returns
  • FTWHMS - FIFTY TWO WEEKS HIGH MOMENTUM STRATEGY
  • Future MA Projection
  • Future Plotting of Time and Price
  • Future Plotting of Time and Price
  • Gann level plotter
  • Gann Swing chart v41212
  • Gann Swing Charts in 3 modes with text
  • Geometric Mean of Volume
  • Gfx Toolkit
  • GFX ToolTip
  • Gordon Rose
  • Graphical sector analysis
  • Graphical sector stock amalysis
  • Guppy Cloud
  • Halftrend
  • Harmonic Pattern Detection
  • Harmonic Patterns
  • Heatmap V1
  • Heikin Ashi Delta
  • Heikin-Ashi(Koma-Ashi) with Moving Average
  • High Low Detection code
  • Hilbert Sine Wave
  • Hilbert Sine Wave with Hull Moving Average
  • Historical Volatility Index
  • How to add IB Option Symbols
  • Hull Moving Average
  • Hurst "Like" DE
  • Ichimoku Kinko Hyo
  • ICHIMOKU SIGNAL TRADER
  • IchimokuBrianViorelRO
  • Indicator Explorer (ZigZag)
  • Intraday Average Volume
  • Intraday Fibonacii Trend Break System
  • INTRADAY HEIKIN ASHI new
  • Intraday Trend Break System
  • Intraday Volume EMA
  • Inverted Plotted Volume Overlay Indicator
  • JEEVAN'S SRI CHAKRA
  • Jesse Livermore Secret Market Key
  • John Ehler
  • Kairi Relative Index
  • Kiss and Touch with the Modified True Range
  • Larry William's Volatility Channels
  • Laugerre PPO Oscillator
  • Least Squares Channel Indicator
  • Linear Candle
  • Linear Regression Line w/ Std Deviation Channels
  • Log Time Scale
  • LSMA
  • Lunar Phases - original
  • LunarPhase
  • MACD BB Indicator
  • MACD Histogram - Change in Direction
  • MACD indicator display
  • Market Breadth Chart-In-Chart
  • Market Meanness Index
  • Market Profile
  • MCDX (Multi Color Dragon Extended)
  • Meu Sistema de Trading - versão 1.0
  • MFE and MAE and plot trades as indicator
  • Mndahoo ADX
  • Model Four
  • Modified Head & Shoulder Pattern
  • Modified-DVI
  • Moving Averages NoX
  • MS Darvas Box with Exploration
  • Multi-color Volume At Price (VAP)
  • MultiCycle 1.0
  • Multiple Ribbon Demo
  • Multiple sinus noised
  • N Line Break Chart
  • Nadaraya-Watson Envelope
  • NASDAQ 100 Volume
  • New HL Scanner
  • Non-repaitning Zigzag line
  • Noor_Doodie
  • NRx Exploration
  • nth ( 1 - 8 ) Order Polynomial Fit
  • Open Range Breakout Trading System
  • Optimal Weights
  • Option Calls, Puts and days till third friday.
  • Ord Volume
  • ParabXO
  • Parametric Chande Trendscore
  • pattenz
  • Pattern_-_Rectangle_Base_Breakout_on_High_Vol 2
  • Percentage Price Oscillator
  • Perceptron
  • Peter Cooper
  • Pivot Finder
  • Pivot Point with S/R Trendlines
  • Pivots And Prices
  • Plot visual stop / target ratio.
  • Point & figure Chart India Securities
  • Position Sizer vers2, stocks and CFDs
  • Position Sizing and Risk Price Graph - 2
  • prakash
  • Probability Density & Gaussian Distribution
  • Projection Oscillator
  • PVT Trend Decider
  • Random Walk
  • Random Walk Index
  • Random Walk Index, base formula included
  • Range Filter - Trading Strategy
  • Ranking and sorting stocks
  • Raw ADX
  • Rea Time Daily Price Levels
  • Relative Momentum Index (RMI)
  • Relative strength comparison with moving average
  • Relative Vigour Index
  • Relative Volume
  • Renko Chart
  • RI - Auto Trading System
  • RSI + Avgs
  • RSI indicator with Upper & Lower Zone Bars
  • RSI styleClipMinMax
  • SAR-ForNextBarStop
  • Scale Out: Futures
  • Scan New High and New Low
  • Schiff Lines
  • shailu lunia
  • Shares To Buy Price Graph
  • Signal to Noise
  • Simple Momentum
  • Smoothed Adaptive Momentum
  • Spearman Rank Correlation Coefficient
  • Square of Nine Roadmap Charts
  • Stan Weinstein strategy
  • Standard Error Bands (Native AFL)
  • STARC Bands
  • Stochastic %J - KDJ
  • Stochastic Centre of Gravity
  • Stochastic Cyber Cycle
  • Stochastic Oscillator
  • Stochastic Relative Vigour Index
  • Stochastic RSI
  • Stop-loss Indicator bands
  • Stops on percentages
  • Stress with SuperSmoother
  • SUPER PIVOT POINTS
  • Super Trend Indicator
  • Support and Resistance
  • Support and resistance
  • Support Resistance levels
  • TD Moving Average 2
  • TD REI
  • TD sequential
  • The Fibonaccian behavior
  • The Three Day Reversal
  • Three Day Balance Point
  • tomy_frenchy
  • Tracking Error
  • Tracking Error
  • Trades per second indicator
  • Trailing Stop Loss
  • Trend Detection
  • Trend Lines from 2 points
  • Triangular Moving Average new
  • Trigonometric Fit - TrigFit with AR for cos / sin
  • Trix Bars number
  • TTM Squeeze
  • Twiggs Money Flow
  • Twiggs money flow weekly
  • Ultimate plus
  • Updated Renko Chart
  • ValueChart
  • VAMA
  • Vikram's Floor Pivot Intraday System
  • Visi-Trade
  • visual turtle trading system
  • Visualization of stoploses and profit in chart
  • Vivek Jain
  • Volatility
  • Volume Color with Dynamic Limit
  • Volume Occilator
  • Volume wieghted moving average
  • Volume Zone Oscillator
  • VolumeDivAvgV3_Study_BrS
  • Voss Predictive Filter (A Peek Into the Future)
  • VSTOP (2)
  • VSTOP (3)
  • White Theme
  • William's Alligator System II
  • WILSON RELATIVE PRICE CHANNEL
  • Wolfe Wave Patterns
  • Woodie's CCI Panel Basic
  • Woodie's CCI Panel Full Stats
  • Woodie's Price Panel With Woodie's Pivots
  • Woodies CCI
  • Z-Score Indicator
  • ZeroLag MACD(p,q,r)
  • Zig Explorer
  • Zig Zag
  • Zig-Hi Zap-Lo
  • ZigZag - Days, Avg (Ord) Volume and Channels
  • ZigZag filter rewrited from scratch in AFL
  • ZigZag Hi Lo Barcount
  • ZigZag Retracements
  • ZLEMA ATR Long Only Trading System
More information: See updated/extended version on-line.

aa06259810
Reply all
Reply to author
Forward
0 new messages