3greensoldiers 2 Posted May 22, 2018 Hi All, I am trading in a simulator and trying to buy a share size with the buying power that I have in DAS but i keep getting an error when executing the command: ROUTE=SMRTL;Share=25000/Price;Price=Ask+0.10;TIF=DAY+;BUY=Send ERROR: can't get valid price It almost always happens the first time i hit the Hotkey, but i don;t get the error if i try it again right after. Can someone help ? thx Share this post Link to post Share on other sites
Robert H 453 Posted May 22, 2018 You need to use the ROUND2 function as outlined in this post. Try this: Price=Round2;Share=BP/Price Share this post Link to post Share on other sites
3greensoldiers 2 Posted May 22, 2018 thanks Robert! I will check it out. Share this post Link to post Share on other sites
Bard 0 Posted May 24, 2018 Price has no value until you set a value. Put "Price=Ask+0.10;" before "Share=25000/Price;" and you should be fine. Bård Share this post Link to post Share on other sites
3greensoldiers 2 Posted May 24, 2018 hey Bard, so the sequence would be Price=Ask+0.10;Price=Round2;Share=25000/Price; thx! Share this post Link to post Share on other sites