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

MQL5 Experts

Spécifications


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 




Répondu

1
Développeur 1
Évaluation
(25)
Projets
33
24%
Arbitrage
3
33% / 33%
En retard
4
12%
Gratuit
2
Développeur 2
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
3
Développeur 3
Évaluation
(7)
Projets
7
29%
Arbitrage
0
En retard
0
Chargé
4
Développeur 4
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Travail
5
Développeur 5
Évaluation
(15)
Projets
34
24%
Arbitrage
3
0% / 33%
En retard
2
6%
Travail
6
Développeur 6
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
7
Développeur 7
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
8
Développeur 8
Évaluation
(839)
Projets
1433
72%
Arbitrage
117
29% / 47%
En retard
356
25%
Travail
Publié : 3 articles
9
Développeur 9
Évaluation
(2)
Projets
2
50%
Arbitrage
1
0% / 0%
En retard
0
Travail
10
Développeur 10
Évaluation
(450)
Projets
560
26%
Arbitrage
22
41% / 36%
En retard
85
15%
Gratuit
Publié : 6 codes
11
Développeur 11
Évaluation
Projets
0
0%
Arbitrage
1
0% / 0%
En retard
0
Travail
12
Développeur 12
Évaluation
(5)
Projets
8
13%
Arbitrage
0
En retard
0
Travail
13
Développeur 13
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
14
Développeur 14
Évaluation
(11)
Projets
16
31%
Arbitrage
3
67% / 0%
En retard
0
Gratuit
15
Développeur 15
Évaluation
(270)
Projets
550
49%
Arbitrage
55
40% / 36%
En retard
227
41%
Travail
16
Développeur 16
Évaluation
(238)
Projets
253
52%
Arbitrage
0
En retard
5
2%
Travail
17
Développeur 17
Évaluation
(1)
Projets
1
100%
Arbitrage
0
En retard
0
Gratuit
18
Développeur 18
Évaluation
(75)
Projets
231
73%
Arbitrage
6
100% / 0%
En retard
1
0%
Gratuit
19
Développeur 19
Évaluation
(66)
Projets
73
5%
Arbitrage
33
15% / 36%
En retard
6
8%
Travail
20
Développeur 20
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
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

Informations sur le projet

Budget
30 - 200 USD
Délais
de 1 à 10 jour(s)

Client

Commandes passées1
Nombre d'arbitrages0