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

[amibroker] Re: Export to ASCII



PureBytes Links

Trading Reference Links

Terry thanks

I'll use the {{INTERVAL}} param and see what comes up

Costas



--- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxx> wrote:
>
> Title = "{{INTERVAL}}";
> 
>  
> 
> Which gives the interval set by the VIEW menu. 
> 
>  
> 
> If, for example, you use
> 
>     TimeFrameSet(in15Minutes);
> 
> in your code, this is NOT reflected in the {{INTERVAL}} statement, but
> if you do this, then you know the timeframe yourself :-)
> 
>  
> 
> You could use this code to switch time frames and use the TF string
> variable to append to the filename:
> 
>  
> 
> ///////////////////////////////////////////////////////// What TimeFrame
> are we using?
> 
> TF = ParamList("Time Frame:","5|15|30|60|Daily",1);
> 
> if (TF == "5")
> 
> {
> 
>     TimeFrameSet(in5Minute);
> 
> }
> 
> else if (TF == "15")
> 
> {
> 
>     TimeFrameSet(in15Minute); 
> 
> }
> 
> else if (TF == "30")
> 
> {
> 
>     TimeFrameSet(in30Minute); 
> 
> }
> 
> else if (TF == "60")
> 
> {
> 
>     TimeFrameSet(inHourly); 
> 
> }
> 
> else TimeFrameSet(inDaily);
> 
> --
> 
> Terry
> 
>  
> 
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
> Behalf Of cyclicaltrader
> Sent: Friday, August 18, 2006 07:35
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Export to ASCII
> 
>  
> 
> Hi,
> 
>  
> 
> I want to export to ASCII from different timeframes.  I have the
> 
> scripts that exist in the Knowledge Base and I also saw the code that
> 
> is included with the software that saves to .csv files.
> 
>  
> 
> The problem is that both write to a file name that is the symbol name
> 
> and can not tell the difference in the timeframe.  So when I download
> 
> the daily chart is saves to XYZ.csv and when I download the 15m chart
> 
> is saves with the same name again.
> 
>  
> 
> Is there any way to tell (through code) when type of timeframe the
> 
> data is being extracted so I can attach an extension to the file name?
> 
>  
> 
> Thanks
> 
>  
> 
> Costas
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> Please note that this group is for discussion between users only.
> 
>  
> 
> To get support from AmiBroker please send an e-mail directly to 
> 
> SUPPORT {at} amibroker.com
> 
>  
> 
> For other support material please check also:
> 
> http://www.amibroker.com/support.html
> 
>  
> 
>  
> 
> Yahoo! Groups Links
> 
>  
> 
>     http://groups.yahoo.com/group/amibroker/
> 
>  
> 
>     amibroker-unsubscribe@xxxxxxxxxxxxxxx
> 
>  
> 
>     http://docs.yahoo.com/info/terms/
>