Both a trailing stop and a stop loss are necessary tools for every trader, for locking in as much profit in any given trade, while on the other hand minimizing the risks involved in trading. I started to write this scipt to give an answer to many traders who wanted these two tools combined, but didn't find any way to program this. TV has some shortcomings in the...
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 ...
Simple 3 EMA Strategy with plotted Take Profit and Stop Loss Entry condition: - Middle EMA cross above the Slow EMA - Set take profit and stop loss exit conditions based on ATR Indicator Exit condition: - 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 based on HA-Candles (very famous recently) // Source Input - Option...
- 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
a small tutorial to explain how to work with orders, comments in the script.
Example how to select and set date range window to be backtested. Normally when you change chart period it changes the number of days being backtested which means as you increas the chart period (for example from 5min to 15min) you also increase the number of days traded, so you can not compare apples to apples for which period would yield best returns for your...