PureBytes Links
Trading Reference Links
|
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 face=Arial color=#0000ff
size=2> <FONT face=Arial
color=#0000ff size=2>
ticker = Name();
SLevel = 9999;
if (ticker == "AD")SLevel = 22;if (ticker ==
"BEZ")SLevel = 30;if (ticker == "CAM")SLevel = 55;if (ticker ==
"CUNO")SLevel = 15;
Blevel = -SLevel;SLevel = SLevel;
// your code to calc buys, etc goes here.
// Code to set buy, sell, short, cover signalsBuy = 1;Sell
=1;Short = 1;Cover = 1;Buy = Buy AND NOT (SLevel == 9999);Short
= Short AND NOT (SLevel == 9999);
CurEq = Equity(1);
<FONT face=Arial color=#0000ff
size=2>d
<FONT
face=Tahoma size=2>-----Original Message-----From: dingo
[mailto:dingo@xxxxxxxxxx] Sent: Tuesday, May 20, 2003 3:36
PMTo: 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.
|