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
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
HMA
Hull Moving Average Cloud v2Hull Moving Average Cloud, is not the normal Hull crossover, instead opens orders at cross of price and alternative Hull MA configuration (stretches/shrinks with momentum)
Has history settings, Commission already included in result. Only looks into past, should be no repaint (im sure the trolls will correct me if im wrong, thankyou trolls i can always count on you)
Source code open, if you find improvement please share thankyou
Hull Moving Average and Daily Candle CrossoverHull Moving Average. Alan Hull developed Hull Moving Average in 2005 in his quest to create a moving average that is "responsive to current price activity while maintaining curve smoothness". Hull claims that his moving average "almost eliminates lag altogether and manages to improve smoothing at the same time"
This strategy has Lag built in, the signal will appear 1 or 2 candles lagged, but it wont repaint the signal.... in theory!
Does this repaint? you tell me. thankyou
Change the settings every time you change timeframe or pair
SMA EMA HMA VWMA Turning Point StrategyThis strategy allows you to backtest entering and exiting a trade based on one definable SMA, EMA, HMA or VWMA changing direction.
SMA EMA HMA VWMA Crossover Strategy with MA Turning Point ExitsThis version adds HMA and VWMA, allowing you to backtest different crossover strategies for any combination, with the exits on the turning point of the faster MA. Due to order limitations this will only work on higher timeframes for some combinations, or on more recent exchanges with less history. You can edit the code though to add the timestamp to a recent date.
MA Turning Point StrategyStrategy based on going long on bottom turning point of a user-definable MA, and short at the top turning point. Can set any length of MA, and choose between SMA or EMA.
Kozlod - 3MA strategy with SL/PT (7 MA types)Classic 3 MA strategy.
Long - Short MA crossover Medium MA and cross is above Long MA
Short - Short MA crossunder Medium MA and cross is below Long MA
You can choose one of these MA types in params:
Simple Moving Average ( SMA )
Exponential Moving Average ( EMA )
Weighted Moving Average ( WMA )
Hull Moving Average ( HMA )
Volume-weighted Moving Average ( VWMA )
Smoothed Moving Average ( SMMA )
Double Exponential Moving Average ( DEMA )
You can select SL/PT % levels.
Kozlod - Yet Another Moving Average Cross Strategy (9 MA types)You can choose one of these MA types in params:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
Weighted Moving Average (WMA)
Arnaud Legoux Moving Average (ALMA)
Hull Moving Average (HMA)
Volume-weighted Moving Average (VWMA)
Least Square Moving Average (LSMA)
Smoothed Moving Average (SMMA)
Double Exponential Moving Average (DEMA)
Also you can select SL/PT % levels.
Kama and HMA trend followerThis strategy is meant to be used to follow trending markets. Use of other methodologies to define or anticipatetrends will greatly enhance profits. Enjoy!
Stratergy CM_Ultimate_MA_MTFThis is the script for the idea published by @ChrisMoody
Below is the link to the idea
()
Try the scripts for longer periods (e.g. 1 D).
The script still requires some tweaks as one of the issue is that the shorts and puts are being placed 2 candles after a confirmation is there. So use this strategy at your own risk.
Any inputs will really be helpful.
(Also thanks to @ChrisMoody for such a good indicator).