How can I add a setting to set a set amount to spend so not using the full account balance but use an amount set in the settings. like $1000 so it is shows how many stocks can be got for a $1000 or what ever price amount I put in as my limit amount to spend.?
Here is my screen grab with the code I added into to another it shows in white up top.
I would like it to show something like amount to use $1000 or what ever I set it to in the setting and then the you can buy shares amount based on that.?
I got the code from here
https://usethinkscript.com/threads/...owned-equities-in-thinkorswim.7089/post-84251
Just changed it to white.
def SBP = GetTotalCash () ;
AddLabel(yes,
" Total Cash = " + SBP +
" You can buy: " + roundDown(SBP/close,0) +" shares", Color.white);
thanks
Here is my screen grab with the code I added into to another it shows in white up top.
I would like it to show something like amount to use $1000 or what ever I set it to in the setting and then the you can buy shares amount based on that.?
I got the code from here
https://usethinkscript.com/threads/...owned-equities-in-thinkorswim.7089/post-84251
Just changed it to white.
def SBP = GetTotalCash () ;
AddLabel(yes,
" Total Cash = " + SBP +
" You can buy: " + roundDown(SBP/close,0) +" shares", Color.white);
thanks
Last edited: