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

RE: [amibroker] Parameters Optimized per Ticker



PureBytes Links

Trading Reference Links




Just 
save the stock-specific parameters in a composite, something like 
this:
<FONT face=Arial color=#0000ff 
size=2> 
First 
load your parameters into a ParamArray one-by-on or use a 
loop:
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>ParamArray[0] = FirstParam;
<FONT face=Arial color=#0000ff 
size=2>ParamArray[1] = SecondParam;
<FONT face=Arial color=#0000ff 
size=2> 
Then 
save the data in a composite named after your stock:
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>AddToComposite(YourParameters,"~"+Name()+"-Param","X",1|2|4|8|16);
<FONT face=Arial color=#0000ff 
size=2> 
Read 
up on how to enable and disable writing the Atc. Recall the array (it will 
automatically pick the one for your current stock):
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>ParamArray = 
Foreign("~"+Name()+"-Param","X");
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>FirstParm = ParamArray[0];
<FONT face=Arial color=#0000ff 
size=2> 
Tomasz 
provided a nice way to verify the existance of the composite file a few weeks 
ago, on this list.
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2> 

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: dingo 
  [mailto:dingo@xxxxxxxxxx]Sent: May 21, 2003 3:36 AMTo: 
  amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker] Parameters 
  Optimized per Ticker
  <FONT face=Arial color=#0000ff 
  size=2>Here's one way it can be done using and include file and some vbScript. 
  There may be better ways to do this all in AFL now with some of the newer 
  constructs.
  <FONT face=Arial color=#0000ff 
  size=2> 
  I've 
  attached 2 files to this message to give you an idea.
  <FONT face=Arial color=#0000ff 
  size=2> 
  <FONT face=Arial color=#0000ff 
  size=2>d
  
    
    <FONT 
    face=Tahoma size=2>-----Original Message-----From: dadsharktx 
    [mailto:rblack@xxxxxxx] Sent: Tuesday, May 20, 2003 2:36 
    PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
    Parameters Optimized per TickerIf I have optimized 
    parameters for individual stocks, is there a way to have the indicators 
    on the different sheets use the optimized parameters for each given 
    stock.For example, if I have buy and sell indicators based on 
    RSI.  There might be three parameters: look back, buy threshold, 
    sell threshold.  And if I found that for CSCO the optimized 
    parameters were 11, 27, 71 respectively.  Similarly AAPL might be 
    15, 31, 75.I would like the RSI indicator to use RSI(11) when I'm 
    viewing the CSCO chart and RSI(15) when viewing the AAPL chart.  
    Can you assign some type of variable that reads from a file or can you 
    store these optimized parameters within Amibroker?Thanks for you 
    help.RickSend 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. 
    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


  ADVERTISEMENT 









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.