Ocs Ai Trader

It acts as an AI Trade Assistant that helps you decide the optimal times to buy or sell securities, providing you with precise target prices and stop-loss level to optimise your gains and manage risk effectively.
System Components
The trading system is built on 4 fundamental layers :
- Time series Processing layer
- Signal Processing layer
- Machine Learning
- Virtual Trade Emulator
Time series Processing layer
This is first component responsible for handling and processing real-time and historical time series data.
In this layer Signals are extracted from
averages such as : volume price mean, adaptive moving average
Estimates such as : relative strength stochastics estimates on supertrend
Signal Processing layer
This second layer processes signals from previous layer using sensitivity filter comprising of an Probability Distribution Confidence Filter
The main purpose here is to predict the trend of the underlying, by converging price, volume signals and deltas over a dominant cycle as dimensions and generate signals of action.
Key terms
- Dominant cycle is a time cycle that has a greater influence on the overall behaviour of a system than other cycles.
The system uses Ehlers method to calculate Dominant Cycle/ Period.
Dominant cycle is used to determine the influencing period for the underlying.
Once the dominant cycle/ period is identified, it is treated as a dynamic length for considering further calculations
Predictive Adaptive Filter to generate Signals and define Targets and Stops
An adaptive filter is a system with a linear filter that has a transfer function controlled by variable parameters and a means to adjust those parameters according to an optimisation algorithm. Because of the complexity of the optimisation algorithms, almost all adaptive filters are digital filters. Thus Helping us classify our intent either long side or short side
The indicator use Adaptive Least mean square algorithm, for convergence of the filtered signals into a category of intents, (either buy or sell)
Machine Learning
The third layer of the System performs classifications using KNN K-Nearest Neighbour is one of the simplest Machine Learning algorithms based on Supervised Learning technique.
K-NN algorithm assumes the similarity between the new case/data and available cases and put the new case into the category that is most similar to the available categories.
K-NN algorithm stores all the available data and classifies a new data point based on the similarity. This means when new data appears then it can be easily classified into a well suite category by using K- NN algorithm. K-NN algorithm can be used for Regression as well as for Classification but mostly it is used for the Classification problems.
Virtual Trade Emulator
In this last and fourth layer a trade assistant is coded using trade emulation techniques and the Lines and Labels for Buy / Sell Signals, Targets and Stop are forecasted!
How to use
The system generates Buy and Sell alerts and plots it on charts
Buy signal
Buy signal constitutes of three targets {namely T1, T2, T3} and one stop level
Sell signal
Sell signal constitutes of three targets {namely T1, T2, T3} and one stop level
What Securities will it work upon ?Volume Informations must be present for the applied security
The indicator works on every liquid security : stocks, future, forex, crypto, options, commodities
What TimeFrames To Use ?
You can use any Timeframe, The indicator is Adaptive in Nature,
I personally use timeframes such as : 1m, 5m 10m, 15m, ..... 1D, 1W
This Script Uses Tradingview Premium features for working on lower timeframesIn case if you are not a Tradingview premium subscriber you should tell the script that after applying on chart, this can be done by going to settings and unchecking "Is your Tradingview Subscription Premium or Above " OptionHow To Get Access ?
You will need to privately message me for access mentioning you want access to "Ocs Ai Trader" Use comment box only for constructive comments. Thanks !
- Adds Regime Filter and Volatility Probability Scalper
- Adds Quadratic Regression Filters
- Adds Gaussian Lorentiz Normalisation and Daten Scaling
- Adds Volume Float based Support and Resistance
- Removes Dependencies from second based data unless necessarily forced by user!
Adds Marubozu Abnormality Detection
Adds Probability Average and Probability variable Filtering
Adds Historical Buy Sell Positions by Algo
Adds Hyperbolic Trend Tests
Adds Obv based Learnings
Adds Marubozu extremes
Adds Dynamic Target 4 and Target 5
Adds Signal Improvements
adds triple impulse of balance volume
Fixes issues in target booking
1. Gaussian Structure
We’ve introduced a Gaussian-based framework to enhance signal smoothness and reduce market noise. A Gaussian approach applies weights along a bell-curve distribution, helping the strategy respond more precisely to recent price data while still smoothing out erratic price movements. This leads to more reliable trend detection and fewer false signals—key for better entry and exit decisions.
2. Backtesting Compiler
To improve the accuracy of performance metrics and streamline your strategy development, a backtesting compiler has been added. This tool runs systematic tests on historical data, helping you evaluate how well your strategy would have performed in past market conditions. It also makes optimization faster and more reliable, so you can identify winning parameter sets and adapt to changing market dynamics with confidence.
3. TRIX-Based System
A TRIX (Triple Exponential) component has been incorporated to further reduce lag and highlight momentum shifts. TRIX is known for quickly detecting trend changes while filtering out minor price fluctuations. Including TRIX in the script provides an additional momentum perspective, helping confirm signals from other indicators and refine overall entry/exit timing.
4. Derivative Filters
Lastly, we’ve added derivative-based filters to help isolate significant price moves from market noise. By focusing on higher-order changes in the price action (the “derivative” aspect), these filters can detect early shifts in momentum and volatility. This leads to more accurate alerts and reduces the likelihood of chasing sudden, short-lived price spikes.
CVD (Cumulative Volume Delta) tracks the net difference between buying and selling volume over time, providing insights into whether buyers or sellers are dominating the market. When price action and CVD diverge, it can signal an impending shift in momentum—often before traditional price-based indicators react. Including a CVD-based Divergence Signal Structure helps traders spot subtle imbalances in market participation, enabling earlier and more informed entry or exit decisions.
We have updated the script structure to lookout for these divergences
Skrip jemputan sahaja
Hanya pengguna yang diberikan kebenaran oleh penulis mempunyai akses kepada skrip ini dan ini selalunya memerlukan pembayaran. Anda boleh menambahkan skrip kepada kegemaran anda tetapi anda hanya boleh menggunakannya selepas meminta kebenaran dan mendapatkannya daripada penulis — ketarhui lebih lanjut di sini. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi Ankit_1618 secara terus.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Amaran: sila baca panduan kami untuk skrip jemputan sahaja sebelum memohon akses.
→ ocstrader.com
About me
AlgoTrading Certification, ( University of Oxford, Säid Business School )
PGP Research Analysis, ( NISM, SEBI )
Electronics Engineer
Penafian
Skrip jemputan sahaja
Hanya pengguna yang diberikan kebenaran oleh penulis mempunyai akses kepada skrip ini dan ini selalunya memerlukan pembayaran. Anda boleh menambahkan skrip kepada kegemaran anda tetapi anda hanya boleh menggunakannya selepas meminta kebenaran dan mendapatkannya daripada penulis — ketarhui lebih lanjut di sini. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi Ankit_1618 secara terus.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Amaran: sila baca panduan kami untuk skrip jemputan sahaja sebelum memohon akses.
→ ocstrader.com
About me
AlgoTrading Certification, ( University of Oxford, Säid Business School )
PGP Research Analysis, ( NISM, SEBI )
Electronics Engineer