EA Based on Linear Regression Curve, with Offsets

MQL4 Indicadores Experts

Trabalho concluído

Tempo de execução 10 dias
Comentário do cliente
Reliable Professional. Easy to work with, and very accommodating.
Comentário do desenvolvedor
Very kind customer who properly explained the calculations he wanted me to perform in his EA and indicator.

Termos de Referência


I would like to order an EA, for which I am willing to pay $100. The EA is based on the Linear Regression Curve, calculated with the Least Squares Method. 

I would like the ability to input a period length for the calculation, as well as an offset modifier, to adjust the equation with which the linear regression curve is calculated.

The EA will create buy and sell orders based on offsets of the linear regression curve.

I'm uploading a sample of a code to help demonstrate the calculation. The equation demonstrates the parameters I would like the trading EA to utilize.

I want the EA to extrapolate the data from left to right, and use the formula, y = mx + b, where m and b are calculated with the Least Squares Method, and the X is the input for the length, where the X can be modified with the offset parameter.

The offsets are set in the y = mx + b equation, where the x is altered, y = m(period - 1 - offset) + b. I want the linear regression curve to be calculated at every bar, so that it is a constantly changing curve. The offset is not calculated at every bar, simply set outside the calculation of the slope and y intercept. The offset essentially just amplifies or dilutes the calculated slope at a given point.

To clarify, I do not want the line to be of a constant slope, where the slope is calculated only once for the entire line. I want the curve to be calculated at ever bar, so that it moves with every bar.

Because I want the calculation to produce a curve, and I want the data to be extrapolated from left to right, for the x parameter, the i counter runs from 0 to the period, and for the y parameter counts down in the reference bracket, Close[Period-i]. I want this calculation however to be done for every bar on the chart, which it seems requires the Bars and Indicator Counted Function. MQL4 is kind of tricky.

Additionally would like the EA to utilize a trailing stop, and a stop loss, which I can modify. 

The EA should be able to buy or sell, multiple currency pairs at once, based on whichever pair fits the criteria. 

The conditions that controls buy or sell orders, is the positioning of multiple sets of positive and negative offset buffers for the linear regression curve

For a sell, if the 2 day and 3 day negative offsets are below the 2 day and 3 day positive offsets, and the current price is below the weighted moving average, the bot will sell that currency pair.

For a buy, if the 2 day and 3 day negative offsets are above the 2 day and 3 day positive offsets, and the current price is above the weighted moving average, the bot will buy that currency pair.

I would also like to be able to add more buffers to the buy and sell evaluation if possible.

Hopefully the code that I am uploading is clear enough on the equation to calculate the linear regression curve, and the linear regression offsets.

Arquivos anexados:

Respondido

1
Desenvolvedor 1
Classificação
(7)
Projetos
10
20%
Arbitragem
3
0% / 100%
Expirado
6
60%
Livre
2
Desenvolvedor 2
Classificação
(34)
Projetos
55
31%
Arbitragem
8
0% / 63%
Expirado
13
24%
Livre
Publicou: 22 artigos, 1 código
3
Desenvolvedor 3
Classificação
(70)
Projetos
91
25%
Arbitragem
26
19% / 54%
Expirado
25
27%
Livre
4
Desenvolvedor 4
Classificação
Projetos
0
0%
Arbitragem
1
0% / 100%
Expirado
0
Trabalhando
5
Desenvolvedor 5
Classificação
(1)
Projetos
2
0%
Arbitragem
3
0% / 67%
Expirado
0
Livre
6
Desenvolvedor 6
Classificação
(298)
Projetos
478
40%
Arbitragem
105
40% / 24%
Expirado
82
17%
Carregado
Publicou: 2 códigos
Pedidos semelhantes
hi, I need a quantower script I need a trailing stop at the 20 ema, And a more complicated version would be a breakout of the Asian session and a retest of the 9ema for an entry and a training stop at the 20 ema
Hi, I’m looking for a **ready-made MT5 scalping EA specifically for Gold (XAUUSD)**. My main requirement is an **HTF scalping strategy**, so I’m looking for an existing robot that is already developed and can be tested before I make the purchase. I’m not looking to build one from scratch at this stage. I would like to first test the EA on a **demo account** to see how it performs under live market conditions and
Title Project Description I am looking for an experienced developer specialized in Python, MetaTrader 5, algorithmic trading systems, market structure and XAUUSD , to work on an existing professional Gold/Forex AI signal platform. The project is already developed and operational. I am NOT looking for a developer to build a new trading system from scratch. The main objective is to improve the existing
Rebate robot 30 - 100 USD
Need rebate robot,for pairs like gbpusd,eurusd,usdjpy,usdchf,Spreads are like around 2.5 pip,MAy be better hedge ea both buy and sell,i will get benifit just from rebate,so try ur best to do what i want,and if u r not expert plz go away plz its not simple job,if u already have the robot so i can test it will be surely selected,also u can get some benifit from this screen shoots that i attached,its from another job in
We are looking for an experienced MQL5 developer or algorithmic trader who already owns a fully developed, functional, and profitable Expert Advisor (EA) specifically designed or successfully tested for Prop Firm trading. We are not looking for someone to develop a new trading robot from scratch. Our priority is to collaborate with someone who already has an operational trading system with a proven track record
EMA Pin Bar EA 30 - 100 USD
I would like an EA that implements the strategy below: 1. It requires a 6 EMA, 18EMA, 50EMA and 200SMA 2. Trend filter: 50 is above 200 for a buy. 50 below 200 for a sell 3. FOR A BUY: After candle close, if 6 has crossed above 18 and trend filter is a buy: a. if the last candle was a pin bar (body is less than 50% of candle size, and upper wick is less than 10% of candle size) b. check if the candle is within 10
I am looking for an experienced MQL5 developer or development team to build a scalable Telegram-to-MT5 copy trading system. The main purpose of the system is to monitor trading signals from my Telegram channel and automatically execute those signals on connected client MT5 accounts. Core Requirements Receive and parse trading signals from Telegram Automatically execute trades on connected MT5 accounts Support more
Hi, I’m looking to develop a custom XAUUSD (Gold) trading EA for MT5. I initially wanted to get an EA, but I don’t currently have a specific trading strategy. I would like help developing a suitable strategy from scratch and then converting it into a fully automated MT5 EA. My account size will be around $1,000. I’m interested in a scalping strategy that can trade during both the London and New York sessions. My main
Sami 30+ USD
I've built the bot as a single-page app that runs the three-step workflow you described. Since the page can't pull live broker data, it runs on simulated 5-minute candles or on a CSV you paste in.I've published the trading bot page. I haven't opened or run it, so I can't confirm the logic behaves as intended. It runs on simulated 5-minute candles (or a CSV you paste in) and builds the 4H and 30M charts from them. How
Thana ram 30 - 200 USD
Hello, I want to develop a custom MT5 Expert Advisor (EA) for XAUUSD Gold. IMPORTANT: I want a proper rule-based automated trading EA, NOT a martingale, grid or guaranteed-profit bot. 1. MARKET & TIMEFRAME - Platform: MT5 - Symbol: XAUUSD only - Main trend timeframe: M15 - Entry timeframe: M5 - Must support broker suffixes such as XAUUSDm, XAUUSD., etc. 2. TREND RULE BUY trend: - M15 price above EMA 50 - EMA 50 above

Informações sobre o projeto

Orçamento
100+ USD
Prazo
para 60 dias