[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: Linking indicators to change when one parameter is changed ?



PureBytes Links

Trading Reference Links

Here's a simple example how to do it for an RSI. It's easy to modify it for 
your needs.

Pane1:

SetChartOptions(0,0,chartGrid30|chartGrid70);
periods = Param( "Periods", 15, 1, 200, 1 );
Plot( RSI( periods), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), 
ParamStyle("Style")  );

Buy=Cover=Cross(RSI(periods),50);
StaticVarSet("buysignals", Buy);

Sell=Short=Cross(50,RSI(periods));
StaticVarSet("sellsignals", Sell);


Pane2:

buysig = StaticVarGet("buysignals");
sellsig = StaticVarGet("sellsignals");

Plot (C, "price", colorBlack, styleBar);
PlotShapes(Buysig*shapeUpArrow,colorGreen);
PlotShapes(Sellsig*shap


On 21.04.2009, 20:50:12 gmorlosky wrote:
> Hmmm... Not quite what I need (or maybe I don't understand how it would
> work). My exact situation is: 1) I am running the same indicator (HeatMap)
> in the same window in separate panes. 2) There is a parameter, within the
> *.afl file of which formula to use when displaying the heatmap (Change% or
> BullBear or Volume Change). 3) I have set one to display Change% and the
> other to display Bullbear. 4) When I change the WatchList parameter on one
> pane I want it to change the WatchList Parameter on the other pane.
>
> Thanks for any help.
>
> --- In amibroker@xxxxxxxxxxxxxxx, "wavemechanic" <fimdot@xxx> wrote:
> > staticvarset() and staticvarget()
> >
> > Bill
> >   ----- Original Message -----
> >   From: gmorlosky
> >   To: amibroker@xxxxxxxxxxxxxxx
> >   Sent: April 21, 2009 2:11 PM
> >   Subject: [amibroker] Linking indicators to change when one parameter is
> > changed ?
> >
> >
> >   How do I link 2 indicators together in separate panes in the same
> > window, so that when I chnage a parameter on one, it changes that same
> > parameter on the other indicator (basically synchronizing the
> > indicators)?
> >
> >
> >
> >
> >
> >   ------------------------------------
> >
> >   **** IMPORTANT PLEASE READ ****
> >   This group is for the discussion between users only.
> >   This is *NOT* technical support channel.
> >
> >   TO GET TECHNICAL SUPPORT send an e-mail directly to
> >   SUPPORT {at} amibroker.com
> >
> >   TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> >   http://www.amibroker.com/feedback/
> >   (submissions sent via other channels won't be considered)
> >
> >   For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> >   http://www.amibroker.com/devlog/
> >
> >   Yahoo! Groups Links
>
> ------------------------------------
>
> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> TO GET TECHNICAL SUPPORT send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/
> (submissions sent via other channels won't be considered)
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> Yahoo! Groups Links
>
>
>


------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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