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

RE: [amibroker] shorcut to optimize



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Perhaps something along the lines of: 

<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>nb = Optimize("Comp",1,1,4,1)
<FONT face=Arial color=#0000ff 
size=2>CompMFI = Foreign("~MFI" + WriteVal( 5 * nb , 1.0 ), 
"X");
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>herman

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Stephane Carrasset 
  [mailto:nenapacwanfr@xxxxxxxxx]Sent: November 8, 2003 6:51 
  PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
  shorcut to optimizeHello,If I do a backtest 
  with an optimization on multiples compositesis there a shorcut to this 
  code below if I have 100 composites to avoid iiiiiiiiiiiiiiiiiiiiiiif 100 
  times.stephane/**Optimize Trend**/Comp1=Foreign("~MFI10", 
  "X") ;Comp2=Foreign("~MFI15", "X") ;Comp3=Foreign("~MFI20", "X") 
  ;Comp4=Foreign("~MFI25", "X") 
  ;nb=Optimize("Comp",1,1,4,1);CompMFI=IIf(nb==1,Comp1,IIf(nb==2,Comp2,IIf(nb==3,Comp3,Comp4)));Trend= 
  CompMFI >0 ;Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor












Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.