En route to being absolutely the best and most complete trading platform out there, TradingView has just closed 2 gaps in their PineScript language. It is now possible to create and backtest a strategy for trading with leverage. Backtester now produces Margin Calls - so recognizes mid-trade drawdown and if it is too big for the broker to maintain your trade,...
Hello traders, I started this script as a joke for someone... finally appears it could be used for educational content Let's talk about leverage and margin call Margin Call A margin call is the broker's demand that an investor deposit additional money or securities so that the account is brought up to the minimum value, known as the maintenance margin. A...
Almost identical to the one I published before, but this one includes short orders as well. I didn't spend much time backtesting, so there may be a different set of parameters that gives better results. Please let me know if you find something!