dededdew
This commit is contained in:
@@ -130,10 +130,10 @@ class WeexTransaction:
|
||||
time.sleep(1)
|
||||
|
||||
if self.direction == "long":
|
||||
self.page.ele('x://*[@id="guide-order-type"]/div[9]/div/div[1]').click()
|
||||
self.page.ele('x://*[@id="guide-order-type"]/div[10]/div/div[1]').click()
|
||||
|
||||
if self.direction == "short":
|
||||
self.page.ele('x://*[@id="guide-order-type"]/div[9]/div/div[2]').click()
|
||||
self.page.ele('x://*[@id="guide-order-type"]/div[10]/div/div[2]').click()
|
||||
|
||||
def action(self):
|
||||
|
||||
@@ -171,9 +171,6 @@ class WeexTransaction:
|
||||
new_price_datas1 = sorted(new_price_datas, key=lambda x: x["id"])
|
||||
kline_1, kline_2, kline_3 = new_price_datas1[-3:]
|
||||
|
||||
self.kline_1 = self.is_bullish(kline_1)
|
||||
self.kline_2 = self.is_bullish(kline_2)
|
||||
|
||||
self.direction, signal_key = self.check_signal(prev=kline_1, curr=kline_2)
|
||||
|
||||
if self.direction:
|
||||
|
||||
Reference in New Issue
Block a user