Functions to calculate S1, S2, S3, R1, R2, R3 and pivot point levels

MQL4 Indicateurs Scripts

Tâche terminée

Temps d'exécution 5 jours
Commentaires du client
Great work, thanks.

Spécifications

I'm looking for the following functions to calculate pivot points, support and resistance levels:

  • function to return the pivot point level using 3 different methods of five-point system and its common variations depending on the given parameter (1-3) or enum and the timeframe:
    • Pivot Point for Current = High (previous) + Low (previous) + Close (previous) / 3
    • P = ((Today\'s O) + Yesterday\'s (H + L + C)) / 4
    • Pivot point system was developed by Tom DeMark
  • function to return S1, S2, S3, R1, R2, R3 values for given timeframe and type of value (either separate functions or all in one):
    • Resistance 1 = (2 x Pivot Point) – Low (previous period) 
    • Support 1 = (2 x Pivot Point) – High (previous period) 
    • Resistance 2 = (Pivot Point – Support 1) + Resistance 1 
    • Support 2 = Pivot Point – (Resistance 1 – Support 1) 
    • Resistance 3 = (Pivot Point – Support 2) + Resistance 2
    • Support 3 = Pivot Point – (Resistance 2 – Support 2)

You can use MT4, but I also considering MT5. It would be great to work on both, but not necessary.

Suggested params: double getPivotPoint(ENUM_TIMEFRAMES tf, uint method), getSupportLevel(ENUM_TIMEFRAMES tf, uint n), getResistanceLevel(ENUM_TIMEFRAMES tf, uint n)

So you can either create 3 functions (for PivotPoint, Support and Resistance levels) or 7, it's up to you.

See Pivot Points page for more details.

Répondu

1
Développeur 1
Évaluation
(885)
Projets
1410
67%
Arbitrage
123
32% / 41%
En retard
217
15%
Gratuit
Publié : 1 code
2
Développeur 2
Évaluation
(620)
Projets
680
57%
Arbitrage
25
16% / 60%
En retard
228
34%
Gratuit
3
Développeur 3
Évaluation
(636)
Projets
1006
47%
Arbitrage
33
36% / 36%
En retard
99
10%
Travail
Publié : 6 codes
4
Développeur 4
Évaluation
(414)
Projets
670
33%
Arbitrage
60
17% / 32%
En retard
113
17%
Travail
5
Développeur 5
Évaluation
(253)
Projets
358
49%
Arbitrage
24
25% / 50%
En retard
80
22%
Gratuit
6
Développeur 6
Évaluation
(33)
Projets
35
40%
Arbitrage
11
9% / 91%
En retard
4
11%
Gratuit
Publié : 4 codes
7
Développeur 7
Évaluation
(807)
Projets
1127
43%
Arbitrage
47
49% / 23%
En retard
84
7%
Gratuit
8
Développeur 8
Évaluation
(53)
Projets
79
18%
Arbitrage
13
15% / 54%
En retard
5
6%
Gratuit
Commandes similaires
a one min scalper which will scalp on a one minute timeframe and can trade a low account to a big one and is more effective in mt4 and mt5 for a very short period of time yeah
Mt5 ea 30+ USD
I have a fast execution ea that need a little touch, it trade on gold and my problem is about the risk ratio the tp is 3pip and stop loss 20 but i cannot get it right to make the average win larger and average loss lower. I would like to know if i can get help to get it right without touching the tragedy and the trade frequency. Those two pictures I attached is the example of what my bot actually do like i explained
hello could you make me same indicator for ninja ? https://www.youtube.com/watch?v=pxs2MuqvH3w if yes for how much and timeline ? thks in advance and please reply me as soon as possible you get my notification
Hello, I want a simple bot for NinjaTrader8. I need a bot that operates automatically on Nasdaq (NQ/MNQ). Requirements: open buys and sells following a simple trend strategy, configurable stop loss and take profit, risk per trade of 1 to 2% of capital, if it loses 3% in a day, stop trading until the next day. Compatible with backtesting, delivery of the source code and the working bot in NinjaTrader 8. My initial
[8/4/2026 4:54 AM] DR.HassaN: AI Gold Analysis Web Platform Requirements Hello, I would like to build a professional AI-powered web platform dedicated exclusively to Gold (XAU/USD) analysis . This is NOT a trading platform or broker . It is an intelligent analysis platform that provides high-quality trading signals and detailed market analysis. The platform should have a modern, premium design with my own branding
Ema100+Fibo 30+ USD
I need a robot that sends me a notification when the price aligns with the EMA and my Fibonacci levels—using specific Fibonacci settings—and then either opens a trade based on the Fibonacci SL and TP or simply sends me a notification. And I want the robot to run in both the Strategy Tester and on a demo account, so I can test it beforehand
I need a custom technical indicator that generates an equidistant channel with two specific structural features: 1. Vertical Multi-Intervals: The ability to plot more than 5 parallel, able to allow me to put intervals 2. Horizontal Angle Input: The ability to manually input geometric angle to strictly define the horizontal slope of the channel or allow me to pick two points manually. i am looking for something like
//+------------------------------------------------------------------+ //| DX_Structure_H1.mq5 | //| Copyright 2026, Seu Nome | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2026" #property link " https://www.mql5.com " #property version "1.00" #property strict // Parâmetros de Entrada input string InpSymbol = "DX.F"; // Nome do Ativo
Hola, traders e inversores: Desarrollamos soluciones de trading algorítmico para MetaTrader 4 y MetaTrader 5. Creamos bots, indicadores y herramientas a medida que convierten estrategias manuales en sistemas automáticos, configurables y orientados a una gestión de riesgo sólida. Hemos trabajado en automatizaciones que integran entradas y salidas por reglas, cálculo de lotaje, control de drawdown, filtros de horario y
> "I am looking for a reliable and profitable Expert Advisor (EA) or trading robot for MetaTrader. The EA should have a proven track record, good risk management, and stable performance in live market conditions. Please share the name of the EA, a brief explanation of how its strategy works, and any relevant performance statistics or backtest reports to help me evaluate it."

Informations sur le projet

Budget
30 - 60 USD
Délais
de 3 à 5 jour(s)