| 
 I am trying to write a simple test to Long a position and would like to get the following figures: The system will enter a long position if today trades higher than previous day. Profit target is entry price + $2.50. Stop is previous low. If the price does not hit the stop or exit in 5 days, I will close the trade at Close. I have the following codes: BuyPrice = ref(H,-1);  SellPrice = ref(L,-1); Buy = H>ref(H,-1); Sell = ref(L,-1)>L; How to pinpoint the target price of the entry date after a few days? It seems like a static figure. Shall I use Target_profit=buyprice+2.5? How to exit a trade if the price does not hit the stop or target in 5 days? How to pinpoint the no. of days after an entry? Using Barssince? Thanks. Clement 
  
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 
 
  
    
  
  
  
    SPONSORED LINKS
   
       
  
 
  
    
  YAHOO! GROUPS LINKS
 
 
    
 |