| 
 Hello, 
  
I think someone may have done what I want to 
do. 
Every night I run an exploration to get a list of 
buy signals. Then I sort the buy signals by PositionScore column and place the 
top ones into IB TWS. 
I would like to automate this process, but I have 
no idea how to sort/read the exploration result table from 
AFL. 
  
The code would be something like this: 
  
  
numOrder = Param( "Num Of Orders", 0, 0, 20 ); 
trigger = ParamTrigger("Place Orders", "Click here to place IB orders"); 
  if( trigger )  {  //Todo1: Sort 
exploration results by PositionScore column 
//Todo2: Read the first numOrder 
rows 
//Todo3: connect to IB and place 
orders } 
 
  
I will appreciate it very much if somebody can give 
me some hints for Todo1 and Todo2. 
Todo3 should be fairly easy after I 
can read the signals from the table. Thanks, 
  
- Mark H. 
  
  
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
 
 
    
 |