Specification
Code Conversion from Pine Script(TradingView) to MQL5.
First of all we must define the general requirements to start this job:
Requirements for the code:
The code needs to be:
- Object oriented.
- Highly modular.
- Comments in functions are required (preferably in English).
A Lorentzian Distance Classifier (LDC) is a Machine Learning classification algorithm capable of categorizing historical data from a multi-dimensional feature space. This indicator demonstrates how Lorentzian Classification can also be used to predict the direction of future price movements when used as the distance metric for a novel implementation of an Approximate Nearest Neighbors (ANN) algorithm.
General Settings:- Source - This has a default value of "hlc3" and is used to control the input data source.
- Neighbors Count - This has a default value of 8, a minimum value of 1, a maximum value of 100, and a step of 1. It is used to control the number of neighbors to consider.
- Max Bars Back - This has a default value of 2000.
- Feature Count - This has a default value of 5, a minimum value of 2, and a maximum value of 5. It controls the number of features to use for ML predictions.
- Color Compression - This has a default value of 1, a minimum value of 1, and a maximum value of 10. It is used to control the compression factor for adjusting the intensity of the color scale.
- Show Exits - This has a default value of false. It controls whether to show the exit threshold on the chart.
- Use Dynamic Exits - This has a default value of false. It is used to control whether to attempt to let profits ride by dynamically adjusting the exit threshold based on kernel regression.
Note: The Feature Engineering section is for fine-tuning the features used for ML predictions. The default values are optimized for the 4H to 12H timeframes for most charts, but they should also work reasonably well for other timeframes. By default, the model can support features that accept two parameters (Parameter A and Parameter B, respectively). Even though there are only 4 features provided by default, the same feature with different settings counts as two separate features. If the feature only accepts one parameter, then the second parameter will default to EMA-based smoothing with a default value of 1. These features represent the most effective combination I have encountered in my testing, but additional features may be added as additional options in the future.
- Feature 1 - This has a default value of "RSI" and options are: "RSI", "WT", "CCI", "ADX".
- Feature 2 - This has a default value of "WT" and options are: "RSI", "WT", "CCI", "ADX".
- Feature 3 - This has a default value of "CCI" and options are: "RSI", "WT", "CCI", "ADX".
- Feature 4 - This has a default value of "ADX" and options are: "RSI", "WT", "CCI", "ADX".
- Feature 5 - This has a default value of "RSI" and options are: "RSI", "WT", "CCI", "ADX".
- Use Volatility Filter - This has a default value of true. It is used to control whether to use the volatility filter.
- Use Regime Filter - This has a default value of true. It is used to control whether to use the trend detection filter.
- Use ADX Filter - This has a default value of false. It is used to control whether to use the ADX filter.
- Regime Threshold - This has a default value of -0.1, a minimum value of -10, a maximum value of 10, and a step of 0.1. It is used to control the Regime Detection filter for detecting Trending/Ranging markets.
- ADX Threshold - This has a default value of 20, a minimum value of 0, a maximum value of 100, and a step of 1. It is used to control the threshold for detecting Trending/Ranging markets.
- Trade with Kernel - This has a default value of true. It is used to control whether to trade with the kernel.
- Show Kernel Estimate - This has a default value of true. It is used to control whether to show the kernel estimate.
- Lookback Window - This has a default value of 8 and a minimum value of 3. It is used to control the number of bars used for the estimation. Recommended range: 3-50
- Relative Weighting - This has a default value of 8 and a step size of 0.25. It is used to control the relative weighting of time frames. Recommended range: 0.25-25
- Start Regression at Bar - This has a default value of 25. It is used to control the bar index on which to start regression. Recommended range: 0-25
Display Settings:
- Show Bar Colors - This has a default value of true. It is used to control whether to show the bar colors.
- Show Bar Prediction Values - This has a default value of true. It controls whether to show the ML model's evaluation of each bar as an integer.
- Use ATR Offset - This has a default value of false. It controls whether to use the ATR offset instead of the bar prediction offset.
- Bar Prediction Offset - This has a default value of 0 and a minimum value of 0. It is used to control the offset of the bar predictions as a percentage from the bar high or close.
Backtesting Settings:
- Show Backtest Results - This has a default value of true. It is used to control whether to display the win rate of the given configuration.
Responded
1
Rating
Projects
479
66%
Arbitration
5
40%
/
0%
Overdue
4
1%
Free
Published: 8 codes
2
Rating
Projects
4
0%
Arbitration
0
Overdue
0
Free
Similar orders
Hope you're well. I have two trading view indicators that I need combined and backtested if you do that? I have alerts already in place and the win rate looks good I just can't backtest that far. I need a few minor tweaks to the code as well. Some lable fixes, time frames for trading hours and possibly extending the lines for more entries. It's a basic code based off fibonacci numbers with a break and retest. I can
Highly experienced strategy writer required
300 - 1000 USD
Hello, I want to create an MT4 indicator identical to the one shown in the attached image. What I need: – Red arrows = sell signals at reversal zones – Green arrows = buy signals at reversal zones – Arrows appearing at candle closes for confirmation – It should work best on Forex and cryptocurrency pairs on the M1 timeframe. – A high win rate (90% or more). – There should be no repainting or other fraudulent
Hi developers I'm looking for someone who can create an indicatore like the image I'm attaching. The second phase to create a bot out of the indicatore. Waiting to hear from legit programmers. I'll want tk see the indicatore in visual mode before delivery to confirm that I doesn't repaint or place at a delay after market as moved on. The emphasis should be on accuracy without too much lag
How to Make Money in MetaTrader 5 (MT5) Using Scripts and Indicators One of the world's most powerful and widely used trading platforms is MetaTrader 5 (MT5), developed by MetaQuotes Software. Its adaptability enables traders to trade forex, stocks, commodities, cryptocurrencies, and a variety of other financial instruments, in addition to providing robust support for algorithmic trading via custom indicators and
GMG bot
50 - 100 USD
I am seeking the development of a custom, non-repainting technical indicator for use in the forex market, specifically designed to integrate seamlessly with a trading robot (Expert Advisor) on the MetaTrader 5 (MT5) platform. The indicator should combine both trend and momentum analysis to generate high-quality buy and sell signals for automated trading strategies. It must work efficiently across major forex pairs
I want an experienced developer who can work on my existing EA and add additional indicators to make it profitable in trading gold, forex, commodities, and other instruments. The trading robot will detect the market move and place a trade once it meets the requirements. I want a profitable trading robot, which I will test very well before the payment
Looking for an Experienced MQL5 Developer to code fully automated EA based on Trend Direction and Price Action. Symbols traded are Forex, Commodities, Indices, Crypto and Stock CFD’s. EA Strategy incorporates several strategies, including Breakout and Fibonacci Retracements for Trend Momentum Trading. Multi Time Frame Trading Based on 4 Time Charts, 15MIN, 1HR, 4HR, Daily Chart. EA needs Adaptability for
Dear Team, I want to migrate end to end configure with purchase advance BTC signal indicator with algo trading also back tested report 82% Quantum Bitcoin EA 5 Experts Bogdan Ion Puscasu Version: 2.1 Updated: 10 January 2025 Activations: 10 Quantum Bitcoin EA : There is no such thing as impossible, it's only a matter of figuring out how to do it! Step into the future of Bitcoin trading with Quantum
Searching for a Math Specialist
100 - 400 USD
Hi I coded some years ago a grid hedge EA. The backtests were pretty mindblowing and I also generated nice profits but I also made a lot of losses. I need someone who has deep understanding in mathematics and statistics because it's not just only a grid logic behind it. I would like to figure out, what lead into those losses. I didn't find any solution yet and I have no idea where I should search the next. Please
The process will be very simple, consisting of a buy and sell signal with a success rate of 92% to 95%. This signal must be accurate and free of any repainting or other fraudulent elements, as it will be tested on a live chart on the short-term timeframe (M1), as shown in the image. Experts with extensive experience in this field, or those with previous experience working with secret societies, corporations, and
Project information
Budget
30+ USD
For the developer
27
USD