indiTraders - Forum for the Active Indian Trader  

Go Back   indiTraders - Forum for the Active Indian Trader > Tools > Software > Amibroker

fxcentralFront
Reply
 
Bookmark and Share LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 04-02-2010, 04:11 PM
shishirshah shishirshah is online now
Addicted
 
Join Date: Sep 2009
Posts: 221
Thanks: 121
Thanked 429 Times in 183 Posts
shishirshah has a spectacular aura aboutshishirshah has a spectacular aura aboutshishirshah has a spectacular aura aboutshishirshah has a spectacular aura aboutshishirshah has a spectacular aura aboutshishirshah has a spectacular aura about
Default

Originally Posted by shiree View Post
Data should be transferred in the TF you have selected. Provided the data base contains data in that TF.

Shiree Sir, the window in the automatic analysis has the data in the required format, viz.. 3:01:55, but the file that is written to the c drive has just 3:01

The data is there in amibroker, but it is not written to the file in that format
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to shishirshah For This Useful Post:
  #12 (permalink)  
Old 04-02-2010, 06:00 PM
nebujvs nebujvs is offline
Regular
 
Join Date: Mar 2009
Posts: 20
Thanks: 43
Thanked 25 Times in 11 Posts
nebujvs is on a distinguished road
Default

Originally Posted by shiree View Post
AFL below will export data to C://OHLC , create a folder OHLC in C drive.

///////////////////////////////////////////////////////////////////////////////////
_SECTION_BEGIN("data export from 28-3-2009 till now");
fmkdir( "C:\\OHLC" );
Buy = ( (DateNum() >= 1090328) AND (DateNum() <= 1100728));
//(1090328) means from 28 March 2009 to (1100728) 28 July 2010 data will be exported to C://OHLC.
for( i = 0; i < BarCount; i++ )
if( Buy[i] )
{
fh = fopen( "C:\\OHLC\\"+Name()+".txt", "a");
if( fh )
{
y = Year();
m = Month();
d = Day();
r = Hour();
e = Minute();

for( i = 0; i < BarCount; i++ )
if( Buy[i] )

{
fputs( Name() + "," , fh );
ds = StrFormat("%02.0f%02.0f%02.0f,",
y[ i ], m[ i ], d[ i ] );
fputs( ds, fh );

ts = StrFormat("%02.0f:%02.0f,",
r[ i ],e[ i ]);
fputs( ts, fh );

qs = StrFormat("%.2f,%.2f,%.2f,%.2f,%.0f\n",
O[ i ],H[ i ],L[ i ],C[ i ],V[ i ] );
fputs( qs, fh );
}
fclose( fh );
}
}
_SECTION_END();


Thank You

Can we use this AFL to export in other TF like 30 mints, 1Hrs etc.

Where we edit the TF value
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to nebujvs For This Useful Post:
  #13 (permalink)  
Old 04-02-2010, 08:48 PM
shiree's Avatar
shiree shiree is offline
indiTraders VIP
 
Join Date: Mar 2009
Location: Dehradun
Posts: 2,768
Thanks: 14,405
Thanked 9,787 Times in 2,526 Posts
shiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond repute
shiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond repute
Default

Any TF , just select the required TF in Auto Analysis>Setting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to shiree For This Useful Post:
  #14 (permalink)  
Old 07-02-2010, 10:47 AM
nebujvs nebujvs is offline
Regular
 
Join Date: Mar 2009
Posts: 20
Thanks: 43
Thanked 25 Times in 11 Posts
nebujvs is on a distinguished road
Default

Originally Posted by shiree View Post
Any TF , just select the required TF in Auto Analysis>Setting.

Hi Shiree

Hmm confused on the TF selection in the "Auto Analysis>Setting"

Pls give some details on it.

Thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to nebujvs For This Useful Post:
  #15 (permalink)  
Old 07-02-2010, 12:05 PM
shiree's Avatar
shiree shiree is offline
indiTraders VIP
 
Join Date: Mar 2009
Location: Dehradun
Posts: 2,768
Thanks: 14,405
Thanked 9,787 Times in 2,526 Posts
shiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond repute
shiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond repute
Default

Originally Posted by nebujvs View Post
Hi Shiree

Hmm confused on the TF selection in the "Auto Analysis>Setting"

Pls give some details on it.

Thanks in advance

Please somebody post a screen shot of AA setting for the benefit of nebujvs. I am not comfortable with screen capture.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 4 Users Say Thank You to shiree For This Useful Post:
  #16 (permalink)  
Old 07-02-2010, 05:49 PM
NIFTY46 NIFTY46 is offline
Regular
 
Join Date: Mar 2009
Posts: 22
Thanks: 295
Thanked 32 Times in 13 Posts
NIFTY46 is on a distinguished road
Default

May this screen shot give help. Friends in automatic Analiese window click on setting, and use that TF which u need to convert ur database, in this image i m using 15 minutes TF, when we click on scan all tick data automatic write into new folder like shiree sir write "C:\\OHLC\\" in 15 minute format, then u can make a new blank database and import all data from "C:\\OHLC\\" bye using File/ import wizard, then ur all old tick data convert in 15 minutes TF and ur ami can fly
Attached Images
File Type: png 15 minute TF.PNG (127.6 KB, 46 views)

Last edited by NIFTY46; 07-02-2010 at 05:51 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 4 Users Say Thank You to NIFTY46 For This Useful Post:
  #17 (permalink)  
Old 25-02-2010, 10:18 PM
shishirshah shishirshah is online now
Addicted
 
Join Date: Sep 2009
Posts: 221
Thanks: 121
Thanked 429 Times in 183 Posts
shishirshah has a spectacular aura aboutshishirshah has a spectacular aura aboutshishirshah has a spectacular aura aboutshishirshah has a spectacular aura aboutshishirshah has a spectacular aura aboutshishirshah has a spectacular aura about
Default

Shiree sir, even after making the changes in settings, the data thatis written to the ascii file is not giving in seconds. It has say, 15 entries for one minute.... just rhe seconds are missing, and this makes amibroker to consider just the first line of every minute
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to shishirshah For This Useful Post:
  #18 (permalink)  
Old 25-02-2010, 10:40 PM
shiree's Avatar
shiree shiree is offline
indiTraders VIP
 
Join Date: Mar 2009
Location: Dehradun
Posts: 2,768
Thanks: 14,405
Thanked 9,787 Times in 2,526 Posts
shiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond repute
shiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond repute
Default

Originally Posted by shishirshah View Post
Shiree sir, even after making the changes in settings, the data thatis written to the ascii file is not giving in seconds. It has say, 15 entries for one minute.... just rhe seconds are missing, and this makes amibroker to consider just the first line of every minute

What happens when you select TICK in TF???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 25-02-2010, 10:58 PM
shishirshah shishirshah is online now
Addicted
 
Join Date: Sep 2009
Posts: 221
Thanks: 121
Thanked 429 Times in 183 Posts
shishirshah has a spectacular aura aboutshishirshah has a spectacular aura aboutshishirshah has a spectacular aura aboutshishirshah has a spectacular aura aboutshishirshah has a spectacular aura aboutshishirshah has a spectacular aura about
Default

Originally Posted by shiree View Post
What happens when you select TICK in TF???

Sir,
The data is shown as required in amibroker scan result, but the text file does not contain the seconds.

NIFTY-I,20100201,09:00,4838.00,4838.00,4838.00,4838.00,4 9250
NIFTY-I,20100201,09:00,4842.00,4842.00,4842.00,4842.00,2 2000
NIFTY-I,20100201,09:00,4840.25,4840.25,4840.25,4840.25,3 3950
NIFTY-I,20100201,09:00,4843.00,4843.00,4843.00,4843.00,3 1350
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to shishirshah For This Useful Post:
  #20 (permalink)  
Old 25-02-2010, 11:37 PM
shiree's Avatar
shiree shiree is offline
indiTraders VIP
 
Join Date: Mar 2009
Location: Dehradun
Posts: 2,768
Thanks: 14,405
Thanked 9,787 Times in 2,526 Posts
shiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond repute
shiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond reputeshiree has a reputation beyond repute
Default

Originally Posted by shishirshah View Post
Sir,
The data is shown as required in amibroker scan result, but the text file does not contain the seconds.

NIFTY-I,20100201,09:00,4838.00,4838.00,4838.00,4838.00,4 9250
NIFTY-I,20100201,09:00,4842.00,4842.00,4842.00,4842.00,2 2000
NIFTY-I,20100201,09:00,4840.25,4840.25,4840.25,4840.25,3 3950
NIFTY-I,20100201,09:00,4843.00,4843.00,4843.00,4843.00,3 1350

Thats correct .I am getting similar data. Means second is not showing.
Just check after conversion in new data base.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to shiree For This Useful Post:
Reply

indiTraders - Forum for the Active Indian Trader > Tools > Software > Amibroker


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


fxcentralFront

All times are GMT +5.5. The time now is 07:11 PM.


iT
indiTraders.com Copyright by indiTraders