Try this format: 1.xx875 => 1 + (xx / 100) + (875 /
100000)
----- Original Message -----
Sent: Saturday, February 05, 2005 10:03
PM
Subject: [amibroker] AFL syntax Plot
question
Any reason why this keeps giving me a syntax error at
"1.xx00" and any subsequent increments? I'm trying to plot lines based
at set intervals. These intervals will vary depending on the instrument
being displayed. I tried Plot( 1. & xx & 00, etc) but that, while
plotting, fails to plot correct scale.
xx = IIf(Name()== "GBP
A0-FX",86,IIf(Name()== "EUR A0-FX", 31,Null)); xa = IIf(Name()== "GBP
A0-FX",87,IIf(Name()== "EUR A0-FX", 32,Null)); xb = IIf(Name()== "GBP
A0-FX",88,IIf(Name()== "EUR A0-FX", 33,Null)); xc = IIf(Name()== "GBP
A0-FX",89,IIf(Name()== "EUR A0-FX", 34,Null)); xe = IIf(Name()== "GBP
A0-FX",90,IIf(Name()== "EUR A0-FX", 35,Null));
Plot(1.xx00,"",21,
styleNoRescale , 4); Plot(1.xa00,"",21,styleNoRescale ,
4); Plot(1.xb00,"",21,styleNoRescale ,
4); Plot(1.xc00,"",21,styleNoRescale ,
4); Plot(1.xd00,"",21,styleNoRescale ,
4);
Plot(1.xc875,"",33,styleNoRescale,
1); Plot(1.xc75,"",33,styleNoRescale,
1); Plot(1.xc625,"",33,styleNoRescale
,1); Plot(1.xc50,"",32,styleNoRescale ,
4); Plot(1.xc375,"",33,styleNoRescale ,
1); Plot(1.xc25,"",33,styleNoRescale
,1); Plot(1.xc125,"",33,styleNoRescale ,
1);
Plot(1.xb875,"",33,styleNoRescale ,
1); Plot(1.xb75,"",33,styleNoRescale ,
1); Plot(1.xb625,"",33,styleNoRescale ,
1); Plot(1.xb50,"",32,styleNoRescale ,
4); Plot(1.xb375,"",33,styleNoRescale ,
1); Plot(1.xb25,"",33,styleNoRescale ,
1); Plot(1.xb125,"",33,styleNoRescale ,
1);
Plot(1.xa875,"",33,styleNoRescale ,
1); Plot(1.xa75,"",33,styleNoRescale ,
1); Plot(1.xa625,"",33,styleNoRescale ,
1); Plot(1.xa50,"",32,styleNoRescale ,
4); Plot(1.xa375,"",33,styleNoRescale ,
1); Plot(1.xa25,"",33,styleNoRescale ,
1); Plot(1.xa125,"",33,styleNoRescale ,
1);
Plot(1.xx875,"",33,styleNoRescale ,
1); Plot(1.xx75,"",33,styleNoRescale ,
1); Plot(1.xx625,"",33,styleNoRescale ,
1); Plot(1.xx50,"",32,styleNoRescale ,
4); Plot(1.xx375,"",33,styleNoRescale ,
1); Plot(1.xx25,"",33,styleNoRescale ,
1); Plot(1.xx125,"",33,styleNoRescale , 1);
Check AmiBroker web page at: http://www.amibroker.com/
Check
group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
No virus found in this incoming message. Checked by AVG
Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.5 - Release Date:
2/3/2005
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
|