Than you very much for your prompt reply, even on a Sunday! Truly appreciated! Also a big thank you for a fantastic software and for all the opened code with different indicators, very helpful!!
- My wish of creating a setting with a minimum of profit when selling the stocks is basically that do not want to sell with loss. Of course everyones dream, but I rather hold to the stock than selling it with loss. My previous script settings in another stock robot software was the following:
//Mininum profit 1%
min_profit:=1.010
profit=gt(c,mult(min_profit,lasttrade(b,p)))
2. In the same software I could set different in data variables for a certain stock, such as “stake”, for example -97 that would instruct the software to buy that certain stock with 97% of my money balance. That was very helpful as it enabled you to reinvest automatically the profits. Do note that it was in the settings of the software, not in the buy/sell script.
Thanks for your time!