parsing imported ascii data in correct timestamp 8.+

flyingdutchmen

Junior member
Messages
10
Likes
0
after having spendet an huge amount of time googling and viewing tradestations help video's i have not yet found a solution to my problem.

i built a small database by hand updating hourly data from oanda in an txt file as oanda doesnt have a quik and cheap way to acess their data but i cant seem to find a way to make tradestation parse this hourly data into higher timeframes (ie 3hour 4 hour etc) using the 00:00 hour bar as first bar of each timeframe.

it does parse automaticly but 12 hour bars keep giving me an start-point of 01:00 and 13:00 for example instet of 00:00 and 12:00

stuff i tried: custexch.txt file adjust time code, built bars on natural hours, built on exchange hours, played around with the attributes.ini file


basicly what i am trying to achieve is make all timeframes no matter what timeframe it is to start with the 00:00 hour bar (my time, that is gmt+1).
for example if i open a 12 hourly bar chart and its sunday has only 4 hours in it it should use these 4 hours to complete 1 bar untill its monday and this monday's 00:00 bar should be used as first bar of that day

i should perhaps notice i am GMT+1

does someone perhaps have an idea ?

EDIT: here a sample of the attributes.ini, custexch.txt and data file..

custexch.txt:
CUSTOME, 48

attributes.ini:
SYMBOL,CATEGORY,DATE FORMAT,EXCHANGE,PRICE SCALE,MINIMUM MOVEMENT,BIG POINT VALUE,SESSION 1 START TIME,SESSION 1 END TIME,SESSION 1 DAYS
DEFAULT,FOREX,YYYYMMDD,CUSTOME,1/100000,1,1,0000,0000,UMTWRFS

data:
20101104,2100,1.42406,1.42208,1.41933,1.42074,0
20101104,2200,1.42074,1.42184,1.41999,1.42173,0
20101104,2300,1.42173,1.42175,1.42091,1.42131,0
20101105,0000,1.42131,1.42488,1.42106,1.42285,0
20101105,0100,1.42285,1.42290,1.41960,1.41992,0
20101105,0200,1.41992,1.42134,1.41946,1.42072,0
20101105,0300,1.42072,1.42116,1.42015,1.42102,0
 
Last edited:
EOB = end of bar, so the 2100 bar on a 1 hour chart is the bar that starts at 20:00:00 and ends at 20:59:59.999 etc.
 
Top