SIMPLE 4 WEEK RULES MT4 EXPERT ADVISOR (WK CHART)

Experts

Tâche terminée

Temps d'exécution 55 jours

Spécifications

OPEN LONG  : whenever PRICE exceeds the HIGHs of the previous 4 calendar weeks, PRICE > MAX(HIGH OF 4 WEEKS).
CLOSE LONG : whenever PRICE falls below the LOWs of the previous [n] calendar weeks, PRICE < MIN(LOW OF n WEEKS), if "UseCounterTrade"==true: OPEN SHORT.
OPEN SHORT : whenever PRICE falls below the LOWs of the previous 4 calendar weeks, PRICE < MIN(LOW OF 4 WEEKS).
CLOSE SHORT: whenever PRICE exceeds the HIGHs of the previous [n] calendar weeks, PRICE > MAX(HIGH OF n WEEKS), if "UseCounterTrade"==true: OPEN LONG.

Must work on all symbol notations (number of digits).

Include checks for error messages and execute follow-up actions, e.g. when order is not executed/accepted, repeat the order etc..

Include Exit Filter(s) to close trades:
- "ExitFilterWeeks" n = [0|1|2|3|4]  // "0 weeks" is a possible value for future extensions
- default value for "ExitFilterWeeks" = 2.

Include Counter Trades:
- "UseCounterTrades" [true|false]
1) OPEN SHORT on CLOSE ALL LONG trades.
2) OPEN LONG on CLOSE ALL SHORT trades.

Keep in mind there can be multiple active trades!

So, in this document, 'CLOSE LONG' means 'CLOSE ALL LONG TRADES' and 'CLOSE SHORT' means 'CLOSE ALL SHORT TRADES'!

Explanation how additional/multiple trades can appear:

A) When CLOSE SHORT && "UseCounterTrade"==true: OPEN LONG (1st LONG trade)
-  and whenever PRICE exceeds the HIGHs of the previous 4 calendar weeks, PRICE > MAX(HIGH OF 4 WEEKS),
-  a new additional OPEN LONG will be invoked (2nd LONG trade)
-  of course, only when there are no objections to open this additional LONG trade, see paragraphs below.

B) When CLOSE LONG && "UseCounterTrade"==true: OPEN SHORT (1st SHORT trade)
-  and whenever PRICE falls below the LOWs of the previous 4 calendar weeks, PRICE < MIN(LOW OF 4 WEEKS),
-  a new additional OPEN SHORT will be invoked (2nd SHORT trade)
-  of course, only when there are no objections to open this additional SHORT trade, see paragraphs below.

Similar applies to a [TRAILING-] STOP LOSS that is triggered && "UseCounterTrade"==true:

C) When a LONG trade is stopped out && "UseCounterTrade"==true: OPEN SHORT (1st SHORT trade)
-  and whenever PRICE falls below the LOWs of the previous 4 calendar weeks, PRICE < MIN(LOW OF 4 WEEKS),
-  a new additional OPEN SHORT will be invoked (2nd SHORT trade)
-  of course, only when there are no objections to open this additional SHORT trade, see paragraphs below.

D) When a SHORT trade is stopped out && "UseCounterTrade"==true: OPEN LONG (1st LONG trade)
-  and whenever PRICE exceeds the HIGHs of the previous 4 calendar weeks, PRICE > MAX(HIGH OF 4 WEEKS),
-  a new additional OPEN LONG will be invoked (2nd LONG trade)
-  of course, only when there are no objections to open this additional LONG trade, see paragraphs below.


Include Balance Protection and Maximum Risk Percentage:
- "BalanceRiskPercentage" (e.g. 2 - 5%)
- "MinimumBalance" (to prevent a blown-up account)
- check with Alert when Balance is not sufficient to trade because of
1) "MinLotSize" (too big), and/or
2) "MinimumBalance" (not enough money), and/or
3) "BalanceRiskPercentage" (too big).
 

Include optional Trailing Stop Loss:
- "UseTrailingSL" [true|false]
- "TrailingSLvalue" [minimal broker value in pips|higher own value in pips].
 

Include optional dynamic Lot Sizes:
- "MinLotSize"  [>= 0.01] (minimum lot size)
- "MaxLotSize" [maximum lot size]
- check with Alert when "MaxLotSize" < "MinLotSize" and prevend execution of the EA
- when "MinLotSize" == "MaxLotSize" : one fixed lot size
- when "MinLotSize" < "MaxLotSize"  : effective Lot Size depends on
1) "BalanceRiskPercentage" and/or
2) "MinimumBalance" and/or
3) "MinLotSize" and/or
4) "MaxLotSize".

