本文整理汇总了Python中TicksUtile.create_state_files方法的典型用法代码示例。如果您正苦于以下问题:Python TicksUtile.create_state_files方法的具体用法?Python TicksUtile.create_state_files怎么用?Python TicksUtile.create_state_files使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TicksUtile
的用法示例。
在下文中一共展示了TicksUtile.create_state_files方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: int
# 需要导入模块: import TicksUtile [as 别名]
# 或者: from TicksUtile import create_state_files [as 别名]
recentsigs =[]
rpu_rp.WriteArrayToCsvfile(sigarea +today+'.sigs.csv', []) # flush the file to keep all sigs
for sym in symbol_list:
rpu_rp.WriteArrayToCsvfile(sigarea +sym+'.sigs.csv', []) # flush the file to keep all sigs
TicksUtile.prepare_tickfilesto5secBars(today,sym) ## merge the 5secddload with 5sec recents > 5sec boths
####################################
for barsize in barlist :
timeframe = bardict[barsize]
durinseconds = secdict[barsize]
barsizeNtimeframe = timeframe + barsize
decimalboost = dboostdict[sym]
dur = barsize
TicksUtile.assemble_dur_bars(today,sym,dur,durinseconds)
DurBoth = rpu_rp.CsvToLines( DataDown+ today + '.'+sym+'.' + dur.replace(' ','') + '.both.csv')
indicator = 'MACROSS'
TicksUtile.create_state_files(today,sym,dur,indicator)
indicator = 'MCDiv'
TicksUtile.create_state_files(today,sym,dur,indicator)
indicator = 'price'
TicksUtile.create_state_files(today,sym,dur,indicator)
####################
macross = rpInd.process_ticks(DurBoth,sym,barsize)
macdTriggers = rpInd.Trigger_MACD(DurBoth,sym,barsize)
macd = macdTriggers
lline = rpu_rp.tail_array_to_array(macross,1)
## print lline
## statearray =[]
state = ((lline[0])[5])
sigbart = ((lline[0])[0])
sigbart_epoch = int(time.mktime(time.strptime(sigbart, spaceYtime_format)))