Hi All;

I am not sure what could be wrong here but I use the following code to
set to different contract.. I use the high/low/close from the foreign
contract to run through a formula and calculate buy/sell signals and
restore values..

however, the values between SetForeign/restore are not generated based
on the SetForeign  - NG2200402 - contract prices.. it is like there
was not setforeign at all??

Datecheck_1= DateNum() >= 1031229 AND DateNum() < 1040128;
SetForeign("NG2200402");

price_trend = ..some calculations
price_trigger=some calculations

price_trend_buy=Cross(price_trigger, price_trend);
price_trend_sell=Cross(price_trend, price_trigger);


B_1=price_trend_buy ;
S_1=price_trend_sell ;

Buy=(datecheck_1 AND B_1);
Sell=(Datecheck_1 AND S_1);
Short = Sell; // it is a stop and reverse system and this point
Cover = Buy

RestorePriceArrays( True );


for some reason the price_trend and price_trigger are always
calculated on the primary ticker that I have opened on the screen ..
my intention is to generate buy/sells on foreign contract and then use
it on primary contract contract

Tks
Paul


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/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:
    [EMAIL PROTECTED]

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


Reply via email to