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

[amibroker] AFL syntax Plot question



PureBytes Links

Trading Reference Links

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); 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/