In Open and Average, you can open/add Quantity from the placeholder strategy {{strategy.order.contracts}}. I work on them. There is no such option in Closing. The existing closing methods are not suitable. The amount of usd is unknown in advance (the entry amount does not take into account profits). The quantity is also always different, since the strategy enters the amount of X on the market, and then sells the actual number of coins in the pose. If you select Quantity and leave the value empty, the signal gives a “no quantity” error, since your code does not have the corresponding placeholder (there is “amount”: “, see screen”) I got away with manually adding {{strategy.order.contracts}} to all tradingview alerts, but there are a lot of them and manual editing is a recipe for mistakes. Add a pjsta or to the “amount” placeholder {{strategy.order.contracts}} value when the user has selected the Quantity order type and left the value empty or to the “Quantity by Strategy” selector by analogy with Opening and Averaging * You can remove Quantity from the strategy from Opening/Averaging if you simply add the {{strategy.order.contracts}} placeholder to the “amount” value when the user selects Quantity and leaves the value empty