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

[amibroker] Re: Referencing values of a custom indicator for another ticker



PureBytes Links

Trading Reference Links

Mike!


That is what I needed!

Thanks, I really appreciate your help.


L



--- In amibroker@xxxxxxxxxxxxxxx, "Mike" <sfclimbers@xxx> wrote:
>
> Have a look at SetForeign/RestorePriceArrays: http://www.amibroker.com/guide/afl/afl_view.php?id=247
> 
> e.g.
> 
> XofA = ...
> 
> SetForeign("B");
> XofB = ...
> RestorePriceArrays();
> 
> Buy = ... AND XofA > XofB;
> 
> Mike
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "jocinet" <jocinet@> wrote:
> >
> > Hi!
> > 
> > 
> > I have two tickers (A and B) on which I want to make an intraday backtest on 5-minute data.
> > I have a custom indicator named x.
> > At a given time the custom indicator's value for ticker A is 50 'x(A)=50' and for ticker B is 61 'x(B)=61'.
> > 
> > I needed an array in which I could store the values of MAX(x(A),x(B)) for each intraday time-segment as I want to use the elements of this array as a condition for a buy signal to become valid.
> > 
> > I get buy signals through another logic and if I get a buy signal for ticker A I want to buy only if ticker A has the greater x. So if I get
> > a buy signal on A but x(A) is smaller than x(B) then I would completely ignore the buy signal on ticker A.
> > 
> > How may I do that? The difficulty I face is that I am not aware of the techniques referencing values of custom indicators for other tickers in Amibroker. As I only want to take the buy signal of A as valid if
> > x(A) is the greatest between the tickers this may not be solved with
> > PositionScore function either.
> > 
> > Is it possible to do that at high-level?
> > 
> > 
> > Thanks for your help in advance.
> > 
> > 
> > Leslie
> >
>




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

**** 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/