import json chart = { I'm not sure what you're talking about. I'm not sure. I'm going to test the API: Chart I'm not sure. The y-axis is: { I'm going to try to get a copy of this. The value of the pump: 4520, It's called the "red rose". The width of the screen: 2. I'm not sure. In addition to the above, we also have a number of other projects that we are working on. Align button: Align center button I'm not sure. ♪ I'm going ♪ This is the first time I've seen this video. In addition, the report also highlighted the importance of the use of the term "green" in relation to the use of the term "green". The width of the screen: 2. I'm not sure. It's not just about the people who are in charge of the country. Align button: Align center button I'm not sure. I'm going to go. I'm not sure. I'm going to go with a little bit of this, but I'm not going to go with this. It's called the "Candlestick" or "Candle". The name of the project is: "Current cycle of the project". I'm not going to say that I'm not. I'm not sure what you mean. I'm going to go. I'm not sure.
preTime = 0
def main (:
Global chart # remember to reference global
Log ((exchange.GetAccount))
Exchange.SetContractType ((
records = exchange.GetRecords()
while((records is None) or len(records) < 30):
records = exchange.GetRecords()
LogStatus("records.length:", len(records))
Sleep(1000)
ext.PlotRecords(records, 'OK期货');
ext.PlotLine('dif', 0, records[len(records) - 1].Time)
ext.PlotLine('dea', 0, records[len(records) - 1].Time)
chart = ext.PlotLine('macd', 0, records[len(records)- 1].Time)
# 修改指标线 坐标轴Y轴
for key in ChartObj.series:
if(ChartObj.series[key].name == 'dif' or ChartObj.series[key].name == 'dea' or ChartObj.series[key].name == 'macd'):
ChartObj.series[key].yAxis = 1
chart.update(ChartObj)
chart.reset()
while(true):
records = exchange.GetRecords()
if(len(records) > 50):
ext.PlotRecords(records, 'OK期货')
MACD = TA.MACD(records)
dif = MACD[0]
dea = MACD[1]
macd = MACD[2]
if preTime != records[records.length - 1].Time:
ext.PlotLine('dif', dif[dif.length - 2], records[records.length - 2].Time)
ext.PlotLine('dea', dea[dea.length - 2], records[records.length - 2].Time)
ext.PlotLine('macd', macd[macd.length - 2], records[records.length - 2].Time)
ext.PlotLine('dif', dif[dif.length - 1], records[records.length - 1].Time)
ext.PlotLine('dea', dea[dea.length - 1], records[records.length - 1].Time)
ext.PlotLine('macd', macd[macd.length - 1], records[records.length - 1].Time)
preTime = records[records.length - 1].Time
else:
ext.PlotLine('dif', dif[dif.length - 1], records[records.length - 1].Time)
ext.PlotLine('dea', dea[dea.length - 1], records[records.length - 1].Time)
ext.PlotLine('macd', macd[macd.length - 1], records[records.length - 1].Time)
LogStatus("records.length:", records.length, records[records.length - 1])
Sleep(1000)
The grassThe wrong information posted