Do you know how to use Help?
PARAM[NL]- add user user-definable numeric parameter    Exploration /
Indicators[NL](AFL 2.3)

SYNTAX  Param( ''name'', default, min, max, step, sincr = 0 )
RETURNS NUMBER
FUNCTION        Adds a new user-definable parameter, which will be accessible 
via
Parameters dialog :[NL]right click over chart pane and select "Parameters"
or press Ctrl+R allows to change chart parameters - changes are reflected
immediatelly. [PARA]* "name" - defines parameter name that will be displayed
in the parameters dialog [PARA]* default - defines default value of the
parameter [PARA]* min, max - define minimum and maximum values of the
parameter [PARA]* step - defines minimum increase of the parameter via
slider in the Parameters dialog [PARA]* sincr - automatic section increment
value (used by drag-drop interface to increase default values for
parameters) [PARA]WARNING: default/min/max/step parameters have to be
CONSTANT numbers. This is because these values are cached and are not
re-read during subsequent formula evaluations.
EXAMPLE Sample code 1: [PARA]ticker = ParamStr( "Ticker", "MSFT" );[NL]sp =
Param( "MA Period", 12, 2, 100 );[NL]PlotForeign( ticker, "Chart of
"+ticker, ParamColor( "Price Color", colorLightYellow ),
styleCandle );[NL]Plot( MA( Foreign( ticker, "C" ), sp ), "MA(" +
WriteVal( sp, 1.0 ) + ")", ParamColor( "MA Color", colorRed ) );[NL]Sample
code 2: [PARA]sp = Param( "RSI Period", 12, 2, 100 );[NL]r = RSI(
sp );[NL]Plot( r, "RSI("+WriteVal(sp,1.0)+")", ParamColor("RSI Color",
colorRed ) );[NL][NL]Buy = Cross( r, 30 );[NL]Sell = Cross( 70,
r );[NL][NL]PlotShapes( shapeUpArrow * Buy + shapeDownArrow * Sell, IIf(
Buy, colorGreen, colorRed ) );
SEE ALSO        PARAMCOLOR() function , PARAMSTR() function PARAMCOLOR() 
function ,
ParamTime() function , ParamDate() function
Comments:
Tomasz Janeczko[NL]tj --at-- amibroker.com[NL]2006-02-19 06:18:23       Note 
that
Parameters are INDEPENDENT for each chart pane and for Automatic Analysis
window.[NL]In Automatic Analysis window parameters can be modified using
"Parameters" button and they are independent from ones you use for any
chart.
Tomasz Janeczko[NL]tj --at-- amibroker.com[NL]2006-02-19 06:19:59       To 
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:
* 3 Line Break
* 3 Price Break
* Adaptive Price Channel
* ADX Indicator - Colored
* AFL Example
* AFL Example - Enhanced
* AFL Timing functions
* Andrews Pitchfork
* Application of Ehler filter
* Automatic Fib Levels V.2
* Baseline Relative Performance Watchlist charts V2
* Black Scholes Option Pricing
* Bollinger Fibonacci Bands
* Bull/Bear Volume
* Candle Stick Analysis
* Candle Stick Demo
* CCI(20) Divergence Indicator
* Chandelier Exit
* Dave Landry PullBack Scan
* DT Oscillator
* Dynamic Momentum Index
* Dynamic Momentum Index
* Ehlers Center of Gravity Oscillator
* ekeko price chart
* Elder Impulse Indicator
* Elder Impulse Indicator V2
* Elder safe Zone Long + short
* Elder Triple Screen Trading System.
* Elder's Market Thermometer
* Elder's SafeZone Stop
* ElderSafeZoneStopLong
* ElderSafeZoneStopShort
* Fib CMO
* Gordon Rose
* Heikin-Ashi HaDiffCO
* Indicator Explorer (ZigZag)
* Linear Regression Line w/ Std Deviation Channels
* Log Time Scale
* MACD and histogram divergence detection
* MultiCycle 1.0
* Noor_Doodie
* ParabXO
* Pivot Finder
* Pivot Point with S/R Trendlines
* Position Sizing and Risk Price Graph - 2
* Projection Oscillator
* Ranking and sorting stocks
* Rea Time Daily Price Levels
* Relative strength comparison with moving average
* Renko Chart
* RSI Divergence
* SAR-ForNextBarStop
* Shares To Buy Price Graph
* Simple Momentum
* Standard Error Bands (Native AFL)
* Support Resistance levels
* TD sequential
* The Three Day Reversal
* Trend Detection
* Woodies CCI
* ZeroLag MACD(p,q,r)
* Zig Explorer
* Zig Zag
* ZigZag filter rewrited from scratch in AFL
More information:
Updated on-line reference



-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] Behalf
Of thorstef2003
Sent: Sunday, July 30, 2006 8:21 AM
To: [email protected]
Subject: [amibroker] Re: Charting different indicators on different Sheets

Terry, I don't know how to use PARAM. Please provide an example for
whatever you are trying to say.
I have just tried copying the "Price" indicator and saving it as a
custom indicator with a different name as Prashanth advised.
Inserting the "new" indicator creates a blank pane, which I later
found was because AB uses internal code to draw the price chart.
Can someone help out with a paste of just the "Price" indicator?

--- In [email protected], "Terry" <[EMAIL PROTECTED]> wrote:
>
> You can use Insert Linked (or not) and simply make your values
available
> as parameters (see PARAM statements). Then just change the
parameters on
> each chart separately. They will be "remembered" until you change
them
> or delete the chart.
>
> Caution: running a backtest or an explore from a chart does NOT
transfer
> the parameter settings. You need to change them in AA->Parameters
each
> time you backtest/scan/explore. To avoid this, create multiple
copies
> each with different parameters as was suggested by Prashanth.
> --
> Terry
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
On
> Behalf Of thorstef2003
> Sent: Sunday, July 30, 2006 04:04
> To: [email protected]
> Subject: [amibroker] Charting different indicators on different
Sheets
>
> Hi,
> How do I use use the same indicator with different settings on
> different sheets?
> For example, on Sheet1 I would like only price
> Sheet2 Price with Bollinger bands 10
> Sheet3 Price with 20EMA and 50EMA
> Sheet4 with Bollinger bands 20 and Keltner channels
> Sheet5 with 5EMA and 10EMA
> Sheet6 Weekly chart and daily
> And can an index price chart be superimposed on a stock price chart?
> Thanks.
> Stef
>
>
>
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>







Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html


Yahoo! Groups Links







Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to