Create a custom MQL4 indicator that draws a sine wave on a price chart

MQL5 Asesores Expertos

Tarea técnica


Create a custom MQL4 indicator that draws a sine wave aligned to a fixed anchor bar on the main chart window as per the screen shot below. The wave should maintain its position across chart updates and platform restarts.

Inputs
BarsOnTheChartAtAnchor Number of bars from bar 0
Amplitude Amplitude of the sine wave (e.g. 0.0005 for 5 pips)
CycleLength Length (in bars) of one full sine wave cycle
PastColor Colour of the sine wave before the anchor bar
FutureColor Colour of the sine wave after the anchor bar

Behavior
The sine wave is centered on the midpoint (average of high and low) of the anchor bar. If BarsOnTheChartAtAnchor = 19300, and the chart currently has 19500 bars, the anchor is at index 19300 so 200 bars less than the current gars on the chart.
The wave must be calculated consistently across chart updates and platform restarts.
It should not shift as new bars arrive — it must stay anchored at the same bar index from bar 0.

The wave must draw:
Backwards in time (past) using PastColor
Forwards into the future using FutureColor
Draw directly in the main chart window, not a separate indicator window.
Draw full sine cycles extending backward and forward from the anchor bar, with the anchor at the cycle’s midpoint 




Han respondido

1
Desarrollador 1
Evaluación
(25)
Proyectos
33
24%
Arbitraje
3
33% / 33%
Caducado
4
12%
Libre
2
Desarrollador 2
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(7)
Proyectos
7
29%
Arbitraje
0
Caducado
0
Trabajando
4
Desarrollador 4
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Trabaja
5
Desarrollador 5
Evaluación
(15)
Proyectos
34
24%
Arbitraje
3
0% / 33%
Caducado
2
6%
Trabaja
6
Desarrollador 6
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
7
Desarrollador 7
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
8
Desarrollador 8
Evaluación
(839)
Proyectos
1433
72%
Arbitraje
117
29% / 47%
Caducado
356
25%
Trabaja
Ha publicado: 3 artículos
9
Desarrollador 9
Evaluación
(2)
Proyectos
2
50%
Arbitraje
1
0% / 0%
Caducado
0
Trabaja
10
Desarrollador 10
Evaluación
(450)
Proyectos
560
26%
Arbitraje
22
41% / 36%
Caducado
85
15%
Libre
Ha publicado: 6 ejemplos
11
Desarrollador 11
Evaluación
Proyectos
0
0%
Arbitraje
1
0% / 0%
Caducado
0
Trabaja
12
Desarrollador 12
Evaluación
(5)
Proyectos
8
13%
Arbitraje
0
Caducado
0
Trabaja
13
Desarrollador 13
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
14
Desarrollador 14
Evaluación
(11)
Proyectos
16
31%
Arbitraje
3
67% / 0%
Caducado
0
Libre
15
Desarrollador 15
Evaluación
(270)
Proyectos
550
49%
Arbitraje
55
40% / 36%
Caducado
227
41%
Trabaja
16
Desarrollador 16
Evaluación
(238)
Proyectos
253
52%
Arbitraje
0
Caducado
5
2%
Trabaja
17
Desarrollador 17
Evaluación
(1)
Proyectos
1
100%
Arbitraje
0
Caducado
0
Libre
18
Desarrollador 18
Evaluación
(75)
Proyectos
231
73%
Arbitraje
6
100% / 0%
Caducado
1
0%
Libre
19
Desarrollador 19
Evaluación
(66)
Proyectos
73
5%
Arbitraje
33
15% / 36%
Caducado
6
8%
Trabaja
20
Desarrollador 20
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
I need to build an EA based on MA and Heikenashi and Chandelier exit ..All details will be shared with developer, EA is required early. EA need to have start and end time and daily profit setup
Description: Looking for a professional developer to build a smart trading bot for MT5 called AZIZ EA , based on my custom indicator logic (full logic provided), including: Pairs: XAUUSD, EURUSD, USDJPY 5 trading modes (Safe, Profit, Manual, Unlimited, Target) Free AI tools (news filter, momentum analysis, smart exit) Safe money management with dynamic lot sizing Alerts & push notifications 📄 Full specifications
Hello expert developer i need profitable ready made MT5 EA and i want to purchase it do let me know how much you want to sell the EA there must be backtesting with high win rate i need very profitable arbitrage EA I'll be looking forward to expert developer only please if you know you have zero idea about what am saying don't come and waste my time thank you very much
Project Overview: I need a trading bot that automatically detects and buys newly listed currencies from the Surge tab on Axiom Pro within milliseconds of listing, based on user-defined parameters. Axiom Pro has no API or websocket, but it uses TradingView as its chart/data source, so the bot must integrate via TradingView alerts or another viable method to achieve real-time execution. Core Requirements: Data Source &
hello great developer I’m looking for a skilled ProRealTime developer to replicate my TradingView “Master Pattern” indicator exactly (see Loom video and attached Pine Script). The final ProRealTime version must match TradingView visually and functionally, with an added table showing higher timeframe ATR, minor trend, and major trend
A Grid EA with a hedge that closes losing trades with current profits utilizes a grid trading strategy combined with hedging techniques to mitigate risk and potentially lock in profits. It involves placing buy and sell orders at predetermined price intervals, forming a grid. When a trade within the grid moves against the initial direction, a hedge (opposite position) is opened. If the market reverses, the losing
Posiada dostęp do oprogramowania Pine Script z platformą TradingView, która jest w pełni dostępna na MetaTrader 5 (MQL5) oraz MetaTrader 4 (MQL4). Dodanie dwa etapy: Tworzenie identycznego wskaźnika w MQL5 (z tymi samymi oznaczeniami, logiką i parametrami co w oryginalnym Pine Script). Na podstawie tego rozwiązania Expert Advisora (EA) w wersji MQL5 i MQL4, który będzie otwierał i zamykał znaczenie z sygnałami
Hello Great developer i have one existing work on trade station that i just need to correct two line and send me the correct code back i will be looking for a great developer that will build for it Thank Best regards
Modification 80+ USD
hello great developer This NT8 strategy is already coded but has issues: FVG interface not showing Position sizing mode 1 and 2 not calculating correctly Very few trades triggered (14 in 2 months) Logic might skip valid setups. Please review and fix Thanks
Hello Great Developer I need someone to automate my trading strategy to streamline operations and improve efficiency. Scope of work - Develop and implement an automated trading system based on my strategy. - Ensure compatibility with my current trading platform. - Provide ongoing support and updates as needed. Ideal Candidate - Experience in trading automation and algorithm development. - Proficient with trading

Información sobre el proyecto

Presupuesto
30 - 200 USD
Plazo límite de ejecución
de 1 a 10 día(s)

Cliente

Encargos realizados1
Número de arbitrajes0