Include explaining comments in English in the code(-blocks).

Please offer the price you need and the time of completion you need.

Best regards. 

PS Sorry, I forgot to mention the "UseCounterTrades" switch (now included, see above)

Répondu

1
Développeur 1
Évaluation
(24)
Projets
36
39%
Arbitrage
1
0% / 0%
En retard
17
47%
Gratuit
2
Développeur 2
Évaluation
(59)
Projets
182
55%
Arbitrage
31
45% / 16%
En retard
103
57%
Gratuit
3
Développeur 3
Évaluation
(73)
Projets
257
53%
Arbitrage
16
50% / 38%
En retard
83
32%
Gratuit
Commandes similaires
Ea which is based on the price returning to the open or close of a 1-minute candle or zone of candles. panel on chart need too have buttons : trainding on/off close all close profit add buy stop add buy limit add sell stop add sell limit ( all to existing setups) calculating profit/loss for a single open setup and in total in account currency calculating profit/loss for a single open setup and in total in percentage
Hi, I’m looking for an experienced MQL5/MT4 developer to work on a trading BOT project. I currently have an MT4 demo environment with IC Markets for testing, but the complete strategy specifications have not yet been provided. I’d like you to first review the available project/BOT information and let me know what you would need to configure, develop, and properly forward-test it. The testing should cover entries
PEACE BOT 30+ USD
#property version "2.10" #property description "Chizzy Trend Rider - HFM-ready (hedging/netting safe)" #include <Trade/Trade.mqh> CTrade trade; //================ INPUTS =================// input double LotSize = 0.01; // Fixed lot (used if RiskPercent = 0) input double RiskPercent = 0.0; // Risk % of balance per trade (0 = use LotSize) input ulong MagicNumber = 220026; input ENUM_TIMEFRAMES TrendTF =
PRECISION ENTRY PRO EA V1 MT5 EXPERT ADVISOR REQUIREMENTS SPECIFICATION PROJECT NAME: Precision Entry Pro EA V1 PLATFORM: MetaTrader 5 (MT5) LANGUAGE: MQL5 1. PROJECT OBJECTIVE I want a simple, reliable and fully automated MT5 Expert Advisor based on the following trading concept: TREND → MARKET STRUCTURE → FIBONACCI RETRACEMENT → PRICE ACTION CONFIRMATION → ENTRY → STOP LOSS → TAKE PROFIT. The purpose of V1 is to
I need an MT5 Expert Advisor (EA) specifically for NFP news trading. Strategy: - Trade EURUSD during the US Non-Farm Payroll (NFP) release. - Automatically identify the NFP release time. - Place a Buy Stop above the current price and a Sell Stop below the current price shortly before NFP. - Adjustable distance from current price for both pending orders. - When one order is triggered, automatically cancel the opposite
yoo i want to make a trading bot i have my strategy in videos and also the rules to if anyone can work it out for me i will be glad welcome your bid and it urget let connect here on ninjatrader
Bonjour ! Je vous ai contacté pour le développement de mon EA sur MetaTrader. Je souhaite intégrer une stratégie précise avec une gestion stricte des règles du courtier Exness. J'ai déjà préparé le cahier des charges complet sous format PDF avec toutes les spécifications techniques
SKBOT 35+ USD
want an MQL5 Expert Advisor (EA) for MetaTrader 5, mainly for XAUUSD (Gold). Strategy: The EA should trade based on market structure, Break of Structure (BOS), Fair Value Gaps (FVG), Order Blocks (OB), and Fibonacci retracement levels. BUY setup: Detect bullish market structure. Detect a bullish Break of Structure (BOS). Identify the relevant bullish FVG and/or Order Block created around the structure move. Use
Light 🕯️ 50+ USD
To apply, you must already have your EA running on an active MT5 trading account connected to the market. The account must have genuine trading history that can be independently reviewed and verified. EA Requirements 1. Prop-Firm Compatible Risk Management - The EA must include daily and overall drawdown protection. - Required inputs: "MaxDailyLoss = 5%" "MaxTotalDrawdown = 10%" - Once either limit is
Hello, I'm looking for developer or coder to create a custom expert advisor (EA) on mql4 according to my strategy. The developer should be able deliver both indicator and source code for the job. Thanks

Informations sur le projet

Budget