def buy(coordinate,current_price,quantity):
    "only maxtrade -still need editing"
    pyautogui.moveTo(20,coordinate)
    pyautogui.click()
    pyautogui.hotkey('shift','f1')
    time.sleep(0.5)
    pyautogui.moveTo(780,373) #quantity box
    pyautogui.click()
    pyautogui.press('delete')
    pyautogui.typewrite(quantity)
    pyautogui.moveTo(1060,406,duration=0.5) #order extension arrow
    pyautogui.click()
    pyautogui.moveTo(1060,493)  #select brkt +tsl
    pyautogui.click()
    time.sleep(0.5)
    """
    book_profit = 
    stop_loss = 
    limit_loss = 

    """
    pyautogui.moveTo(400,540,duration=0.5) #book profit area 
    pyautogui.clcik()
    pyautogui.press('delete')
    pyautogui.typewrite(book_profit)
    pyautogui.moveTo(500,540,duration = 0.5) #stop loss area
    pyautogui.click()
    pyautogui.press('delete')
    pyautogui.typewrite(stop_loss)
    pyautogui.moveTo(600,540,duration=0.5) #limit loss area
    pyautogui.clcik()
    pyautogui.press('delete')
    pyautogui.typewrite(limit_loss)
    pyautogui.moveTo(880,540,duration = 0.5) #place buton
    pyautogui.click()
    time.sleep(0.5)
    pyautogui.moveTo(530,470,duration = 0.5) #confirm button
    pyautogui.click()
Пример #2
0
def buy(coordinate,current_price,quantity):
    "only maxtrade -still need editing"
    pyautogui.moveTo(20,coordinate)
    pyautogui.click()
    pyautogui.hotkey('shift','f1')
    time.sleep(0.5)
    pyautogui.moveTo(780,373) #quantity box
    pyautogui.click()
    pyautogui.press('delete')
    pyautogui.typewrite(quantity)
    pyautogui.moveTo(1060,406,duration=0.5) #order extension arrow
    pyautogui.click()
    pyautogui.moveTo(1060,493)  #select brkt +tsl
    pyautogui.click()
    time.sleep(0.5)
    """
    book_profit = 
    stop_loss = 
    limit_loss = 

    """
    pyautogui.moveTo(400,540,duration=0.5) #book profit area 
    pyautogui.clcik()
    pyautogui.press('delete')
    pyautogui.typewrite(book_profit)
    pyautogui.moveTo(500,540,duration = 0.5) #stop loss area
    pyautogui.click()
    pyautogui.press('delete')
    pyautogui.typewrite(stop_loss)
    pyautogui.moveTo(600,540,duration=0.5) #limit loss area
    pyautogui.clcik()
    pyautogui.press('delete')
    pyautogui.typewrite(limit_loss)
    pyautogui.moveTo(880,540,duration = 0.5) #place buton
    pyautogui.click()
    time.sleep(0.5)
    pyautogui.moveTo(530,470,duration = 0.5) #confirm button
    pyautogui.click()
    pyautogui.click()
    pyautogui.press('delete')
    pyautogui.typewrite(quantity)
    pyautogui.moveTo(1060,406,duration=0.5) #order extension arrow
    pyautogui.click()
    pyautogui.moveTo(1060,493)  #select brkt +tsl
    pyautogui.click()
    time.sleep(0.5)
    """
    book_profit = 
    stop_loss = 
    limit_loss = 

    """
    pyautogui.moveTo(400,540,duration=0.5) #book profit area 
    pyautogui.clcik()
    pyautogui.press('delete')
    pyautogui.typewrite(book_profit)
    pyautogui.moveTo(500,540,duration = 0.5) #stop loss area
    pyautogui.click()
    pyautogui.press('delete')
    pyautogui.typewrite(stop_loss)
    pyautogui.moveTo(600,540,duration=0.5) #limit loss area
    pyautogui.clcik()
    pyautogui.press('delete')
    pyautogui.typewrite(limit_loss)
    pyautogui.moveTo(880,540,duration = 0.5) #place buton
    pyautogui.click()
    time.sleep(0.5)
    pyautogui.moveTo(530,470,duration = 0.5) #confirm button
    pyautogui.click()
Пример #4
0
    pyautogui.click()
    pyautogui.press('delete')
    pyautogui.typewrite(quantity)
    pyautogui.moveTo(1060,406,duration=0.5) #order extension arrow
    pyautogui.click()
    pyautogui.moveTo(1060,493)  #select brkt +tsl
    pyautogui.click()
    time.sleep(0.5)
    """
    book_profit = 
    stop_loss = 
    limit_loss = 

    """
    pyautogui.moveTo(400,540,duration=0.5) #book profit area 
    pyautogui.clcik()
    pyautogui.press('delete')
    pyautogui.typewrite(book_profit)
    pyautogui.moveTo(500,540,duration = 0.5) #stop loss area
    pyautogui.click()
    pyautogui.press('delete')
    pyautogui.typewrite(stop_loss)
    pyautogui.moveTo(600,540,duration=0.5) #limit loss area
    pyautogui.clcik()
    pyautogui.press('delete')
    pyautogui.typewrite(limit_loss)
    pyautogui.moveTo(880,540,duration = 0.5) #place buton
    pyautogui.click()
    time.sleep(0.5)
    pyautogui.moveTo(530,470,duration = 0.5) #confirm button
    pyautogui.click()