This is a randomization algorithm to randomly chose a number between 1 and 10. This has a number of use-cases. For instance, it can be used to vary your take profit percentage unpredictively removing the edge other algorithms and skilled traders have in triggering your stops. Included is the k-multiplied standard deviation provided for you to use at your...
The Dual Thrust trading algorithm is a famous strategy developed by Michael Chalek. It has been commonly used in futures, forex and equity markets. The idea of Dual Thrust is similar to a typical breakout system, however dual thrust uses the historical price to construct update the look back period - theoretically making it more stable in any given period.
This is a little something I created to analyze the market. Ultimately, I wanted to create something that could encapsulate the entire market as best as possible. The idea was simple, use technical analysis to create cases that would indicate entry positions and exit positions for long positions initially. After completing that, I decided to add a few shorting...
Have tried a few different methods but just constantly get errors in different lines of code......been trying for hours *sigh*. Any help would be so greatly appreciated Long when rsi overbought, close trade when rsi oversold and < Vstop //@version=3 strategy("Vstop and RSI", overlay=true) //RSI Section length = input(2, "RSI Period") overSold = input(30,...
DESCRIPTION Forex Master v4.0 is a mean-reversion algorithm currently optimized for trading the EUR/USD pair on the 5M chart interval. All indicator inputs use the period's closing price and all trades are executed at the open of the period following the period where the trade signal was generated. There are 3 main components that make up Forex Master v4.0: ...
This is version 2 of my Forex Master algorithm originally posted here: BACKTEST CONDITIONS: Initial equity = $100,000 (no leverage) Order size = 100% of equity Pyramiding = disabled TRADING RULES: Long entry = EMA5(RSI20) cross> 50 Profit limit = 50 pips Stop loss = 50 pips Short entry = EMA5(RSI20) cross< 50 Profit limit = 50 pips Stop loss =...
This is a simple swing trading algorithm that uses a fast RSI-EMA to trigger buy/cover signals and a slow RSI-EMA to trigger sell/short signals for SPY, an xchange-traded fund for the S&P 500. The idea behind this strategy follows the premise that most profitable momentum trades usually occur during periods when price is trending up or down. Periods of flat price...
This simple RSI-MA long/short algorithm beats the Dow by a FREAKING HUGE margin over the past century (excluding dividends and trading costs). The algorithm uses a fast SMA of the RSI as a buy/cover signal and a slow SMA of the RSI as a sell/short signal. Backtest period = 09/17/1916 - 11/02/2015 Dow = 98 --> 17,830 = +18,094% = 5.38% CAGR Algorithm = net...