Search the Community
Showing results for tags 'scripts'.
Found 7 results
-
Updated: 8/8/2019 @ 12:44pm (PST) Finally out of the alpha stage and releasing this to the community, I've been using it with success. Because I had to do some musical chairs with memory I made a configuration utility as the script itself is very ugly. This is more of a BETA release for this, so if anyone wants to try this out in SIM and let me know if you have any issues with the configuration sheet or the hotkeys themselves. It's based on the work started by @fjmocke here: https://forums.bearbulltraders.com/topic/469-das-calculate-shares-based-on-account-risk/ . What it is: It's a hotkey command script that can be used to dynamically alter the share total based on: Available Buying Power (capital) Stop Location (Risk) % Account Risk OR Fixed Dollar Amount The script includes purchase power protection and won't send an order that you can not afford, it does this by calculating two factors: A - Shares You Can Afford B - Shares at Risk Parameter (e.g. $25,000 account equity, 1% risk = $250 risk, $250 * a stop distance of .10 = 2500 shares) min{A,B} = 0.5(A + B - | A - B | ) But, why male models? I just told you. /Zoolander reference You'd use this to calculate your share total based on what you're willing to risk. So instead of blindly throwing 500 shares at every setup, you can dynamically alter risked amount based on the per-trade setup. I use it on my StreamDeck (will also release the icon packs soon) with modifiers of 100%, 75%, 50%, and 25%. 100% is the A-Plus setups I see, those I have HIGH confidence in. Alternatively, if a stock has a large spread or is low-float, I may only use the 25% modifier key for those. Instructions for Configuration: Go to this link: V2.1: DOWNLOAD ^^ Recommend latest DAS version of 5.4.3.0. Requires DAS version 5.2.0.34 or above (current BETA branch as of 11/19/2018) for the physical stop portion to work. If you don't use the physical stop, you don't have to worry about it. NOTE: Thoroughly test in SIM to make sure it's doing what you expect it to do. Choose: Download the ZIP file and unzip to where you want. On "Setup & Instructions" configure your settings. Account Leverage (default for DAS is 4), this is the margin your broker gives you. Some off-shores give 6. It needs to match what is configured in DAS for proper calculations. Max Account Risk %. This is the maximum percent of equity you're willing to risk on every trade (default is 1%). You can always risk lower (more on that later). % of Total Buying Power. If you don't want to calculate based on the total buying power of 100%, you can set this to a lower percentage (example: 100,000 buying power with 60% here equals $60,000 maximum position size) Route. LIMIT, MARKET, SMRTL. Default is LIMIT. Order Bid/Ask Offset. This is the offset you use when you send the price for order, e.g. "Ask + 0.05" (meaning fill me up to 5 cents above ask) Time in Force. Default: Day+ Default Shares. This is the amount of shares you want to set as the DEFAULT SHARES for all trades (e.g. when you click a Symbol and it loads, this is the share total). You can see why this is here in the technical breakdown section below. Minimum Stop Buffer. This is an offset to the stop distance. If you set this to 0.05, it'll add 5 cents to the stop distance calculation (so if your stop distance is 0.05, it'll be calculated on 0.10). Switch to the "Hotkeys" tab. Choose your preferred style. % Risk of Equity (Dynamic) or Fixed Price (e.g. $150 risk). %Equity Risk: Use the drop down to select what you want the value to be % equity. NOTE: This is a modifier AFTER your account risk maximum %. So if you have 1% account risk, and set this to 50%, your effective account risk is 0.005 --> 0.5%. $ Fixed: Use the drop down to select what you want the value to be for dollar risk. Select "long" or "short" to flip the script's direction. Click the cell that contains the start of the command (E column) and Ctrl + C (copy). Paste it into DAS. It should look like a sample command below. Instructions for Usage: First, you must have "Double Click to Trade" turned on in Chart, Right-Click --> Configure --> Settings --> Double-click to trade. Double click the chart where you want to set a mental stop (it does not place a stop order, you can always put one in after). Hit your configured hotkey. Sample Scripts: LONG: DefShare=BP*0.98; Share=DefShare*0.25* Price * 0.01; Price = Ask - Price + 0.02;SShare = Share / Price; Share = DefShare - SShare; DefShare = DefShare + SShare; SShare = Share; SShare = DefShare - SShare; Share = 0.5 * SShare; TogSShare; ROUTE =LIMIT; Price = Ask + 0.05; TIF=DAY+; BUY=Send; DefShare = 500; SHORT: DefShare=BP*0.98; Share=DefShare*0.25* Price * 0.01; Price = Price - Bid + 0.02;SShare = Share / Price; Share = DefShare - SShare; DefShare = DefShare + SShare; SShare = Share; SShare = DefShare - SShare; Share = 0.5 * SShare; TogSShare; ROUTE =LIMIT; Price = Bid - 0.05; TIF=DAY+; SELL=Send; DefShare = 500; Technical Breakdown: DAS has basic scripting. Montage commands have access to very few read/write variables, basic operations, and only operators of addition, subtraction, division, and multiplication. To do this calculation we need additional operators (min function, and absolute function) and more memory for storage of variables. This command gets around these limitations by using user-writeable areas of memory in the program. Since DAS is written in the C++ language (from what I can tell), it's strict on what can be done in these existing memory locations. The hotkey uses the following items (plus the usual Price -- FLOAT): (Assumptions on Datatypes) DefShare -- INT (Used as a temporary variable for storage) SShare -- Unsigned INT (Behaves like an Unsigned INT in certain situations. Used as a temporary variable for storage) Share -- INT (Used as a temporary variable for storage) With the 3 INT variables, objects are moved around in memory so that we can calculate and compare with our variable limitation (be much easier if we could assign our own). To facilitate the ABS() function, we use a trick --> When a negative value is placed into an Unsigned INT it loses it's sign (thus, it becomes a POSITIVE value in memory). A more detailed technical breakdown (step by step) is located in the Configuration spreadsheet up above. Future Enhancements: If need be, I can make a step-by-step video of this entire process. I have a version that uses an AutoHotKey macro to drop a line at the stop location, I can upload that as well if people want it. ^^ Update, I discontinued this as it was too cumbersome. You had to have two sets of hotkeys for each command. I may someday revisit it if I can build out a configuration tool for it. TLDR: It does the math for you so you can risk a known amount (% or $) based on your per-trade risk position (stop distance). And yes, I'm a bit of a tech nerd. Also, longest post .. ever. Would not read again, 0/5 stars. --- KNOWN ISSUES: %Account Risk gets smaller and smaller when subsequent open positions Reason: No Equity variable, we reverse calculate equity using Buying Power. On subsequent positions, the % (e.g. 1%) calculation will be based on the available buying power and NOT the account equity. Workaround: Precalculate the %risk and use it for the $risk versions. So 1% of $25,000 equity equals $250. SSR rejection on LONG position when scaling out; rejection message (e.g. "Short marketable limit order disable due to SSR!") if using the automatic STOP trigger. Reason: DAS calculates that the position will drop below the open stop order position and reject as this can cause the position to "flip" if it was triggered. Workaround: Have a hotkey to clear the open orders (CXL ALLSYMB), clear it, scale the position (e.g. 25%). Either replace the stop or switch to a mental stop. Alternatively, you can add "CXL ALLSYMB;" to the front of the scale-out hotkeys. You just have to be cognizant to replace the stop order. Equated position size if very small (e.g. 4 or 5 shares when expected is hundreds). Reason: Wrong side was used for the order. E.g. a long hotkey is used when trying to go short. -or- Stop Distance was calculated to be a negative value (clicked too close to current price). Workaround: Be cognizant of the hotkeys used and the stop distance clicked. Clicking too close (a really tight stop) can be very dangerous if you do it inadvertently. TriggerOrder for automatic STOP placement not being sent (no stop order placed). Reason: Montage is not set to a style that doesn't allow TriggerOrder input. Styles not compatible are: Default [DAS's, if you changed it], Basic, OCO, Option, Full Fix: Use a style that is compatible, they are: Stop Order, Detail, Trigger -- I recommended using the "Stop Order" montage style. To change this, right click the montage area around where you'd enter a price and select Style --> Your Choice. --- UPDATES: 10/17/2018 - Added v.1.1 link, you'd need to use the new version to change anything. - General cleanup of the script. Added instructions for the IB issue (discussed in this thread) - NEW FEATURE: Added a new section to the Hotkeys sheet, it will now create a set up for Dynamic Scale-In hotkey commands. You'd use these by setting a scale value (say you want an additional 50% of your current position size). The hotkey will calculate the maximum share you can afford (how much you can afford at the moment) and the scale value, choosing to take the least amount. So if your current position is 1500 shares (@ $50.00) and you want to scale in at 50% your current position, it'd check if you can afford an additional 750 shares, if you can't, it'll buy the maximum you can afford. For this example, you can't afford it (if Buying Power is 100k), so it'd buy roughly $25k worth (500 shares). - CLEANUP: Cleaned up the $Dollar Risk version and removed unnecessary steps. Don't really need to replace yours if they exist, but worth noting. 10/30/2018 - Added @Michael P's suggested fixes for Excel. Configuration tool should now work in both Sheets and Excel. - NOTICE: This was a configuration tool change, no changes were made to the hotkey scripts, so no need to change any existing hotkeys. 11/19/2018 - Shortened some of the commands so we don't hit any hotkey character limit, makes them less readable, but shorter. Couldn't get them low enough to fit the montage buttons though (although removing the portions for the buying power rejection protection would likely do it). - Added a section for SELL/COVER buttons for people who just need to create those. E.g. "Sell 25% position" or "Sell 33% position". - Added @Robert H's stop suggestion. New fields on the setup page for enabling physical stops. If enabled, it'll place a MARKET or LIMIT (settings included) trigger order to go into the market once the initial order is fulfilled, these are placed at the location you double-clicked on the chart. 11/20/2018 - Added a stop-order setting to set an additional buffer for the stop price (for those that want to include or exclude the double-clicked price). - Added conditional formatting to subdue the stop settings that aren't required if you disable sending a physical stop into the market. 12/10/2018 - Added a known issues section to this post and the spreadsheet (for when a new version goes up). 12/12/2018 - Updated known issues section to include the "Montage Style" issue for TriggerOrders. 12/13/2018 - Updated to new version 1.46. Fixed a bug in the Trigger Order script which could cause it to not be interpreted by DAS's command parser on certain user settings. - Added "modifier" extra hotkeys. See instructions next to these on how to use them. - - - Set Stop to Breakeven - Long or Short - Stop Limit or Stop Market (cancels any pending orders for SYMB) - - - Set Stop to Breakeven - Bidirectional - Stop Market (cancels any pending orders for SYMB) - - - Stop - Update Price - Long or Short - Stop Limit or Stop Market (cancels pending orders, double click chart where you want stop before firing hotkey) - - - Stop - Update Price - Bidirectional - Stop Market (cancels pending orders, double click chart where you want stop before firing hotkey) - - - Stop - Update Position - Long or Short - Stop Limit or Stop Market - Replace (requires you double-click the original stop in the Orders window) - - - Stop - Update Position - Bidirectional - Stop Market Orders Only - Replace (requires you double-click the original stop in the Orders window). 8/8/2019 - New version 2.0, download the .zip file and unzip it. - Fixed an issue with some hotkey configurations that may have caused them to be inaccurate in vary rare situations. Recommend recreating your hotkeys in this new version, just to be sure. - Added Profit Target hotkeys. - Added % Scale-In Hotkeys - Added $ Risk Scale-In Hotkeys - Added Short-SSR to Long/Short dropdown for SSR hotkeys (DAS Simulator) - Added Range Order hotkeys - Added Y-Margin Scale Increase hotkey, Y-Margin Decrease, and Y-Margin Reset - Added new sheet "Example - Equity%" and "Example - $Risk" to give a more workflow outlook on what is happening. - Included a ScaleOut worksheet to manually simulate what different scale percentages / scenarios look like (instructions will be in the video). ALSO: Video is done and rendering, I think it comes in at 45minutes with 3.4gigs (4k), so it'll need to be optimized before I upload it to YouTube. Will try to do it today and will update this when done. 9/10/2019 - New version 2.1 released. Just general clean up (UI) and bug fixes. - FIXED: Issue with the Scale-In $Risk hotkeys. - FIXED: Issue with the Stop Update Price long and short hotkeys> ^^ If you use either of those, please regenerate them and replace in your DAS to avoid issues. UPDATES: The majority of this side project is completed and besides a few requests I have in with DAS developers to optimize a few things, out of any major bugs or improved scripting features, I'd say this is about done. I'll provide any edge-case support as need, but I want to move on to other BBT-community projects. So what do I have cookin' for you guys, gals, and cat? You'll see a glimpse in the video of an early prototype (buggy! I programmed that in a few hours, so bugs are expected) of a DAS calculator side program. The newer version (need to finish the UI) will incorporate a lot more in ways of tools for you, including automatically calculating changes without a hotkey intervention. It also allows you to mass-process trade log .csv files you may have exported and compile it into Excel or .CSV for import into other programs. Configuration is drag/drop friendly, so rearranging your columns is as easy as click and holding. I'm also going to shift my attention to finishing my ORB-strategy research. Right now, my datapool encompasses 15000 news article, gaplists for 2011-2019, and 1second data for stocks in that range. It's a data store of roughly 80 gigs. The idea is to test for hidden signals we may not see that can indicate a potential direction of an ORB strategy (if no rare outside influence occurs, like a terrorist attack) by leveraging a consortium of machine learning algorithms to give us a higher probability of success for each day. Depending how the research works out, the end product would likely be a probability predictor for each day. I'll share the research results with the community and may incorporate some other tests as well. VIDEO: Ok, so I may have gone down an editing rabbit hole and that took longer than expected. The videos are up, came in quite long so I chunked it down. Sorry it's a tad scattered and not one-linear cohesive unit, but I tried to mark it up as best as possible. Part 1 - Config / Math - https://youtu.be/YrRrydwGyRY Part 2 - Setup, Quick Examples, Tips - https://youtu.be/pXLlWF7T6hw Part 3 - Sim Trade Example - https://youtu.be/SO9UhJh4dTc Bonus 1 - Scale/Price Excel Calc - https://youtu.be/KTr_iJ2p0TU Bonus Tips - https://youtu.be/sNHXFMoia7A
- 588 replies
-
- 58
-
- scripts
- risk management
-
(and 3 more)
Tagged with:
-
Some users asked about this in chat a while back and as I was writing up the documentation on how to do a dual-copy of DAS Trader Pro -- one version for Sim and another for Live -- I realized that it had some complexity which may have made it difficult for some end-users. So to remedy this, I wrote a script to do it for you. I did this with batch / powershell commands (it's been awhile, so not eloquent at all) so that users can see what is going on (no tomfoolery with your accounts). What Does It Do: It's a Windows 10 (if Mac users exist, your mileage may vary) script that will: Makes a mostly symbolic copy of your DAS Trader Pro install (it'll copy over the Config.cfg file, since we need to change a few things) --> If your DAS install is C:\DAS Trader Pro\ it'll create a C:\DAS Trader Pro_Sim\ folder. By default, only the theme folder and .exe exist in the new folder install (the SIM version will check for a version change on the .exe and copy it over as needed for when updates occur), the rest is symbolically linked via the file-system to the main install. This is done so that items carry over their settings (Trendlines, Desktop Layout, Hotkeys, etc.). This is beneficial because if you use the default config then all layout, chart, trendlines, hotkeys, and other options stored outside of the Config.cfg file will be the same in both versions. You can change this behavior with options (more on that in setup below). Right now, options exist for: Desktop Layout (default.dsk), and the Hotkey File (hotkey.htk). Change the background of the simulator install (for better visual recognition). [optional] Add A Sound Alert for the Simulator version when a LIVE account trade is made in it [auditory recognition]. [optional] Add a Sound Alert for the Live version when a Simulator account trade is made in it. Example Image Notes / Prerequisites: If you set your account via as part of hotkey scripts (e.g. "ACCOUNT=U#######") you will want to change those values in your hotkey.htk file and also toggle the config.ini setting for separate_hotkey_file to "separate_hotkey_file=1" (instructions below). I assume most users won't need to this do. How Do I Use It?: Glad you asked. Download the zip file linked below and then follow the instructions here. As a precaution, I recommend you make a backup copy of your DAS install. Easiest way is to go to the folder that contains your DAS install, right-click it, and select "Send to Compressed Zip" .. if your install is in C:\, you'd right-click the "DAS Trader Pro" folder there. Unzip the downloaded file to a directory. If you use the DAS default install location of "C:\DAS Trader Pro\" - and / or - wish to have the defaults, skip to step 3. If you don't use that location, continue reading this part. Go into extracted directory and edit "config.ini": Config Available: ⓐ directory=C:\DAS Trader Pro This is the location of your DAS install. By default, it's C:\DAS Trader Pro as that is the DAS default. ⓑ separate_desktop_file=0 This is if you want to have separate Desktop.dsk files for SIM and LIVE. By default, it's the same layout. To use separate desktop files, set this as: separate_desktop_files=1 ⓒ separate_hotkey_file=0 This is if you want to have a separate Hotkey.htk file for SIM and LIVE. By default, it's the same file. To use separate hotkey files, set this as: separate_hotkey_file=1 ⓓ add_sound_alerts_sim=0 This is if you want to have a sound alert added to your DAS SIM, for this to work properly there will be additional setup (see section "Sound Alerts - SIM Account"). What it does is add an audible alert if you trade with your LIVE ACCOUNT in the SIM ACCOUNT. To use, set to: add_sound_alerts_sim=1 ⓔ add_sound_alerts_live=0 This is if you want to have a sound alert added to your DAS LIVE, for this to work properly there will be additional setup (see section "Sound Alerts - LIVE Account"). What it does is add an audible alert if you trade with your SIM ACCOUNT in the LIVE ACCOUNT. To use, set to: add_sound_alerts_live=1 Right Click "Setup.bat" --> Run-As Administrator a) On Windows Admin Prompt Click "Yes" b) On the command window that opens, make sure it does not give an error. If prompted, type the letter "Y" and hit enter. c) If no error messages, hit enter again to close the command window. Launch DAS using the shortcut created on the desktop as "DasTrader - SIM Account" --> Under ... Blue w/ S is the SIM account. Yellow w/ L is the Live account. You're not done ... go to Additional Setups section. Additional Setup: There's some brief changes we need to make within DAS for this to work properly. Open the "LIVE" version of DAS (the yellow icon). Login and on the top menu bar select "Setup" -> "Order Templates" On the "Account" box, select your LIVE account (for IB users it's likely something like U#######). Hit "Apply This Setting To All Exchanges." [optional] If you enabled the SIM trade in Live Account alert in config.ini, read the next line, otherwise skip to #5. For the Alert to work, go into Top Menu Bar -> Tools -> Alert & Trigger -> Double Click "WARN-LIVEACCOUNT" -> Double Click the "Value" box next to the "Acc" item (it should say "U1111111") -> Set this to your LIVE account. Image helper here. Close DAS. Open the "SIM" version of DAS (the blue icon). Login and on the top menu bar select "Setup" -> "Order Templates" On the "Account" box, select your SIM account (for IB users it's likely something like TRIBT####). Hit "Apply This Setting To All Exchanges." For the Alert to work, go into Top Menu Bar -> Tools -> Alert & Trigger -> Double Click "WARN-SIMACCOUNT" -> Double Click the "Value" box next to the "Acc" item (it should say "U1111111") -> Set this to your SIM account. Image helper here. Close DAS. Download: v1.00 - 1/14/2020 - outdated .. v1.01 - 8/7/2020 - DAS_DASSim_Separation_Script_V1.1.zip Changelog: v1.00 - 1/14/2020 - Release of initial script. v1.01 - 8/7/2020 - Quick rework of the script to be in its own .EXE, this may help with any issues for permissions. Known Issues: v1.00 - 1/14/2020 - My father never really played catch with me as a child, but besides that, there doesn't seem to be any that I'm aware of with the script at the moment. /joke
- 9 replies
-
- 5
-
- simulator mode
- helpers
-
(and 2 more)
Tagged with:
-
Hi everyone, I've been searching the forum for a while today, and am a bit overwhelmed by how much content there is, regarding hotkeys. I'm not sure if I have used the best search terms, but so far I have not been able to find what I was hoping to find. Here's what I'd like to be able to do: Double click on the chart in DAS, to select the appropriate stop loss level Press a hotkey to enter (long or short) with a fixed number of shares The hotkey will place the long / short order and the stop loss order I believe this (in theory) is pretty similar to hotkeys I've used before, where I specify a stop loss level to lock in a fixed technical risk, and adjust my position size accordingly, except I want this to use a fixed number of shares and a user specified stop loss level. Does such a script already exist?
-
Hi, I love Kyle's Das Equalizing Hotkey.... I am totally clueless about scripting. I want so badly to set a trigger limit Ask Buy with the equalizing hotkey stops all calculated so that i am waiting for the price to trigger (example during a breakout). However for the current Kyle's Das Equalizing Hotkey, once you execute the hotkey, the price gets immediately triggered. I would want to engage anyone who could help for a fee. Really really appreciate. Thank you. Important Hotkey for Day Traders: EQUALIZED RISK PER TRADE on DAS Trader Pro - YouTube (Btw Kyle if you are reading this...i love your hotkeys so much...am forever grateful )
-
IMPORTANT NOTICE - 2021/12/08: I've noticed some major issues with interacting with DAS this way - a method I usually try to avoid at all costs, the User Input layer - where the script misfires and ends up interacting with the montage (in my test case, it canceled a bunch of Open Orders I had in place, including my stops), I feel that this is too major of a potential issue to recommend. Because of that, I do NOT recommend using this script. If there's enough interest (added a poll), I may replace it with a proper program that doesn't have to interact with DAS via the User Input layer. I'm leaving the script linked for REFERENCE ONLY. If you still feel that a utility like this is useful and want to see me create a better (and much safer) way of doing it, please vote in the poll. ----------------- Okay, I think I've got this in a decent enough state for an initial release, so here it goes, hopefully we don't break anything and if we do, I'm not responsible. Might not be the most elegant because it's using AHK's script syntax and I'm not that familiar with it ... in fact, I'm not fond of it. What it is: It's an AutoHotkey script that will detect if DasTrader.exe is running and then send a sequence of commands to export the Trade Logs (Orders, Tickets, Trades). This can be further automated using Windows Task Scheduler (instructions below). By default, the save-to folder is in your My Documents \ TradeLogs \ YYYY-MM-DD, but this can be changed by editing the top line of the script (see Config section below). As a note, if DAS is not found to be running it will try to start and login before proceeding. It uses the machines local DATE, so be aware of that as your exports will save to a date relative to the local timezone. Instructions for Configuration: VIDEO Tutorial: This script was covered in the 11/22/2021 Monday Tech Class, which can be found here (when it goes up): https://bearbulltraders.com/course/technology-monday/lesson/kyles-tech-webinars-2/ For the script to run, you'll need to download AutoHotkey from https://www.autohotkey.com Run the installer and choose "Express" install, unless you know what you're doing. Download the relevant script file here: Disclaimer: The following script is provided for REFERENCE ONLY and is not recommended for use at this time. If you choose to do so please note that you do it on your own accord. No warranties/guarantees and it is unsupported. v1.0: DOWNLOAD (Please see the warning at the top of this post) Unzip the download to a folder of your choosing, for simplicity sake, let's put it in a folder C:\scripts\ [you may need to create this] Now if you have DAS Trader Pro installed to C:\DAS Trader Pro\ and you don't mind the default save directory of your My Documents\TradeLogs\, you don't need to configure anymore and you can jump to the automation portion. IF you don't have DAS saved in C:\DAS Trader Pro\ or you want to change the save locations, right-click the DASExportTradeLogs.ahk file you unzipped and go to "Open With" -> "Notepad" (unless you have another txt editor of your choice, just don't use WordPad or MS Word). On the top of the file, there are two variables "logoutput" and "dasfolder", you can edit the right-hand side to a value of your choice. By default, these are set to these values: ; Default Settings logoutput = %A_MyDocuments%\TradeLogs\ dasfolder := % "C:\DAS Trader Pro\" ; Uncomment (remove semicolon) to make your own. ;logoutput := % "C:\Trade Logs\" ;dasfolder := % "C:\DAS Trader DEMO\" If you want to change these folders, uncomment the lower variables by removing the semicolon and edit between the parenthesis. Example edits below: ; Default Settings logoutput = %A_MyDocuments%\TradeLogs\ dasfolder := % "C:\DAS Trader Pro\" ; Uncomment (remove semicolon) to make your own. logoutput := % "C:\MY TRADELOGS FOLDER\" dasfolder := % "D:\MY DAS INSTALL LOCATION\" AUTOMATION: To automate this script, you need to use Windows Task Schedule Go to the Start Menu, type: Task Scheduler Once it has launched, on the right hand pane under "Actions" click "Create Task" In the dialog box that has popped up, the tab will be "General" Name: Give it a friendly name you may remember, I chose "DASTradeLogsForLoveOfKittens" Leave "Run only when user is logged on" selected Switch to the "Triggers" tab Example screenshot below: In "Triggers", select "New..." button towards bottom. Set: Begin the task to "On a schedule" Set to "Weekly" and select Monday, Tuesday, Wednesday, Thursday, Friday Under "Advanced Settings" Check: Stop task if it runs longer than: 5 minutes [type it in] Check: Enabled Hit OK Example Screenshot below: Select the "Actions" tab and hit "New..." alongside bottom. In the "New Action" dialog: Action: Start a program Program/Script box, copy and paste the following: "C:\Program Files\AutoHotkey\AutoHotkey.exe" In the "Add Arguments" box, type the location of our script and the name .. for this tutorial, we unzipped it to C:\scripts\DASExportTradeLogs.ahk Hit OK Select the "Conditions" tab and set .. Checkbox on "Start the task only if the computer is idle for:" Set to your choice, 10 minutes is a good number. Checkbox on "Wake the computer to run this task" See screenshot below: Switch to the "Settings" tab Leave checked "Allow to be run on demand" Check: "Run task as soon as possible after a scheduled start is missed" Check: "Stop the task if it runs longer than:" and set to 10 minutes Leave the rest as is, see screenshot below: Hit "OK" until you're out of the task creation screen. All done. You can test to make sure you got the parameters right by finding the task name you assigned it in the "Name" column, right-clicking, and choosing "Run". Hands off as it does it's thing. For best results, run DAS Trader and navigate to the main menu -> Trade -> Reports, then set your settings to be like the following screenshot, as a note check "Show training orders/trades" if you want to include both SIM and LIVE account (unchecked is just LIVE account). I'm sure I forgot something ... ChangeLog: 11/24/2021: Initial Release
-
@KyleK29 Thanks for this awesome hotkeys. Do you know where I can find Thor;s Free Roll hotkey. Thanks!
- 13 replies
-
- das trader pro
- hot keys
-
(and 3 more)
Tagged with:
-
Hi fellow traders. I would like to share with anyone who may find this useful or perhaps provide a helpful ‘head start’ into the world of Hot Keys. When I began to learn day trading and the importance of using hot keys, I created an editable PDF file which I would refine and develop as my trading progressed. To this day I still refer back to this chart as a constant reminder of my complex hot-key layout. One very nice thing about the PDF I am providing here is the fact that all the comment text boxes and red square boxes are ‘live and editable’. You can use this file as a head start to customize your preferred hotkeys vs. creating one from scratch. (Bit of a time saver) You will find that as you evolve your hotkeys, you will revise your PDF on the fly continuously making it more detailed and accurate for your desired use. Just a note; All I did here was take a photo of my actual keyboard and added some black space around it. I then saved a .jpg file and converted it to a PDF file. A few things I would like to point out here in hopes to answer some possible questions. This layout I am providing here is simply how I ‘personally’ have found to work for ‘my’ for my trading style. Yours can of course differ. - The text boxes Highlighted in ‘yellow’ represent the very active hotkeys I use most commonly - The colored stickers on the keyboard (purchased from a dollar store) are something I did to help me learn with clarity/confidence under pressure. Once you have used them for a while you will most likely find that you do not need colored stickers. Your hotkeys become natural to you. That day will come. - The hotkey scripts I am providing are based on using DAS trader version 5.3.0.5 (and in particular IB as my broker). Please note to ensure that you test out all your hotkeys in simulation mode before you go live. Make changes as necessary. - From my understanding and experience using hotkeys in DAS Trader Pro 5.3.0.5. Hotkeys associated with ‘stop order’ like actions DO NOT work in pre-market environments. (I do not know why). So use at your own discretion and ensure to test out all of them in the simulator environment. Perhaps now that I have done this, it might be nice for other fellow traders to share their hotkey layout and what works well for them. Be nice to see other trading styles. Happy trading everyone! And good luck! Uploaded; April 20 2019 Revision: 0 DAS HotKey Layout and Shortcut Scripts REV0.pdf