Search the Community
Showing results for 'valid price'.
Found 2,451 results
-
Hey everyone, I think I’ve got this thing working. For anyone interested I’ve built a tool/model that lets the user who wants more certainty on where to set your call and put strike prices for an iron condor. the user inputs the stock ticker, current price, number of trading days and probability of risk to take on ( can adjust based on implied volatility in the market like fed decisions or earnings). if you zoom in to the top right (example) of the attached photo you will see the price range to set on an iron condor trade considering how much the given stock moves historically within your set trading days. i built this in open source R studio so this is ready to go and only requires a few packages to be installed (free). let me know if your interested cheers aaron
-
$PRICE+($TARGETR*2); this is not possible in DASTrader as it dooes not know the mathematical logics and brackets you need to do $PRICE+$TARGETR+$TARGETR instead see the log for the errors you get. there will be an error about route not being "LIMIT" etc. overall you should switch to the new syntax and forget the old one as the calculations done in the old syntax are now useless and it will be easier for you to understand what is going on rather than studying why the switches between SShare and Share are there
-
I was hoping that someone might have a hotkey script that achieves this. The scenario would be, say, a long position where you believe that the price is going to head south. You want to sell your entire position but you are concerned that the price action might turn around and continue heading north. If I have 100 shares from an entry of $10.00, with a stop at $9.80, and the price has reached $10.50 but is showing a head and shoulders pattern whilst L2 ask ladder remains strong, then I would like to sell the 100 shares at $10.50 as the price is declining, however at the same time I would like to add a stop buy order at $10.55 (Price +0.05) for the same position size. The stop position I would add back in myself, using the original trade's breakeven level (+5c!). Similarly, I would need the same for a short position where I am covering the entire position, with a new short stop sell order at 5c below the cover level. As the price falls, then I can shift that stop order closer to the price action so that if I am right on the exit, I do not lose the profit at the inflection point, but if it does reverse into the L2 ladder upside then I am ready to get back into the original trade. Here's hoping?!!!!
-
Hi Traders, I'm trying to build a hotkey that would buy 500 shares at ASK, with SMARTM route and also send a stop order out 5 cents below the avg cost (purchase price). Any help is appreciated. Thanks.
-
Few users asked about this in chat, posting here so everyone can see how I do my ATR chart. 1) Create a new "Daily" chart 2) Download the linked .zip file and unpack it. --> https://drive.google.com/file/d/12JJGdg_SOeQVM-avM7_N-pNbDRQfN2wz/view?usp=sharing 3) Right-click the chart you created in DAS and select "Import Settings" --> Select the "ATR-chart-setup.cst" file you unpacked in #2. 4) You may need to select the chart and zoom all the way in for the effect to work. 5) Move the chart and place it where you want it. As a side tip, you can right-click the border and choose to hide the title-bar (making it smaller). I do it like this to fix a few issues .. DAS's ATR study doesn't allow you to hide the line on a chart and a chart must have either a volume or price study. If the chart is small, it'll make all of these lines behind the study info, making it hard to read .. if you make the line color white, it'll make the study color white. So I use the Volume Study with the same color as the background placed above the ATR studies to "hide" the lines. You then just need to zoom all the way in (should stay), and you'll end up with just the Study Info in the upper corner. Screenshot:
- 11 replies
-
- 4
-
-
- das trader pro
- atr
-
(and 2 more)
Tagged with:
-
HELP with %risk
meatskin2000 replied to meatskin2000's topic in Day Trading Hardware, Software and Tools
i'm trying to do what you did in video, set my price for a limit entry. you said it was 2 hotkeys, so i thought i set my stop, then sl and target? -
HELP with %risk
meatskin2000 replied to meatskin2000's topic in Day Trading Hardware, Software and Tools
@peterB, thx for all your help, i have another question to see if you can help me with. right now i use a script of 1 to 3 reward, double click for SL and 3R profit target as a market order. I want to change to double click and mark my entry once price gets there, then set a 1R SL and 3R profit target. I think this is possible with a limit order but not sure. Can you help me, if it is possible. i included my script. CXL ALLSYMB;StopPrice=Price;DefShare=BP*0.975;Price=Price-Bid+0.00;SShare=139/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price=Bid-0.1;TIF=DAY+;SELL=Send;DefShare=200;Price=StopPrice-Bid*2.5;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGEMKT LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS TIF:DAY+ -
Hi all, I'm brand new here, so go easy 😃 I've inherited some hotkey script from a friend that works fine in their DAS Trader, however for me i get an error message and i'm wondering if anyone could take a look and let me know why it might be? I've created a hotkey button in my montage that i want to set my risk and buy based on that risk amount. I.e. i want to risk $5 on AMD, i'll select a stop loss price of $0.50 below my entry price, meaning the hotkey will buy for me 10 shares and set a stop loss at $0.50 below my entry. The script i'm using is: StopPrice=Price-0;DefShare=BP0.925;Price=Ask-Price;SShare=5/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5SShare;TogSShare;ROUTE=LIMIT;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.05 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; The problem i have when using the hotkey is that i seem to have the 10 shares volume entered into the 'Display' box rather than 'Shares' box, and i get the error message "Script: Invalid Share". Because this works fine on a friends DAS Trader, i suspect it's something to do with my setup of DAS, not necessarily the hotkey script itself. Has anyone experienced this before that might be able to help? Thanks.
-
SWITCH FROM DAS TO THINKORSWIM (TOS)
tashtech replied to onlyjava's topic in Day Trading Hardware, Software and Tools
Thanks for your write-up. I am in the process of switching from TOS to IKBR (trader workstation). So far TWS is horrible. My reason for moving from TOS are fill execution and price move, but if its a steep learning curve at IBKR then I might just stay with TOS. -
Hey BBT community, I wanted to share this solution for slow connections on the forum here as it's been an absolute life saver for my day trading using DAS Trader Pro. This solution requires some technical knowledge. This method works well for those of us who live outside of North America, far from the data centres in New Jersey. I trade from Sydney, Australia - there's no major city physically further from New Jersey than Sydney. (As a side note, this may also work if you have a slow computer.) Problem I get consistently get terrible network latency (ping) during the first 30 mins of the market open - to the extent DAS is not usable for about 30 mins. I would get delayed price updates 10sec (sometimes 30sec) later. The image below shows the 85sec delay on one of the bad days. The issue becomes exponentially worse the more charts and montages I have open; this is likely due to L2 data. I only trade the open, so it's quite frustrating to lose the first 30 mins due to internet issues. My Tested Solution My solution was to run DAS Trader from a windows desktop virtual machine in the cloud at a location near the NYC data centres. I would then remote desktop access into that machine. The following steps are for Google Cloud Platform (you can also use Amazon Web Services or Microsoft Azure, but I wouldn't stray from those three). Step 1) Sign up for an account with Google Cloud. Set up a virtual machine on Google Cloud. This is a youtube video showing how to set one up. Choose a beefy instance if possible; I'm using 8 CPU and 16G of RAM. Choose Windows Server Datacentre (with desktop experience) as the machine image. These machines are charged on a time-usage basis, so turn it off when you're not trading! Step 2) Set up your Windows Remote Desktop client such that the Colour setting is set to 15-bit and the Experience setting is set to 'Modem'. This will significantly reduce the bandwidth usage. Step 3) Install DAS on the virtual machine and test. The expected result is that you should experience lower latency during periods of high data flow. I don't have the bandwidth numbers but assume they are correlated for our purposes. Now, during the market open: i) the ping from my virtual machine to the exchange is 20ms ii) the ping from my home to the virtual machine is about 200ms iii) in total is much lower at about 220ms The primary trade-off is that the desktop experience is not as visually snappy. But I'll take that in a heartbeat over what I had before. Why the Solution Works This is an explanation of what's happening behind the scenes. Before: 1) The quote data was sent from New Jersey Data Centre to my laptop in Sydney. 2) My laptop would run DAS and render the charts and L2 stock data. After: 1) The quote data is now sent from New Jersey Data Centre to my virtual machine in North Virginia. 2) My virtual machine running DAS will render the charts and L2 data. 3) My remote desktop client would then connect to the virtual machine and fetch the 'video-feed'. However it's quite efficient, it will only fetch necessary on-screen changes. This is similar to watching a youtube video - but we're watching a computer desktop feed. Not every pixel on-screen is refreshed, only a fraction of the pixels are refreshed few times a second. Only the refreshed pixels are sent over the internet and repainted on my monitor at home. This efficiency saves a lot of bandwidth. As a result: With the above solution, we have minimised the amount of data that needs to physically travel hence improving our experience when using DAS. The remote desktop client screen-feed transfers much less data than raw stock data. It's difficult to verify this but I empirically suspect the bottleneck is due to the constraints relating to the underwater fibre optic cables between LA and Sydney. The reason I believe this is the case is because I had tested running a VM in the AWS Sydney region and the same issue occurred; hence my woes were unlikely to be issues with my home internet connection. A map of the submarine data cable network (as at 2015): Hope this is useful.
-
Hey, I'm having issues with hotkeys in DAS. I just want to place long or short orders for 100, 200, 300 shares etc. Then I want to be able to place a Stop Loss about 20 cents away from my position. I also use the Move Stop To Breakeven script. I also use sell/cover 5%, sell/cover all hotkeys. When I place a long order of say 100 shares, it works fine. Then I use the Add Stop Loss - 20 cents hotkey which works fine too. However, after adding this, it then changes the montage order to "Stop" permanently and I have to manually go in and change back to limit. After adding the S/L, if I press Buy 100 shares, it comes up as an OCO order. If I try to sell the 100 shares using my sell hotkey, it also comes up as an OCO. I just want to place simple orders but seems like either I'm missing something or DAS is just awkward to use. Also, after using breakeven hotkey, it does the same and rejects my order when I try to sell/cover positions. Some help would be much appreciated as the only way around this is to change ticker then change back to the ticker which I have a position in to refresh the montage, but this could lose precious seconds! Below are my hotkeys: Long 100 Shares: Route=SMRTL;Price=Ask+0.05;Share=100;TIF=DAY;BUY=SEND Short 100 Shares: Route=SMRTL;Price=Bid-0.05;Share=100;TIF=DAY;SELL=SEND Sell 5% ROUTE=SMRTL;Price=Bid;Price=Round2;Share=Pos*0.05;TIF=DAY+;SEND=Reverse Cover 5% ROUTE=SMRTL;Price=Ask;Price=Round2;Share=Pos*0.05;TIF=DAY+;SEND=Reverse Add Stop Loss -20 cents ROUTE=STOP;StopType=Market;StopPrice=AvgCost-0.20;Share=Pos;TIF=DAY+;SELL=Send; Move S/L to breakeven ALLSYMB;Route=Stop;Price=AvgCost;StopType=MARKET;STOPPRICE=AvgCost;StopPrice=Round2;Share=Pos;TIF=DAY;Send=Reverse
-
Hello, if like me you are using a simulator and you want to get a realistic idea of broker costs associated with trading, here is a Python script that will allow you to estimate fees per ticker. When I trade a ticker more then once, I divide the total transaction price in my journal. To use it, you need to copy the "trade" spreadsheet from Das Trader into the Python prompt. The calculations are based on IBKR's fixed costs. Here's a video demonstrating how to use it: I can't attach python files so here the code: # Function to get the table from the user def get_table_from_prompt(): print("Please copy and paste the table (press Enter twice to finish):") table = [] while True: line = input() if not line: break table.append(line.split()) return table # Function to calculate transaction fees def calculate_transaction_fee(num_shares, share_price): commission = round(num_shares * 0.005, 2) + num_shares * share_price * 0.000008 + min(0.000145 * num_shares, 7.27) # Apply a minimum of $1 per transaction commission = max(commission, 1.00) # Apply a max of 1% per transaction total_cost_one_percent = round(num_shares * share_price * 0.01, 2) commission = min(commission, total_cost_one_percent) # Apply maximum commission of 1% return round(commission, 2) # Get the table from the user table = get_table_from_prompt() # Dictionary to store cumulative fees per action cumulative_fees = {} # Calculate fees for each transaction and accumulate fees per action for transaction in table: time, action, transaction_type, num_shares, share_price, _ = transaction fee = calculate_transaction_fee(int(num_shares), float(share_price)) if action not in cumulative_fees: cumulative_fees[action] = 0.0 cumulative_fees[action] += fee # Display cumulative fees per action, rounded to two decimals for action, total_fee in cumulative_fees.items(): total_fee_rounded = round(total_fee, 2) print(f"For action {action}, cumulative fees are {total_fee_rounded} USD.") # Calculate and display cumulative fees for the day daily_cumulative_fees = sum(cumulative_fees.values()) daily_cumulative_fees_rounded = round(daily_cumulative_fees, 2) print(f"\nThe cumulative fees for the day are {daily_cumulative_fees_rounded} USD.") good luck!
-
Hi All, I have a question regarding hotkeys. When I place an order for example going short: ROUTE=SMRTL;Share=100;Price=Bid-0.05;TIF=DAY+;SELL=Send I then place stop loss through Double click: I then close half my position moving my stop to B/E using HK: CXL ALLSYMB;Route=LIMIT;Share=Pos*0.5;Price=Ask+0.05;TIF=DAY+;BUY=Send;ROUTE=STOP;StopType=Market;StopPrice=AvgCost;Share=Pos+share;TIF=GTC;BUY=SEND This then sells half my position, however the new order created opens a buy position of 150 shares, how do I make it so it gets 50 shares? if I then cancel this order and just want to close out my position with HK: ROUTE=SMRTL;Share=Pos;Price=Ask+0.05;TIF=DAY+;BUY=Send It doesnt close out the position at market but instead creates a different stop order closer to the stop loss i had previously. Can someone let me know what I am doing wrong? In summary what I'm trying to do is long or short x amount of shares, then double click select my stop loss, if I reach one of my targets I want to cover/sell 50% of my position and bring my stop loss to B/E, if the price continues to go in my direction I would like to close out the rest of my open position at market. Can someone help? Thanks, Mariusz
-
Good day everyone. This is Luke here, I appreciate BBT and Kyle's contribution on building the hotkeys here given in this post: But I am facing a problem.. I am trying out the code Kyle provided, one for LONG (with $5 risk), one for SHORT (with $5 risk too) But let's just talk about the LONG code. And from my understanding, 1) LONG ($5 risk, with Stop Trigger Order set to "False") - This code would NOT set a stop order for us...? correct? Please correct me if I am wrong DefShare=BP*0.97;Price=Ask-Price+0.01;SShare=5/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=400; 2) LONG ($5 risk, with Stop Trigger Order set to "True") - This code would set a stop order for us...? correct? Please correct me if I am wrong StopPrice=Price-0.01;DefShare=BP*0.97;Price=Ask-Price+0.01;SShare=5/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=400;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.3 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+; However, when I fired the hot key of 2), Yes, the go LONG order went it, with correct share sizes calculated etc, however, why did I never see any Stop order being set? FYI, I have already changed the Montage style to 'STOP ORDER". Testing environment: Both during market hour and during replay mode few hours ago, in DAS PRO 14 days Demo. Thanks!!!
-
Laptop for Day Trading Recommendation
RandyB replied to SophieDoane's topic in Day Trading Hardware, Software and Tools
Hello Sophie, I have an extensive background in Information Technology from both a career and educational perspective. Glad to weigh in on your post. You have many options to consider if you want to run the thick install of DAS Trader Pro. Given I don't know what else you are anticipating to be running in parallel on your system I wanted to establish some assumptions: - You are focused on leveraging the DAS Trader Pro thick install versus the web interface for your trading activities - My feedback is not taking into consideration other running software, processes, etc that "could" impact your overall system performance and experience. - I am assuming you are seeking the best price performance recommendation maintaining a frugality approach in overall cost build up in the recommendation. First, let's review the DAS Trader Pro requirements: Minimum Core2 Duo 2+GHZ processor Minimum 4GB of RAM Cable or DSL (at least 10/10 DL/UL speed recommended) Windows 7, Server 2008 or higher Secure updated web browser DASTrader Pro program enabled in Windows Firewall https://dastrader.com/docs/hardware-requirements/ The application itself is not very compute resource intensive at all. There are many reasonably priced systems that can easily run DAS Trader Pro. The system specifications you outlined in your initial post far exceed the requirements to run the application extremely well while also running many other applications and functions in parallel. Most of my hands on hardware experience has been with Dell manufactured systems (e.g. Alienware, Optiplex, etc), however, the MSI model typically is in the top five systems in terms of cost, performance, and overall user experience. The system you shared would definitely meet the needs that you are attempting to achieve. I wanted to speak to your Mac commentary. I want to raise your awareness that you can effectively use DAS Trader Pro on an Apple OSX operating system. If you still have your Apple system there are a few avenues you can pursue to enjoy the Mac experience and setup while running the DAS Trader Pro application. There are three primary options: 1.) Run a virtual machine with VM software and Windows OS on your Apple system (OSX) system There are many different softwares that can run what's called a virtual machine (VM) on your Apple OSX. A few examples: Parallels https://www.parallels.com/ VMWare Fusion https://www.vmware.com/products/fusion.html The easiest way to envision how the above products function is to think about the ability to run Windows OS as if it were an application on your Apple OSX system. It would be no different than if you had multiple browser pages running at the same time or multiple applications from a usability stand point. The idea with this setup is that you would still be able to do everything on your Apple system and have this separate window with DAS Trader Pro system running concurrently. It is very seamless to interact with and would overcome the gap of not being able to install and run the DAS Trader Pro software directly from your Apple system. Keep in mind there is a licensing cost for the software I listed above, but it is way more cost effective than purchasing an entirely different system just to run Windows. 2.) Align to the DAS Trader Pro guidance of an AWS EC2 instance running Windows OS DAS Trader Pro provided guidance and a recommendation, but in my opinion it is a much more challenging setup as you have to know how to leverage the AWS Cloud environment as well as understand how to provision, configure, and maintain what is called an AWS EC2 instance. This is just another form of a virtual machine, but with a ton of added complexity. I wanted to call this out because this is their recommended approach, but in my opinion not the optimal choice. You can review the guidance here: https://dastrader.com/documents/How-to-run-PRO-on-Non-Windows-OS.pdf 3.) Build Windows OS on your Apple system Through software called Boot Camp you can configure an independent partition on your disk to be able to boot to Windows as if the system was Windows native. This essentially allows you to use your underlying physical hardware as an independent Apple system and Windows system from the single device. Because this boots to either Windows OS or Apple OSX it is not as seamless as the virtual machine experience, but it will allow you to achieve cost avoidance in having to procure an independent hardware if you want to continue to leverage your current Apple system. https://support.apple.com/guide/bootcamp-assistant/welcome/mac NOTE: In all of the above recommendations, there are system resource (RAM, Processor, Disk space, etc) requirements that are crucial to keep in mind as that will be a firm contributing factor to the overall functionality and experience. Would be happy to discuss the specifics if you have a real interest in pursuing any of the paths I have shared. I hope you find value in my feedback and please don't hesitate to reach out if you have any additional questions! -
Hi all, I am currently in the process of choosing a Windows laptop for day trading ( to run DAS ), and I am having trouble with knowing what to purchase. I have been looking into gaming laptops, but it is difficult since I have always been a Mac person. In my research I have come across the MSI - Thin GF63 15.6" 144Hz Gaming Laptop. The other specifications are listed below: - Intel 12th Gen Core i7 - 2650H with 32GB Memory - NVIDIA GeForce RTX 3050 - 1TB SSD I also already have a very large LG Ultrafine 4K monitor. Has anyone else used this laptop or computer brand before? I also looked into Dell, but they might be out of my price range at the moment. Here is a link to the product as well: https://www.bestbuy.com/site/msi-thin-gf63-15-6-144hz-gaming-laptop-intel-12th-gen-core-i7-12650h-with-32gb-memory-nvidia-geforce-rtx-3050-1tb-ssd-black/6559383.p?skuId=6559383 Any help would be greatly appreciated! Thank you!
-
Hi, I would much appreciate if you could help creating a DAS hotkey for options trading? I'd want to buy a contract with the size based on criteria; - contract size: limited with a defined buying power ($2000) - Price entry: mid price - Attached a market stoploss: 85% of average cost Thank you so much for your help.
-
Hi, I have the equalized risk entry hotkeys, I can't make the short key working. I double click on the chart on the price I want it to stop but the order doesnt get fill, I get this message instead : Here is the script StopPrice=Price+0;DefShare=BP*0.925;Price=Price-Bid+0.00;SShare=50/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=200 I took it from the video on youtube : Anyone knows how to fix it? Thank you EDIT: I just saw that it was reject since my buying power is not strong enough
- 588 replies
-
- scripts
- risk management
-
(and 3 more)
Tagged with:
-
Hello... I don't know if this is what you're looking for, but here is what I have for my 3R gain on one of my hotkeys... CXL ALLSYMB;StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=200/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;Price=Ask-StopPrice*3+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS TIF:DAY+ I would just change it to this for 1.5 reward CXL ALLSYMB;StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=200/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;Price=Ask-StopPrice*1.5+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS TIF:DAY+ I can't test it out right now, but I assume it would work... test in SIM first 🙂 Hope it helps. GProf
- 588 replies
-
- scripts
- risk management
-
(and 3 more)
Tagged with:
-
Hi, I've been using the hot keys reference in this this video below; they all work great but I would like to adjust the profit target to 1.5 R but it doesn't seem to work? If I change to whole number multiples like 2/1, 3/1 risk it all works fine. Can anyone help to adjust this? The hot key codes are as below; For Long Entries and a $10 risk, stop order attached, and Target order of 1:1 CXL ALLSYMB;StopPrice=Price-0;DefShare=BP*0.925;Price=Ask-Price+0.00;SShare=10/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=200;Price=Ask-StopPrice*1+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS TIF:DAY+ For Short Entries and a $10 risk, stop order attached, and Target order of 1:1 CXL ALLSYMB;StopPrice=Price+0;DefShare=BP*0.925;Price=Price-Bid+0.00;SShare=10/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=SMRTL;Price=Bid-0.05;TIF=DAY+;SELL=Send;DefShare=200;Price=StopPrice-Bid*1;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS TIF:DAY+ Any input appreciated!
- 588 replies
-
- scripts
- risk management
-
(and 3 more)
Tagged with:
-
If I understand correctly ur $ Risk is $50 and you would like to set the number of contracts automatically. I would use the following : SShare=50/Price/100. Once u selected ur SL on the chart by Dbl+Cliking (Price=Ask-Price+0.01), U r saying that the number of contracts to trade is MyRisk/SL/100 , in ur case 50/0.5/100 = 1 contract. That is y u it would work around the 0.5 area. Hope that helps. The formula is : $RISK/SL/100 here SL or Price=Ask-Price+0.01 u r actually saying that my SL=Ask - My_Selected_Price +0.01 $ to make sure that u r within ur parameters. the "Price" within the formula is the one u clicked. The following is the way I have mine setup : StopPrice=Price-0.01;DefShare=BP*0.97;Price=Ask-Price+0.01;SShare=500/Price/100;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=0;TriggerOrder=RT:STOP STOPTYPE:LIMIT PX:StopPrice-0.05 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+;
- 588 replies
-
- scripts
- risk management
-
(and 3 more)
Tagged with:
-
Hi. I'm using this script to trade options. Since actual dollar risking amount is x100 of the contract price with options, I tried to use 'SShare=0.5/Price' to mean that I want to risk $50 (0.5 x 100). It works fine, as long as where I double click on the chart where I want to place my stop is within $0.5 from the current price. Say current option price on the chart is at $3.50 and I want to place my stop at $3.01, it works fine. However if I try to set my stop at $2.95, nothing happens. I suspect there's some error calculating number of contracts to buy when it passes $3.00 mark. I am suspecting something like the number of shares to buy become below 1 and that's considered 0 (?) Is there any way to modify this to at least buy 1 contract even if my stop loss is more than $0.5 away from current price? I understand by doing this, my risk will be more than $50 in this case. Thank you.
- 588 replies
-
- scripts
- risk management
-
(and 3 more)
Tagged with:
-
Hi all I recall this being discussed in the chatroom previously, but can't remember the punch line. Does anyone know why the DAS close price varies from other services? For example, on the 28th of March the below was the reported MESM23 close price: DAS: $4013.75 tastyworks: $4001.50 TradingView: $4001.50 Interactive Brokers: $4001.50 The main impact for this on my strategy is when trading Camarilla Pivots the pivot calculations are going to be different in these platforms than DAS. For example, the following day (29th of March) R4 printed at the following price: DAS: $4155.837 tastyworks: $4025.288 TradingView: $4025.288 Interactive Brokers: $4025.288 On range days like in the current market, a 30 point discrepancy can make a lot of difference when trying to play the CAMs on TradingView and trying to keep up with Thor on DAS 🙂 Any thoughts, or insights into what I'm missing would be greatly appreciated. TC
-
I have been working today on 2 hotkeys for myself. The script(s) uses the defined R/R script from previous Kyles hotkeys. It performs the following: Cancels any previous orders for the symbol Enters the trade, ensuring total shares bought is equally divisible by 4 (rounded down); this prevents having extra shares hanging around after the range trades complete or stop out. Creates a range order at your stop level for 1/4 of your initial shares bought with a profit level of 2R Creates a range order at your stop level for 1/4 of your initial shares bought with a profit level of 3R Creates a range order at your stop level for 1/4 of your initial shares bought with a profit level of 4R Creates a single order at your stop for the remaining 1/4 shares; This allows you to ride the last 1/4 to whatever level you want before exiting As with Kyles hot key scripts, you double click your chart at the level you want to place your stop then press your button or hot key The Script for the long entry CXL ALLSYMB; StopPrice=Price-0.01;DefShare=BP*0.5;Share=DefShare*0.333*Price*0.01;Price=Ask-Price+0.01;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;Share=Share/4;Share=Share*4;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=1000;Price=Ask-StopPrice*2+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS*.25 TIF:DAY+;Price=Ask-StopPrice*3+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS*.25 TIF:DAY+;Price=Ask-StopPrice*4+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS*.25 TIF:DAY+;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.3 ACT:SELL STOPPRICE:StopPrice QTY:Pos*.25 TIF:DAY+; and the Short CXL ALLSYMB; StopPrice=Price+0.01;DefShare=BP*0.5;Share=DefShare*0.333*Price*0.01;Price=Price-Bid+0.01;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;Share=Share/4;Share=Share*4;TogSShare;ROUTE=SMRTL;Price= bid-0.05;TIF=DAY+;SELL=Send;DefShare=1000;Price=StopPrice-Bid*2;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS*.25 TIF:DAY+;Price=StopPrice-Bid*3;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS*.25 TIF:DAY+;Price=StopPrice-Bid*4;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS*.25 TIF:DAY+;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.3 ACT:BUY STOPPRICE:StopPrice QTY:Pos*.25 TIF:DAY+; Long $50 Risk CXL ALLSYMB; StopPrice=Price-0.01;DefShare=BP*0.5;Price=Ask-Price+0.01;SShare=50/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;Share=Share/4;Share=Share*4;TogSShare;ROUTE=SMRTL;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=1000;Price=Ask-StopPrice*2+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS*.25 TIF:DAY+;Price=Ask-StopPrice*3+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS*.25 TIF:DAY+;Price=Ask-StopPrice*4+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS*.25 TIF:DAY+;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.3 ACT:SELL STOPPRICE:StopPrice QTY:Pos*.25 TIF:DAY+; Short $50 Risk CXL ALLSYMB; StopPrice=Price+0.01;DefShare=BP*0.5;Price=Price-Bid+0.01;SShare=50/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;Share=Share/4;Share=Share*4;TogSShare;ROUTE=SMRTL;Price= bid-0.05;TIF=DAY+;SELL=Send;DefShare=1000;Price=StopPrice-Bid*2;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS*.25 TIF:DAY+;Price=StopPrice-Bid*3;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS*.25 TIF:DAY+;Price=StopPrice-Bid*4;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS*.25 TIF:DAY+;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.3 ACT:BUY STOPPRICE:StopPrice QTY:Pos*.25 TIF:DAY+; Everything prior to defshare=1000 in each script is completely from the original Risk/Reward Hotkeys except the bit of code that ensures the number of shares is equally divisible by 4. Feel free to give them a try and let me know if there are any issues.
- 47 replies
-
- 8
-
-
-
- range orders
- risk/reward
-
(and 3 more)
Tagged with:
-
Defined Risk Hotkeys for multiple range orders
Daniel Blue replied to Day-Meister's topic in DAS Trader Pro Tips and Tricks
Hi Team, I'm new to BBT and DAS and Day Trading. I'm going through the Training Video for Lesson 14 and 15 - Equalized Risk Per Trade Hotkey, and Placing a Range Order for 1:2 Risk Reward Hotkey. I copied the script from DAS Hotkey Scripts.txt which s from Kyle's Hotkey Video Series. But I don't know if the hotkey is working properly. It looks like it makes the entry just fine, but it doesn't create a stop order. Can anyone help me? Here is the text I copied into the Script field for building the hotkey: CXL ALLSYMB;StopPrice=Price-0;DefShare=BP*0.97;Price=Ask-Price+0.00;SShare=10/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=200;Price=Ask-StopPrice*2+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS TIF:DAY+; Is this supposed to input a stop order as well as the entry?- 47 replies
-
- range orders
- risk/reward
-
(and 3 more)
Tagged with: