Profit Runner Strategy v2.0This is the strategy version of the recently posted Profit Runner v2.0 study. We include both together so that users can use the strategy for backtesting and figuring out the optimal settings for their specific usage and then implement those settings in the study version(which includes alerts for automated trading).
Green background highlights are buy signals and red background highlights are sell signals. Red and green filled area show the user's stop loss .
Strategy!
Hull Trend with Kahlman Strategy BacktestA simple backtest version of a Hull Trend with Kahlman strategy
Kijun-Sen Strategy [DasanC]This strategy employs the Kijun-Sen line (from Ichimoku cloud) as a baseline for decisions.
In essence, the Kijun-Sen is a kind of moving average based on the High/Low range, similar to Donchian channels.
We wait for a crossover or crossunder to enter a new trade, then exit upon the next cross.
It works on 1H timeframe and above. It also works for all the Major FX pairs (at least from my tests).
I use the ATR and a multiplier to decide the S/L position as well as the volume of the trade.
I also use an equity protector to close out of all trades if a specific DD % level is reached. In theory, this should never happen with only one trade open at a time, however, if a user wants to modify the script to pyramid orders then the equity protector could potentially "save" an account.
The default settings should produce winning results on Major pairs. You can change the backtest time in the script by altering line #53:
>if(time > timestamp(2017,1,1,0,0) and time < timestamp(2019,1,1,0,0))
TODO:
Add 2 additional forms of confirmation
Add volume to filter losing trades
Add exit indicator
Bilateral Stochastic Oscillator StrategyIntroduction
Strategy based on the bilateral stochastic oscillator, this oscillator aim to detect trends and possible reversal points of the current trend. The oscillator is composed of 1 bull line in blue and 1 bear line in red as well as a signal line in orange, the strategy have many options such as two different strategy framework and a martingale mode. If you require more information about the indicator go check it into my uploaded indicators.
Strategy Frameworks
There are two frameworks available that can be selected from the strategy settings window. Both have the same closing conditions, the "Bull/Bear Cross" entry conditions are :
Buy : when the bull line cross over the bear line
Sell : when the bear line cross over the bull line
The "Signal Cross" entry conditions are :
Buy : when the bull line cross over the signal line
Sell : when the bear line cross over the signal line
Both have the same close conditions that is : close when bull/bear cross under the signal line.
Introduction To Martingale
The martingale money management system consist to double the order size after a loosing trade and can be described as a 2^x where x is the current number of loosing trades since the last win trade, when we win a trade the order size return to the default order size. Therefore our order size function is based on exponential growth.
This system enable the trader to win back his previous losses plus a potential profit, martingales must always be used with stops and sometimes take profits in order to get control in a strategy.
It must always be taken into account that in a series of losses the balance can exponentially decay thus ending to 0 in a matter of trades, this is why it is not recommended to use such system. The strategy allow you to select a martingale multiplier that can be inferior to 2 thus limiting risks, a multiplied of 1 disable the martingale.
Results
Those are the some statistics of the strategy applied to some forex majors by using the default settings in a time frames of 15 minutes.
//-------------------------------------------------------
EURUSD - Order Size 1000 - Spread 0.0002
Profit : $ 21.08
Trades : 19
PP : 57.89 %
Profit Factor : 3.228
Max Drawdown : -$ 3.81
Average Trade : $ 1.11
//-------------------------------------------------------
GBPUSD - Order Size 1000 - Spread 0.0002
Profit : $ 2.31
Trades : 20
PP : 55 %
Profit Factor : 0.938
Max Drawdown : -$ 20.29
Average Trade : $ 0.12
//-------------------------------------------------------
EURAUD - Order Size 1000 - Spread 0.0002
Profit : -$ 9.22
Trades : 20
PP : 40 %
Profit Factor : 0.698
Max Drawdown : -$ 23.44
Average Trade : $ 0.46
//-------------------------------------------------------
EURCHF - Order Size 1000 - Spread 0.0002
Profit : $ 1.58
Trades : 24
PP : 54.17 %
Profit Factor : 1.103
Max Drawdown : -$ 7.23
Average Trade : $ 0.07
//-------------------------------------------------------
Conclusions
Based on the results the strategy does not posses the sufficient performance in order to apply a martingale or any other growth systems as order size. Parameters might be subject to drastic changes depending on the market/time-frame in order to return long-term positive results. I let you draw your conclusions.
PSAR Strategy + EMAS-TDSEQ-ICHICmoku-PIVOTS-PSARPSAR Strategy + EMAS-TDSEQ-ICHICmoku-PIVOTS-PSAR
In this script you have a good strategy, called Parabollic PSAR and this indicators:
4 EMAS --> 50, 100, 200 and 800
TD Secuential
Ichimoku indicator
Pivots
Parabolic PSAR.
Achal-Pivot Trade Strategy v1.0Yesterday , I learned to script in pine. I have implemented strategy based on pivot points . When previous pivot point is broken , script takes decision to go long on various other parameters i.e. filtering of signals. Exit of position is purely based on trailing stop loss.
This script seems to be best suited for intraday trading as average bars per trades are less.
Short function has not been defined yet.
Waiting for comments, so that improvements can be made
Regards
No Nonsense NNFX VP Strategy for Back Testing 3 x Indicators| jhAfter testing your individual indicators, it's time to build up your algo with additional indicators and further backtest the strategy.
Using SSL twice here, faster SSL for 1st confirmation, slower SSL for 2nd confirmation and TDFI for volume validation.
No Nonsense NNFX VP Strategy for Back Testing Indicators| jhAfter putting the whole system together, sat down to benchmark the various confirmation indicators, shrink it down to backtest individual confirmation indicators.
Results for 24 periods way better than 10, then again it's only one pair. :)
More details below.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Designed per No Nonsense Forex VP rules
//For testing your individual indicators before the full system
//Originated from causecelebre
//Tried to put in as much VP rules as possible
///////////////////////////////////////////////////
//Rules Implemented:
///////////////////////////////////////////////////
// - SL 1.5 x ATR
// - TP 1 x ATR
//
// - Entry conditions
//// - Entry from 1 x confirmation
// - Exit conditions
//// - Exit on confirmation flip
///////////////////////////////////////////////////
//Trades entries
///////////////////////////////////////////////////
// - First entry L1 or S1 with standard SL and TP
///////////////////////////////////////////////////
//Included Indicators and settings
///////////////////////////////////////////////////
// - Confirmtion = SSL 10
///////////////////////////////////////////////////
//Credits
// Strategy causecelebre www.tradingview.com
// SSL Channel ErwinBeckers www.tradingview.com
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Change log
//First release. Testing of indicators
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Super Pivot Reversal Strategy with MA CloseVery Succesful Pivot Reversal Strategy
- This strategy works best with 1H and 4H Heikin Ashi charts.
- First year is small, second year is a nice chunk, third year your a multi-millionaire by far.
- Short & Long entry amounts are percentage of total capital to keep wallet and risk management in check.
- Entries close either when another short or long entry is placed or when SMA/EMA is crossed over to keep drawdowns low.
- Can selectively back test individual date ranges.
- All back testing is based upon an initial $1000 USD capital investment.
- Back test gives great results on EURUSD, USDJPY, USDCAD and many other forex currency pairs. Don't recommend using it on GBPUSD.
Code is currently closed while I tweak it further, but I wanted to get it out here to share and see if anyone is interested.
SlingShotStrategyBased on an existing SlingShotStrategy. Added the ability to set capital, and order limit in settings.. Back Testing is great. Plan to improve more, let me know what you think.
Abacus (CMF + Stoch. + Chop.) StrategyThis strategy combines uses Chaikin Money Flow, Stochastic Oscillator, and the Choppiness Index to determine trend strength and direction and generate entry and exit signals. This is a strategy adaptation of our earlier CMF + Stoch + Choppiness Index indicator.
OBV Divergence Tracker StrategyThis strategy combines OBV Z Scores and price Z Scores to identify divergences and generate entry and exit signals.
The K2 StrategyStrategy version of the K2 Indicator. The K2 uses a fast and slow CCI to identify optimal long entry and exit opportunities.
No Nonsense NNFX VP Strategy for Back Testing | jhMy first script, be kind :)
Most of the rules are implemented:
- Money management
- ATR, Baseline, Confirmation, Volume, Exit
More details below.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Designed per No Nonsense Forex VP rules
//Made to be as modular as possible, so we can swap the indicators in and out.
//Originated from causecelebre
//Tried to put in as much VP rules as possible
///////////////////////////////////////////////////
//Rules Implemented:
///////////////////////////////////////////////////
// - SL 1.5 x ATR
// - TP 1 x ATR
//
// - Entry conditions
//// - Entry within 1 candles of baseline + 1 x confirmation + volume
//// - Entry only if baseline is < 1 x ATR
// - Exit conditions
//// - Exit on exit indicator or when baseline or confirmation flip
///////////////////////////////////////////////////
//Trades entries
///////////////////////////////////////////////////
// - First entry L1 or S1 with standard SL and TP
// - Second entry L2 or S2 with standard SL and exit upon the exit conditions
///////////////////////////////////////////////////
//Included Indicators and settings
///////////////////////////////////////////////////
// - Baseline = HMA 20
// - Confirmtion = SSL 10
// - Volume = TDFI 4
// - Exit = RVI 4
///////////////////////////////////////////////////
//Credits
// Strategy causecelebre
// TDFI causecelebre
// SSL Channel ErwinBeckers
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
HLC3/Kaufman Strategy (Cephii Version)Used for Long and Short Indications with HLC3/Kaufman analysis. Effective for high volatility long term trading.