Search the Community
Showing results for '"valid price"'.
Found 2 results
-
Hello community. I have trying to All kinds of hot keys that take buying power + R ratio into a fixed risk dollar amount but continue to get this error message "ERROR: Can't get valid price!" The scripts I am using are from this you tube video. https://www.youtube.com/watch?v=CPSLj7W-KQA I have even tried Kyle's excel file and with those I get the same error. These scripts are going into buttons into my montage which I have created and I have also tried click to trade via charts which I have also enabled. I am using the 3 month BBT Das trader pro trial Version - 5.6.4.13 Build Time - Jul 1 2021 12:23.01 Any assistance would be most appreciated. Thank you for your time, Adam
-
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.