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

[amibroker] Displaying correct indicator setting dependant on which symbol is loaded?



PureBytes Links

Trading Reference Links

Hi,
I 've a formula that maps the daily open on Forex & places price bands around the open. 
For all 4 decimal crosses the band is set to 0.0005 but for JPY crosses this has to be 
0.5. How can I have AFL select the right value dependent on which symbol is being 
displayed?
eg.
For 4 decimal crosses such as GBP/USD etc

Plot(dao,"Daily Open",colorDarkBlue,styleNoRescale +8+16); //
Plot(dao + 0.0050,"",colorBlueGrey,styleNoRescale + 8 + 16); //daily Open bands +ve
Plot(dao - 0.0050,"",colorBlueGrey,styleNoRescale + 8 +16);//daily Open bands -ve

For 2 decimal crosses - USD/JPY etc

Plot(dao,"Daily Open",colorDarkBlue,styleNoRescale +8+16); //
Plot(dao + 0.50,"",colorBlueGrey,styleNoRescale + 8 + 16); //
Plot(dao - 0.50,"",colorBlueGrey,styleNoRescale + 8 +16);


thanks 




------------------------ 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/