- "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 Janeczkotj --at--
amibroker.com2006-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 Janeczkotj --at--
amibroker.com2006-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