Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 09/14/2019 in all areas

  1. 1 point
    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
  2. 1 point
    Since this subforum is by far the most active, we've stickied this FAQ which contains links to individual posts. This post will be updated regularly. [Last updated: May 17, 2021] DAS Trader Downloads DAS Trader Pro Production Releases for Interactive Brokers DAS Trader Pro Production Releases for CMEG BBT DAS Simulator Production Release (ONLY IF YOU GOT DAS SIM THOUGH BBT) When doing an install of a new version, it is always a good idea to back up your settings! DAS Trader Pro references, education and support OFFICIAL: DAS INC DAS TRADER PRO - DEMO Tutorial - How to Correctly Use DAS Trader Pro User Guide and Manuals DAS Trader Official YouTube Channel DAS Weekly Free Q&A Webinar DAS Trader Pro Knowledge Base DAS Trader Pro Risk Control explained in Knowledge Base. Common DAS Trader errors No More Order Server to Connect’ error message ‘Wrong Trader’ error message “Lost Connection to Quote Server” error message General Where can I subscribe for DAS Trader Pro live account for Interactive Brokers? How to Change Your Equity and Buying Power in Simulator How to Switch Between Live and Demo Accounts Update/Upgrade DAS To Latest Version Understanding the DAS Account Report DAS Deluxe Package - Switching Options L2 for ARCA Book DAS Trader on MAC OS also see DAS Trader FAQ > 5. SYSTEM REQUIREMENTS How to link symbol selection in Trade Ideas to DAS How to set a price alert in DAS How to add Audio Alerts in DAS How to Configure DAS Mobile for Android or iPhone Definition of Time and Sales Flags How to use the DAS Risk Control Page List of Index tickers (SPY, DJIA, NASDAQ, RUSSELL, etc.) How to Make a Pre-Market Scanner in DAS DAS Trader Videos Playlists in YouTube DAS Trader Tutorials (basic DAS Trader configuration) DAS Trader Pro Instructional Videos (Advanced DAS Trader Features) Market Replay Mode How to use new DAS Trader Market replay feature Montage, Windows, and Layouts How to Make Your Custom Layout Load as Default on Startup How to link Montage to Time&Sales and Charts? How To Setup Multiple Monitors in DAS How to Duplicate a Montage, Chart or Other Window Montage / Level 2 color and shade settings How to Quickly Add Rows to Watchlist (Market Viewer) How to Change Order Button Colours (BUY, SELL, SHRT, CXL, RPL) Select Active Montage to Trade Definition for each of the Level 1 (L1) fields at top of Montage How to select the montage before placing a trade How to use the New L2 Highlight Feature in DAS Trader (YouTube video) Charts [VIDEO] How to configure charts in DAS Trader Pro: Education Center How to Add Index Tickers for SPY, DOW, NASDAQ DAS Trader Tutorial – Make Your Chart Look Like Andrew's How to Add Average Line to Volume Study How to Drag and Drop Horizontal Lines How to Transfer Price Levels to Another Chart Drawing Support and Resistance Lines in DAS How to add previous day close (PCL), high of day (HOD) & low of day (LOD) How to Prevent Chart from Zooming out When Switching Symbols How to Add/Remove Trade Icons on the Chart Show trade info on chart (triangle click) How to Increase Y-Axis Scale to See More Price Levels / This can now be done with the newer versions (5.4.0.0+) of DAS using hotkeys Change Default Number of Candles How to add Relative Strength Index (RSI) to Chart How to Draw a Diagonal or Sloping Line How to Change font size in Chart How to add separator line for Pre-Market (Open) and After-Hours (Close) How to correct short/small candlesticks by excluding Studies from Y-Axis Scale (Y LOW, YY HIGH, etc). How to Zoom in on Specific Area of Chart Why is VWAP sometimes different between 1-minute chart, 5-minute chart, and/or Montage? How to add vertical lines on 1-minute chart to show each 5-minute period How to add Average True Range (ATR) to DAS Daily Chart How to add and use Volume by Price study How to add bid & ask to your charts How to add RVOL in DAS? Exceeded max number of global trend lines Order Entry Placing Orders in DAS Trader Pro Trailing Stops How to Lock Your Montage How to set a Bracket aka Range aka OCO order (includes hotkeys) Hotkeys and Hotkey Buttons - Always test your Hotkeys in simulator Most frequently used hotkeys Terminology Clarification: Hotkeys vs Hotkey Buttons Programming hot key for stop loss Buy/Sell Hotkeys for Automatic Stop Loss How to Create HotKey Buttons on the DAS Montage Level 2 Window Hotkeys for Flipping Position Hotkey for buying based on a percentage of Buying Power How to Adjust Montage Hotkeys Button Size What does the Panic hot key do? How to set up hotkeys for trailing stops Hotkeys for adjusting share size How to create hotkey which launches Finviz page for a selected stock Hotkey for automatic share size based on max dollar loss Hotkey for automatic share size based on % loss of account How to short stocks in SSR: see here and here Thor´s Freeroll Hotkey DAS Trader Pro Support Live Chat Support Das Trader contact page to send messages DAs Trader Support Email DAS Hotkey Line Style Configuration tool.
  3. 1 point
    Definitely a ton of great information, and a lot of options to think about. Luckily I still have several months left in the simulator, so I have some time to weigh my options. My biggest dilemma now is the fact that my CEMEG application was approved, so I need to decide whether or not to actually fund that within the next 30 days, or they will close the account. Parking a few thousand in there and watching it get eaten up by fees while I'm still in training is not an option, especially when I'm strongly biased towards ultimately going with IB. I believe I took the best possible action available to me today, I signed up to be a lifetime member! The 25% off using the MONTANA discount code was an offer I just could not refuse. After spending about a month looking at what is available out there, this was pretty much a no brainer. The training material alone is well worth it, and making use of the chat room is something that I could see happening even years down the road. Add to that the fact that for me, the key to real happiness is in helping others, and a lifetime membership in the chat room is a great opportunity to do just that. What more could you ask for! Now it's really time to get to work!
  4. 1 point
    I'm always interesting to join meet up's guys!!
  5. 1 point
    Friday 9/13/2019 I had a well-being score of 5/10 this morning. My daughter woke me up crying last night at 1:30am, so I am a little sluggish today. It was an interesting day. Centerpoint did send out an email stating they had IT issues yesterday. So I am assuming my order cancellation issue yesterday was due to that. I took 3 (yes 3) live trades this morning, with AAPL and BABA. I hand wrote my plan for today to help stick to it. So AAPL and BABA were on my market open watchlist with MU, AMD, and ROKU on my 5min ORB watchlist. Yes I am saying the same thing all week about the open: The setup is the same. The daily charts on both AAPL and BABA still looks interesting, maybe on the verge of a break out. I watched AAPL and BABA at the open. I had no bias on AAPL. I have seen it pop or drop with this same PM action. My premarket plan specifically stated no pullback trades on AAPL in the first minute. So I waited for a hammer. So a very powerful hammer was being formed in the first minute with AAPL. I was waiting for the hammer to become white so I could go long. Or finish the 1min candle and take a 1min ORBU, Then, while there was still a little red left, a large ask appeared about 5 cents above the current price. So I went long. My target was the $221 dollar level with a stop of 219.59 PM level. The price moved up a few cents then quickly dropped and I was S/O where planned. I probably should have been more aggressive with the S/O. Once it was apparent the 2nd 1min candle was not going to make a new high I should have exited. But generally I thought this was a good trade. Yes without the L2 signal it was a B setup. But I think with the L2 signal makes it into an A setup. For my second AAPL trade, AAPL dropped and hit support on the two daily levels. Then started to stall, making a mini ABCD. I really liked the R/R~3 so I shorted with the 218.16 daily level as my target and 219.59 PM level as my stop. The price quickly dropped and I took a small partial. I was hoping this would run so I was not in scalping mode. Then I waited 3 minutes and saw SPY really starting to spike up. So I took another small partial profit. Only took a small partial since the 1min chart the candles were making LH/LLs. Then the price rushed up quickly. I exited when it broke the 219.32 level. There was a bit of a slide, so I think this trade was a loss as well. I didn’t consciously take a third trade. There was no internal fight or revenge, I just didn’t think about rules at all I just took 3 trades. Since they all were overlapping in time it might not have felt like it at the time. I remember taking each trade, but I was surprised to see 3 live trades were taken at the end of the session. BABA was interesting. It dropped for 45 minutes in the PM then only the last 10min it popped back up. The price went higher at the open. Then 25 seconds after the open a HUGE buy order went through: What was interesting is the market really didn’t care and the price started to aggressively drop. So it felt like the sellers were in control if they were ignoring such a large buy. So I took the lack of interest of the huge buy as a bearish signal. I could be very wrong, since I have never used that signal before. There were lots of levels below the current price. But I thought if it could break through them all (all the MAs including the 200MA-1min, VWAP and the 173.02 daily level) I would go short. The price did and I went short. I took half share size since I never used a signal like this before. My target was PDC with my stop at VWAP. I also liked the daily level in the way so it could help pull the price toward it. The price dropped a little, not enough to take a partial. The next 1min candle was an inverted hammer still giving me hope. Then the price made a clear break of VWAP and I got stopped out. If you have any insight on this trade let me know. I am still not sure how wise it was to use the large buy as a bearish signal. Then I over traded in SIM. I am left with a bad feeling about my trading session because of it. Score card (live trades): AAPL AAPL BABA 91% 90% 91% What I did good today: I really like my three live trades I took today. Since they all were losses it has left me wondering if they were really good. What I am grateful from today? I kept my eye on the tape. What do I need to improve on: Take less SIM trades. I think I will lock myself into 3 SIM trades max from now on.
  6. 1 point
  7. 1 point
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.