Tried that and doesn't seem to work, I have it setup in an indcator 
that works great intraday but can't seem to get anything to 
backtest..
--- In amibroker@xxxxxxxxxxxxxxx, Terry <MagicTH@xxxx> wrote:
  
  
    Mark,
Yes. I suggest saving your foreign price into a variable, then 
    
  
  just use 
  
  
    it in your conditional.
E.g.;
NDXc = foreign("$NDX","C");
Buy = whatever condition on NDXc (buys as usual)
Terry
mleonsprint wrote:
    
    
      I trade intraday and use Amibroker Professional, is it possible 
      
    
  
  to 
  
  
    
      have a buy and sell signal based on a "foreign" function.  So 
      
    
  
  like 
  
  
    
      if $Tick does one thing I can ask it to buy or short the ES?  
      
    
  
  Thanks 
  
  
    
      for your help.
Mark
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 --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/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/