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!
This TMA strategy is called rollercoaster for the rounded ways it follows the moving average. Tried pinpointing entry/exit points as well as I could. Included alertconditions as well as syntax at the bottom for use with Autoview in a margin or spot trading environment. There is also the Study side for syntax and alertconditions use :) (autoview users and...
Strategy side of my new cloud script. Idea from Guppy and Viirkooni.
some simple functions to handle account margin call / trailling stop for account.