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

[amibroker] Re: 2 markets on one chart


  • Date: Sun, 27 Dec 2009 00:11:02 -0000
  • From: "cascade3891" <cascade3891@xxxxxxxxx>
  • Subject: [amibroker] Re: 2 markets on one chart

PureBytes Links

Trading Reference Links

that's easy.
just use the price(foreign) indicator and overlay the indicator on the chart, and remember to change the parameters to 'own scale'. 

--- In amibroker@xxxxxxxxxxxxxxx, Joseph Occhipinti <joseph_occhipinti@xxx> wrote:
>
> Hi all, 
> 
> Anthony, thank you greatly, this is a fantastic resource and im glad ive found it.
> 
> Rather than starting another thread, i may as well ask another question (unrelated) on this one 
> 
> I would like to put 2 stocks for example on the same chart , in aid of seeing their correlation, how can i do this?
> 
> Or a commodtiy, say gold, with a gold stock, say an ASX gold stock or a NYSE  gold stock 
> 
> how can this be done from 2 or 3 separate databases?
> 
> oh, and on top of each, not one below the other
> 
> thanks
> 
> 
> 
> 
> 
> ________________________________
> From: Anthony Faragasso <ajf1111@xxx>
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Sat, 26 December, 2009 2:05:18 AM
> Subject: Re: [amibroker] Re: Code for AFL on a reversal day. Help required
> 
>   
> 
> Buy,Sell,Short, Cover added..
>  
> gapclosingfromupope n =Open > Ref(H,-1)AND C > Ref(L,-1) AND C < Ref(H,-1);
> gapclosingfromdowno pen=Open < Ref(L,-1) AND C > Ref(L,-1) AND C < Ref(H,-1);
> Color= IIf(gapclosingfromupop en,colorYellow,IIf(gapclosingfromdown open,colorOrange,ParamColor("color",colorBlack)));
> PlotShapes(gapclosingfromupop en*shapeDownArrow,colorRed,0,High,-15);
> PlotShapes(gapclosingfromdown open*shapeUpArrow,colorGreen,0,Low,-15);
> _SECTION_BEGIN("Price");
> SetChartOptions(0,chartShowArrows|chartShowDates);
> _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} 
> {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) 
> ) ));
> Plot( C, "Close", color , styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
> _SECTION_END();//Buy,Sell,Short, cover
> //Note: In AA settings ** General > Positions ** set to long and 
> short
> SetTradeDelays( 0, 0, 0, 0 );//overrides delay setting in AA 
> window 
> Buy=Ref(gapclosingfromdowno pen,-1);BuyPrice=Open;
> Sell=Ref(gapclosingfromdown open,-1);SellPrice=Close;
> Short=Ref(gapclosingfromupope n,-1);ShortPrice=Open;
> Cover=Ref(gapclosingfromupop en,-1);CoverPrice=Close;//////////// ///////// ///////// ////////
> Filter= gapclosingfromupope n OR gapclosingfromdowno pen;
> AddColumn(C,"");
> AddColumn(gapclosingfromupop en,"up");
> AddColumn(gapclosingfromdown Open,"down");
>  
> 
> 
>       __________________________________________________________________________________
> See what's on at the movies in your area. Find out now: http://au.movies.yahoo..com/session-times/
>




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

**** 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:
    amibroker-digest@xxxxxxxxxxxxxxx 
    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/