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

Re: [amibroker] Looking for a data vendor for commodities



PureBytes Links

Trading Reference Links









<font size=3 color=navy
face="Times New Roman">I am trying to plot 9 day
bars (as in TC2000), but the following code seems to be plotting daily bars.
Can someone help? Never really figured out the timeframe functions.

<font size=3 color=navy
face="Times New Roman"> 

<font size=3 color=navy
face="Times New Roman">Thanks

<font size=3 color=navy
face="Times New Roman">Mohan

<span
> <font
color=black>

<font
size=1 color=black face="Courier New">T = <font size=1 color=blue
face="Courier New">Param<span
>(<font
size=1 color=fuchsia face="Courier New">"per"<font
size=1 color=black face="Courier New">,<font size=1 color=fuchsia
face="Courier New">20<span
>,<font
size=1 color=fuchsia face="Courier New">2<font size=1
color=black face="Courier New">,<span
>200<font
size=1 color=black face="Courier New">,<font size=1 color=fuchsia
face="Courier New">2<span
>);

<font
size=1 color=blue face="Courier New">TimeFrameSet<font size=1 color=black
face="Courier New">( <span
>9<font
size=1 color=black face="Courier New">*inDaily
); <span
>// switch to 9
day <span
>

<font
size=1 color=black face="Courier New"> 

<font
size=1 color=black face="Courier New">MA9_3 = <font size=1 color=blue
face="Courier New">MA<span
>( <span
>C, <font size=1
color=fuchsia face="Courier New">3<span
> ); 

<font
size=1 color=black face="Courier New">MA9_9 = <font size=1 color=blue
face="Courier New">MA<span
>( <span
>C, <font size=1
color=fuchsia face="Courier New">9<span
> );

<font
size=1 color=black face="Courier New">MA9_T = <font size=1 color=blue
face="Courier New">MA<span
>( <span
>C, T);

<font
size=1 color=black face="Courier New"> 

<font
size=1 color=blue face="Courier New">Plot<font size=1 color=black
face="Courier New">( Close, <font
size=1 color=fuchsia face="Courier New">"Price"<font
size=1 color=black face="Courier New">, colorWhite,
styleCandle ); 

<font
size=1 color=blue face="Courier New">Plot<font size=1 color=black
face="Courier New">( MA9_3, <font size=1 color=fuchsia
face="Courier New">"3 bar MA of 9 day bars"<font size=1
color=black face="Courier New">, colorRed ); 

<font
size=1 color=blue face="Courier New">Plot<font size=1 color=black
face="Courier New">( MA9_9, <font size=1 color=fuchsia
face="Courier New">"9 bar moving average from 9 day bars"<font
size=1 color=black face="Courier New">, colorAqua,<font
size=1 color=fuchsia face="Courier New">4<font size=1
color=black face="Courier New"> ); 

<font
size=1 color=black face="Courier New"> 

<font
size=1 color=black face="Courier New"> 

<font
size=2 color=black face="Courier New"> <font
size=2 color=black face="Courier New">







Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Sponsor


  ADVERTISEMENT 












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 the Yahoo! Terms of Service.