Optional early momentum signals, a volume filter, and a trend moving-average filter can confirm entries. It sizes positions as fixed contracts and exits with a percentage stop loss and take profit, while capping daily trades. Short trades can be disabled. Because orders are calculated on every tick, signals can change on the live bar.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Fast Length
int
8
fastLength
Slow Length
int
21
slowLength
Signal Length
int
5
signalLength
Position Size
string
Conservative
positionSizeOptions
Custom Contracts
int
5
customContracts
MACD Zero Line Cross
bool
true
useZeroCross
MACD Signal Line Cross
bool
true
useSignalCross
Enable Early Momentum Signals
bool
false
useEarlySignals
Momentum Threshold
float
0.25
momentumThreshold
Stop Loss %
float
1.8
stopLossPercent
Take Profit %
float
2.7
takeProfitPercent
Max Daily Trades
int
12
maxDailyTrades
Show all 17 settings
Setting
Type
Default
Variable
Enable Volume Filter
bool
true
useVolumeFilter
Volume Threshold (x avg)
float
1.5
volumeThreshold
Enable Trend Filter
bool
true
useTrendFilter
Trend MA Length
int
20
trendLength
Disable Short Trades
bool
true
useShortBias
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This strategy combines the Price Moving Average Ratio Percentile (PMARP) with Madrid Moving Average Ribbon concepts to identify overextended price conditions and trend shifts. It calculates PMAR or PMARP across selectable moving average types and a lookback wi
This strategy plots an On-Balance Volume oscillator in a separate pane and applies a fast and a slow exponential moving average to it. It enters long or short when those averages cross, with a strategy type that can reverse, stay long only, or stay short only,
This strategy calculates a Volume-Weighted Moving Average Convergence Divergence (VWMA MACD) and its histogram average to generate trade signals in a separate pane. It enters long positions when the MACD histogram crosses above its simple moving average and sh
This Pine Script strategy calculates the accumulation/distribution line with ta.accdist and its 21-period EMA. It plots these in a separate pane. The strategy issues long entries on ta.crossover of the accumulation/distribution line above its EMA and short ent
This strategy trades EUR/USD on the price chart using a fast and slow exponential moving average crossover filtered by RSI. It enters long when the fast EMA crosses above the slow EMA while RSI is above 50 and below the overbought level, and enters short on th
This strategy trades on the price chart using multiple indicators. It enters long positions when price dips meet conditions on Bollinger Bands 40 and 20, RSI, MFI, volume and other thresholds. It exits at custom ROI profit levels based on RSI or after timeout