Indicator · Pine Script v6 · On the chart

TopBot 2024 Adaptive

by drewstake

Prints manual long and short signal labels on the price chart using an adaptive scoring method trained on recent settled trade paths, with a warmup count before it starts.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code225
Settings8inputs
LicenceNone stated
Last update3 days ago26 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

TopBot 2024 Adaptive uses the previous closed candles, enters at the current open, and applies a minimum directional advantage and an optional positive-payoff requirement. A regular-hours-only option limits entries and exit labels can be shown. The comments say it is built for a five-minute index futures chart with assumed costs, is not a Strategy Tester strategy, and makes no profit claim.

Details

Published by

drewstake on GitHub

Draws

On the price chart

Markets

Indices

Timeframes

M1-M5

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Recent training pathsint240memory
Warmup settled pathsint24minimum
Minimum directional advantage (0.01R)int5advantageHundredths
Require positive estimated payoffboolfalsepositiveOnly
Entries during regular hours onlybooltruerthOnly
Show exit labelsbooltrueshowExits
Show current statusbooltrueshowStatus
Label history (bars)int600labelHistory
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.

Similar Pine Scripts

Neural Network Buy and Sell Signals

by solskjaeralesithio
1 stars

This indicator combines a neural network signal grading engine with moving average and trading session filters directly on the price chart. It plots buy and sell signal labels based on momentum, volatility, and trend conditions evaluated across selectable cand

Indicator v6 AI / machine learningMoving averages

This indicator scans NSE-listed stocks for momentum signals using Supertrend, multiple EMAs, MACD, and stochastic oscillator. It supports continuous or flip signal modes and displays matching setups in a customizable table at the bottom left of the chart. The

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup: Vijay Thakare Option Buying Scalping Setup Scanner

Function K-Means Clustering

by ricardosantos79
261 stars

This indicator implements a K-means clustering algorithm in Pine Script to partition two-dimensional data points into user-defined clusters. It features an internal pseudo-random number generator for centroid initialization and computes Euclidean distances acr

Indicator v4 AI / machine learning
Updated 4 years ago · None stated GitHub repository of Function K-Means Clustering
257 stars

This indicator uses a Lorentzian distance k-nearest neighbors classification algorithm to predict market direction based on up to five technical features, such as RSI, WaveTrend, CCI, and ADX. It compares current feature values against historical bar patterns

Indicator v5 AI / machine learningOscillators & momentum
Updated 6 weeks ago · None stated GitHub repository of Donald - Machine Learning Options

AI Trend Navigator

by hasnocool
106 stars

This indicator calculates a trend direction and smoothed moving average using a k-nearest neighbours (k-NN) classification algorithm directly on the main price chart. Users can select input price types, target values, neighborhood size, and smoothing periods.

Indicator v5 AI / machine learningTrend
Updated 2 years ago · GPL-3.0 GitHub repository of AI Trend Navigator

More AI / machine learning scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers