This is an educational script created to demonstrate few basic building blocks of a trend based strategy and how to achieve different entry and exit types. My initial intention was to create a comprehensive strategy template which covers all the aspects of strategy. But, ended up creating fully fledged strategy based on trend following.
This is an enhancement on ...
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,...
Simple 3 EMA Strategy with plotted Take Profit and Stop Loss
- Middle EMA cross above the Slow EMA
- Set take profit and stop loss exit conditions based on ATR Indicator
- Fast EMA cross below the Middle EMA
// this is an educational Script - basicly its very simple - you can see how minimal changes impact results, thats why i posted it
// Credits to Quantnomad to publish tons of free educational script
// this Script is based on Quantnomads Ultimate MA Indicator
// HA - Option for calcultion...
- I often see ppl struggeling do the first own strategy
- this is an example, for a smooth start
- EDIT it to your needs ( DELET my EXAMPELS and add your INPUTS/CONDITIONS)
- i added also a Backtestrange, so you can test your Strategy in different marketphases
- also added a trailing-stop-loss