Hotkey script for das trader
However, these hotkeys require that I manually press the key combination that triggers the action. Run the script (open cmd in the directory with script enter: py script_name. I am aware that DAS provides hotkeys for moving a stoploss to breakeven.Set your dollar risk in python script (SetRisk variale).Set second key combination in python to pass into your DAS (DasStopUpdateShort and DasStopUpdateLong in following example).Short: Route=Stop StopPrice=AvgCost+Price StopType=MARKET TIF=DAY BUY=Send Route=Limit Long: Route=Stop StopPrice=AvgCost-Price StopType=MARKET TIF=DAY SELL=Send Route=Limit Set first key combination in python to start the script (StopUpdateHotkey in following example) Thanks so much for that generator to find the code for the colors KyleK29.Playing with the create trend line hotkey, I found you can specify the line color, line style, label text color, and label background color of the trend line.Download working working_das_stop script and install all the requirements above.two hotkeys are defined within a script one for activating the python part another for passing into DAS.script will put the new stop distance in Price field and hit the hotkey to send the order.Put the value back into montage and send the order using DAS hotkey. Perform calculation in python and return desired value of StopDistance. Read montage controls with python library for GUI automation pywinauto. Route=Stop Share=Pos StopPrice=50/Pos StopPrice=AvgCost-StopPrice StopType=MARKET TIF=DAY SELL=Send ĭAS scripting language doesnt support Risk/Position opperation moreover DAS API is 100$ per month Idealy should be done by the following DAS hotkey (Long):
Calculate stop distance based on current position size and set dollar risk