Machine Learning: Perceptron-Based Strategy [5] (v.3) calculates predictions based on sample size, threshold settings, and optional volatility or volume filters. Trades enter when the perceptron classifies bullish or bearish conditions and exit after a fixed holding period duration or via an optional trailing stop. Key inputs configure the sample depth, threshold, filter selection, and trailing stop toggle. Standard fixed stop loss levels are disabled by default.
Perceptron machine learning algorithm written from scratch
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Start Date
time
timestamp('01 Dec 2023 00:00:00')
StartDate
Stop Date
time
timestamp('31 Dec 2025 23:45:00')
StopDate
Time Frame
timeframe
1
Timeframe
Sample Size
int
500
Depth
Period
int
14
Period
Threshold [0..100]
int
28
Threshold
Fltr
bool
true
Fltr
Filter
string
Volatility
Filter
Holding Period
int
10
Holding
Ma
bool
false
Ma
Bar Color
bool
true
Barcolor
Trailing
bool
false
Trailing
Show all 14 settings
Setting
Type
Default
Variable
Info
bool
true
Info
Backtest
bool
false
Backtest
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 calculates Bollinger Bands and Aroon oscillator values to identify mean-reversion opportunities. It enters a long position using full equity when the closing price crosses below the lower Bollinger Band while Aroon Up remains above a user-specifi
Donald - AI Futures 5M 15M Timeframe is an overlay trading strategy designed for intraday futures trading. It utilizes rational quadratic kernel regression to construct dynamic momentum zones and smoothed price boundaries on the main price chart. The strategy
STRG-BBForce is a Bollinger Bands trend-following strategy. It calculates standard Bollinger Bands and tracks directional alignment across the upper, lower, and basis lines. When all three lines slope upward, it opens a long position and closes short positions
This strategy uses multiple VWAP anchors and a custom Lull indicator to generate buy and sell signals on the Nasdaq price chart. It plots the VWAP trend line and three VWAP anchors with customizable colors and mitigation methods. The Lull indicator produces si
This overlay strategy plots a two-timeframe Ichimoku setup on the price chart, with Tenkan, Kijun, Chikou, and Kumo from a base higher timeframe and an optional highest-timeframe cloud. It allows two entries in the same direction and uses ATR-based trailing st
This strategy generates buy and sell signals based on Bollinger Band crossovers combined with a simple moving average trend filter. It enters a long position when price crosses above the lower band while trading above the SMA filter line, and enters a short po