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

RE: [amibroker] Parameters Optimized per Ticker



PureBytes Links

Trading Reference Links










An alternative to this would be

Slevel = (Name()=="AD")*22+(Name()=="BEZ")*30+(Name()=="<font
 size=3 face=Arial>CAM<font
size=3 face=Arial>")*30;

 



<font size=3 color=teal
face="Times New Roman">Cheers,
Graham

<font size=2
color="#339966" face="Times New Roman"><font
color="#339966">http://groups.msn.com/ASXShareTrading

<font size=2
color="#339966" face="Times New Roman"><font
color="#339966">http://groups.msn.com/FMSAustralia



<span
>-----Original Message-----
From: dingo
[mailto:dingo@xxxxxxxxxx] 
Sent: Wednesday, 21 May 2003<font
face=Tahoma> <font
 face=Tahoma>7:30 AM<font
face=Tahoma>
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Parameters
Optimized per Ticker

<font size=2
face="Times New Roman"> 



<font size=2 color=blue
face=Arial>Here's
the same type of solution but this one doesn't use script. Its all AFL. No
composites, not ABTool stuff.  No complicated solutions looking for a
problem to solve. Just 100% pure AFL:





<font size=2
face="Times New Roman"> 





<font size=2 color=blue
face=Arial>
ticker = Name(); 





<font size=2 color=blue
face=Arial> 





<font size=2 color=blue
face=Arial>SLevel
=   9999;





<font size=2 color=blue
face=Arial> 





<font size=2 color=red
face=Arial>if
(ticker == "AD")SLevel = 22;
if (ticker == "BEZ")SLevel = 30;
if (ticker == "<span
 >CAM<font color=red
face=Arial>")SLevel = 55;
if (ticker == "CUNO")SLevel = 15;





<font size=2 color=blue
face=Arial> 





<font size=2 color=blue
face=Arial>
Blevel = -SLevel;
SLevel = SLevel;





<font size=2 color=blue
face=Arial> 





<font size=2 color=blue
face=Arial>// your
code to calc buys, etc goes here.





<font size=2 color=blue
face=Arial> 





<font size=2 color=blue
face=Arial>// Code
to set buy, sell, short, cover signals
Buy = 1;
Sell  =1;
Short = 1;
Cover = 1;
Buy = Buy AND NOT (SLevel == 9999);
Short = Short AND NOT (SLevel == 9999);





<font size=2 color=blue
face=Arial> 





<font size=2 color=blue
face=Arial>CurEq =
Equity(1);





<font size=2 color=blue
face=Arial>d





-----Original Message-----
From: dingo
[mailto:dingo@xxxxxxxxxx] 
Sent: Tuesday, May 20, 2003<font
face=Tahoma> <font
 face=Tahoma>3:36 PM<font
face=Tahoma>
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Parameters
Optimized per Ticker



<font size=2 color=blue
face=Arial>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 size=2
face="Times New Roman"> 





<font size=2 color=blue
face=Arial>I've
attached 2 files to this message to give you an idea.





<font size=2
face="Times New Roman"> 





<font size=2 color=blue
face=Arial>d





-----Original Message-----
From: dadsharktx
[mailto:rblack@xxxxxxx] 
Sent: Tuesday, May 20, 2003<font
face=Tahoma> <font
 face=Tahoma>2:36 PM<font
face=Tahoma>
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Parameters
Optimized per Ticker

<font size=2
face="Courier New">If I have optimized parameters
for individual stocks, is there a way <font
face="Courier New">
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.

Rick



Send BUG REPORTS to bugs@xxxxxxxxxxxxx<font
face="Courier New">
Send 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.




<font size=2
face="Times New Roman">

Send BUG REPORTS to
bugs@xxxxxxxxxxxxx
Send 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.




<font size=2
face="Times New Roman">



Send
BUG REPORTS to bugs@xxxxxxxxxxxxx<span
>
Send 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.