SIMPLE 4 WEEK RULES MT4 EXPERT ADVISOR (WK CHART)

Experts

Job finished

Execution time 55 days

Specification

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)

Responded

1
Developer 1
Rating
(29)
Projects
36
39%
Arbitration
1
0% / 0%
Overdue
17
47%
Free
2
Developer 2
Rating
(59)
Projects
182
55%
Arbitration
31
45% / 16%
Overdue
103
57%
Free
3
Developer 3
Rating
(71)
Projects
254
53%
Arbitration
16
50% / 38%
Overdue
83
33%
Free
Similar orders
SCALP MARTINCALE SPY TIMEFRAME 1MIN CANDLE - SHORT SIDE ONLY 1-SET RISK : A IS A VARIABLE (HOW MUCH $) 2-SET ATR(3) : SET THE TIME AT WHICH THE ATR SHOULD BE TAKEN, IF SET 933AM THEN THE ATR OF THE 1MIN CANDLE AT 933AM CANDLE WILL BE USED (ROUND AT 0.25 UP OR DOWN) *USE NEW YORK TIME 3-SET MAX NUMBER OF ENTRY : B IS A VARIABLE 4-SET RSI(14) / C IS A VARIABLE, IF RSI(14) > C = ORDERS OPEN 5-IF RSI(14) > C IS TRIGGERED
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea
Hello, I need a martingale and grid bot. The programmer must provide a test of about 5 minutes for the EA to see how it works and if everything is fine, it will be selected to make some modifications for personal use to that EA that you provide. If it has a lot of graphics or buttons. better It doesn't matter if the robot is bad, I'm more interested in its functionalities to use with my strategy
Hi Developer, I would like to create the Scalping EA based for Mt4 on the investing.com data https://www.investing.com/currencies/eur-usd-technical EA have timing to adjust time to trade. follow the broker time. From starting time to end time EA have a adjustable Lot size (0.01 incremental to 0.01) EA have a adjustable TP (1pip to 100pip incremental 1pip) EA have a adjustable SL (1pip to 100pip incremental 1pip) EA
Here is the Idea: I want a Semi Auto Trade Panel Manager EA that only activates when I press the BUY or SELL or BUY LIMIT or SELL LIMIT then the EA will do the rest : that includes the BUY STOP 0r SELL STOP and the hedging calculations according to below diagram. So overall , my only intervention is entering the lot size , hedge zone distance and TP ratio or entering the price for buy limit/sell limit then pressing
Hi, I'm looking for a martingale MT4 EA that performs a lot of trading volume per day. If you have the robot, you'll need to send me the demo so I can backtest it. Thank you very much
Hello potential Freelancers I’m very new to trading so please bear with me as I try to explain what ‘m looking for. I'm currently getting signals ( XAUUSD )sent to me and I’m looking to find a person who can look at the data either watch account live, or I send the trade history. The bot my provider is using makes 100’s of trades a day and does very well on average. I’m also looking to have the following features
Hello, I want to create an EA that can be able to take and optimise trade bids using the trend tracker concept I have developed. The tracker will monitor the 2 lines in the below pictures and then start to activate bids once they cross each other and then be able to manage all bids afterwards towards the direction of the market by opening and closing them intermittently and profitably until the position at the other
Hi man, How are u? I have an EA and I need to check few aspects of the code, if It works fine? I am looking for an expert coder, who can understand mt4 language and help us to solve this out. This job will hardly take about 3-4 hours max for an experienced coder, when explained detail. Also, I would like to give this to someone, who can understand and speak English well. Also, the coder should be able to come via
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA. THREE TYPES OF ENTRIES 1: AGGRESSIVE 2: DIVERGENCE 3

Project information

Budget