Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 04/01/2021 in Posts

  1. 1 point
    Ever wanted to swap line styles on the fly and make a rainbow on your chart? You can do that in 5.5.0.0+. The hotkey isn't the easiest to understand, so I very quickly made a web utility for you (link below). How to Use: Go to URL: http://kaelmedia.com/projects/das-line-config/ Select a Line Type, default is HorzLine Select a Line Style, default is SolidLine Select a Color, default is Barney Select a Width, default is 1 Hit "Generate" Glance at the preview window and see if it is what you wanted. If it is, hit the "Copy" button and it'll be placed in your computers Clipboard. If you wish to share you creation, press the "Share" button and a special link will be placed on your clipboard to post in the forums. Example: http://kaelmedia.com/projects/das-line-config/?hotkey=ConfigTrendLine horzline dotline:035aab:1; Paste the copied hotkey (looks like: ConfigTrendLine horzline dotline:035aab:1; ) into your DAS Hotkey Configuration. Optionally, bookmark or save the line so you can edit it in the future (it adds the settings to the browsers URI/URL). How the Hotkey Works: The hotkey as designed will swap the DEFAULT config for the Line Type chosen, each type has one default stored for the user. So if trigger a hotkey with a horizontal line with a blue color, your very next (and all following lines) horizontal line you trigger on the chart will be that configuration (blue). Because of this, I have a "default line" hotkey and a series of colored hotkeys, this allows me to toggle back and fourth. Advanced Uses: Go HERE.
  2. 1 point
    I am trying to use this script for a hot button to set a STOP LOSS: CXL ALLSYMB;ROUTE=STOP;StopType=Market;StopPrice=Last-100/Pos;StopPrice=Round2;Share=Pos;TIF=DAY+;SELL=Send; OR CXL ALLSYMB;ROUTE=STOP;StopType=Market;StopPrice=AvgCost-100/Pos;StopPrice=Round2;Share=Pos;TIF=DAY+;SELL=Send; The above scripts throws the following ERROR Script: Invalid price Looks like DAS is not liking 100/Pos [ STOPPRICE = (AvgCost*Pos-100)/Pos = AvgCost - (100/Pos) = AvgCost - 100/Pos ] If AvgCost=5 and Pos=25 STOPPRICE = 5 - 100/25 = $1 which means that the StopLoss value = ($5 - $1) * 25 = $ 100 I am using this formula to fix my Stop Loss to $100 - a fixed amount. Why is DAS throwing an error for this? Any pointers will be appreciated - thanks in advance. **SOLVED** Gist: Stop Price does not support the POS command Use this workaround: CXL ALLSYMB;Share=Pos;Price=100/Share;Price=Last-Price;Price=Round2;ROUTE=STOP;StopType=Market;StopPrice=Price;Share=Pos;TIF=DAY+;SELL=Send; Here's my interaction with DAS support chat -------------------------- kris: Hello, I am trying to use this script for a hot button to set a STOP LOSS: CXL ALLSYMB;ROUTE=STOP;StopType=Market;StopPrice=Last-100/Pos;StopPrice=Round2;Share=Pos;TIF=DAY+;SELL=Send; The above script throws the following ERROR Script: Invalid price Looks like DAS is not liking 100/Pos I am using this formula to fix my Stop Loss to $100 - a fixed amount. Why is DAS throwing an error for this? Call accepted by operator Customer Service. Currently in room: Customer Service, kris. Customer Service: Hi this is Rashada' Customer Service: Please allow me some time to review kris: thanks Customer Service: Allow me to use your script kris: ok Customer Service: Yes the rejection is coming from Stopprice=Last-100/Pos kris: the formula is correct kris: [ STOPPRICE = (AvgCost*Pos-100)/Pos = AvgCost - (100/Pos) = AvgCost - 100/Pos ] If AvgCost=5 and Pos=25 STOPPRICE = 5 - 100/25 = $1 which means that the StopLoss value = ($5 - $1) * 25 = $ 100 kris: so looks like DAS is not allowing 100/Pos ? kris: I can use AvgCost - 0.15 and it is fine kris: AvgCost or Last Customer Service: Just a moment Customer Service: Stop Price does not support the POS command kris: is there a workaround - like using DefShare=Pos;StopPrice=Last-100/DefShare - something like this? Customer Service: What are you trying to do? kris: I am using this formula to fix my Stop Loss to $100 - a fixed amount. kris: see the calculation above Customer Service: You may try this hotkey to set your stop loss to be $100 Customer Service: CXL ALLSYMB;Share=Pos;Price=100/Share;Price=Last-Price;Price=Round2;ROUTE=STOP;StopType=Market;StopPrice=Price;Share=Pos;TIF=DAY+;SELL=Send; Customer Service: Please test all Hotkey scripts prior to use to ensure accuracy. It is the responsibility of the trader for all order sent. kris: Appreciate your help - thank you so much! Customer Service: You are welcome Customer Service: Is there anything else I can assist you with? kris: No - thank you Customer Service: I hope you have a nice day. Goodbye! ---------------------------------------------------- Here's how my hot buttons look like With the $100 stop loss, once it is set, I can click and drag it to adjust - you just have to enable it in your chart area. Also, I can hit the button again - since it is programmed on Last, it will re-adjust.
×
×
  • 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.