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

Re: [amibroker] FOREIGN function??



PureBytes Links

Trading Reference Links

Hello,

You have to create a watch list consisting of BOTH pairs.
Then write code like that:

if( Name() == "EURUSD" )
{
    // your trading rules for EURUSD

}
else
{
    SetForeign("EURUSD");
 
    // here your trading rules for OTHER pair
    // based on signals generated from EURUSD (hence SetForeign)


    RestorePriceArrays();
}

And run it on your 2 symbol watch list.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Andrew Z" <wizard@xxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, November 14, 2005 1:24 PM
Subject: [amibroker] FOREIGN function??


> Hey all,
> 
> I'm running some tests on an FX strategy and I have a question. Say I'm 
> testing on the EURUSD and I take a position, I then want to take a 
> position in ANOTHER currency pair at the same time. There is no testing 
> of this second currency pair, simply a BUY or SELL depending on what 
> occurs with the first currency pair. Is this possible through AB? I have 
> played with the FOREIGN function, but I'm obviously not doing it 
> correctly as I'm not getting the desired results. Or maybe it isn't 
> possible.
> 
> Thanks,
> Andrew.
> 
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> 
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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