SIMPLE 4 WEEK RULES MT4 EXPERT ADVISOR (WK CHART)

Uzman Danışmanlar

İş tamamlandı

Tamamlanma süresi: 55 gün

İş Gereklilikleri

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)

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(29)
Projeler
36
39%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
17
47%
Serbest
2
Geliştirici 2
Derecelendirme
(59)
Projeler
182
55%
Arabuluculuk
31
45% / 16%
Süresi dolmuş
103
57%
Serbest
3
Geliştirici 3
Derecelendirme
(71)
Projeler
254
53%
Arabuluculuk
16
50% / 38%
Süresi dolmuş
83
33%
Serbest
Benzer siparişler
Gradient boosting and L2 100 - 200 USD
I am looking for a well experienced programmer to put/implement a gradient boosting algorithm and an L2 to reduce overfitting in my ea which l already have which uses indicators . If you are experienced please adhere
Hello, I'm looking for a developer for repair calendar in EA MT4/MT5 (News Filter - https://ec.forexprostools.com ) for all windows servers. Note: EA MT4/MT5 works with calendar on PC Win 10, 11 but not on all windows servers. I have the source code and will post within the comments section for review. If you are able to do this and quality. Please apply. Thanks
Create mt4 ea 50+ USD
To convert the provided MT4 indicator script into an Expert Advisor (EA) and implement prompt functionality for user input, we need to modify the code to handle external parameters and provide a user-friendly interface. Below is the EA code that incorporates prompts for user inputs
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

Proje bilgisi

Bütçe