Calculation of scores of support / resistance based on 3 instances of ZZ and FIBO levels

MQL4 エキスパート

指定

I need the code for an EA that creates a system to estimate the strength of the resistance/support points based on 3 instances of the ZZ Swing points and their FIBO retracement levels.

See also the ZIP archive attached!!

Important note: the code needs to be very well commented, at every step, so that it is easy to follow and verify. This code is for MT4.

The code needs to be structured, creating and using functions for operating repetitive commands in order to keep the minimize the lines of code.

 

Phase 1:importing the ZZ points and the FIBO levels

The developer does not need to create ZZ and FIBO levels, as these are already calculated by an indicator which I already own and which I will provide to the developer.

The EA needs to use 3 instances of this indicator, which is based on ZZ Fast Indicator + FIBO retracement levels (with 3 different values of the deviation channel).

The default channel deviation levels of the 3 instances of ZZ Fast we will use will be:

Channel deviation 0.1 applied on H1 timeframe

Channel deviation 0.5 applied on H4 timeframe

Channel deviation 1.5 applied on D1 timeframe

The levels of the channel deviation will be editable from the code and the EA’s properties (so they need to be set up as input variables).

 

Phase 2: calculating the strength of resistance/support points which are in the proximity

The strength of the support/resistance will be calculated according to the scheme in the attached Excel spreadsheet (inside the ZIP archive). This spreadsheet provides the scores to be attributed in each type of situation.

 

Phase 3:establishing the perimeters of resistance/support and displaying the score based on current price

We will have 3 variables called “SurroundingPerimeterSize” (this is the prefix), one for each instance of the ZZ, that will store the distances around the points of resistance that will form the areas of resistance/support. These should be input variables, so that I can change their values in the EA’s properties.

For example:

ZZ Fast Channel depth: 0.1      Surrounding perimeter size for ZZ1: 10pips

ZZ Fast Channel depth: 0.5       Surrounding perimeter size for ZZ2: 25pips

ZZ Fast Channel depth: 1.5       Surrounding perimeter size for ZZ3: 100pips

 

The code will store in a variable and should display on the chart (and print in the journal) the current scores of resistance/support strength (based on the current price).

Examples:

        The score will be 0 if the current price is outside of any resistance/support perimeters.

        The score will be 5 if the current price is at less than 10 pips (see Excel) from the closest ZZ1 Point with Channel depth of 0.1.

        The score will be 12 if the current price is at less than 25 pips (see Excel) from the point where FIBO retracement of the ZZ2 with channel deviation of 0.5 (which is placed on H4) will be 38%

        The score will be 40 if the current price is at less than 40 pips (see Excel) from the point where FIBO retracement of the ZZ3 with channel deviation of 1.5 (which is placed on D1) will be 50%.

Etc.

There will be 3 scores stored in 3 separate variables:

-          one for Support Score

-          one for Resistance Score

-          one for the net score SupportScore-ResistanceScore

These scores need to be updated on every tick when displaying on the chart and on every candle when printing in the journal (so that we don’t overload the journal).

 

Phase 4: calculating, storing and displaying the current distances to the nearest resistance and support points

The code should use 6 variables (3 for support and 3 for resistance) in which to calculate the distances to the nearest support and resistance points for each of the 3 instances of the ZZ. These should be input variables, so that I can change their values in the EA’s properties.

This information should be displayed on the chart and printed in the journal. For example:

“Distance to the nearest resistance on ZZ Depth 0.1 is 35 pips”

“Distance to the nearest support on ZZ Depth 0.5 is 75 pips”

“Distance to the nearest resistance on ZZ Depth 1.5 is 150 pips”

Etc.

 

These distances need to be updated on every tick when displaying on the chart and on every candle when printing in the journal (so that we don’t overload the journal).

 See also the ZIP archive attached!!

 

 


応答済み

1
開発者 1
評価
プロジェクト
1382
72%
仲裁
113
29% / 48%
期限切れ
343
25%
2
開発者 2
評価
プロジェクト
93
34%
仲裁
10
40% / 30%
期限切れ
5
5%
3
開発者 3
評価
プロジェクト
13
0%
仲裁
5
20% / 60%
期限切れ
0
4
開発者 4
評価
プロジェクト
334
55%
仲裁
14
36% / 29%
期限切れ
1
0%
類似した注文
Looking for someone to implent the following grid strategy into my existing EA: Overview : I need a skilled developer to implement a grid recovery strategy into my existing Expert Advisor (EA) for MetaTrader 4 (MT4). The strategy involves adding grid trades based on price movement and adjusting lot sizes according to specific rules. It also includes closing trades at breakeven points and full position closure when a
Hey Guys i've a PineScript /Source Code / ( Trading View ) indicator which has Buy and Sell Sign . i wanna make a MT5/4 Robot by it with some features . I need it has a simple panel to shows some details of robot at screen
Hi dear coders, I have an EA and for this EA I want additional code for Risk Management at my code, trade is triggered with this line int TheTicket = OrderSend(_Symbol,TradeType,(double)DoubleToString(TheLots,2),TradeType==OP_BUY?Ask:Bid,10,TheSL,TheTP,TheComment,MagicNumber,0,TradeType==OP_BUY?clrBlue:clrRed); I want you create a code and tutorrial how to change my code. the new code will be Risk Management Inputs
I'm seeking a Forex HFT Scalping EA that operates on live streaming tick data and candlestick patterns, executing a high frequency of trades without balance restrictions. The EA should be compatible with major currency pairs like EUR/USD, GBP/USD, USD/JPY, AUD/USD, GBP/JPY, GBP/AUD, and XAU/USD, as well as US30 indices. Given its HFT nature, it should focus on the 1-minute, 5-minute, 15-minute, and 30-minute
I need a custom MT5 EA that can place trades (Buy & Sell) from two Telegram channels. One telegram channel will give the trend signal (Bullish or Bearish) and the second telegram channel will give buy and sell signals
hello i like to have zigzag added to my EA and set orders when it makes a pullback strategy (Higerlow/Lowerhigh) or break of market structure strategy Higherhigh/Lowerlow break set order entry I want it to be able to do these 2 things but one at a time. -Zigzag makes a pullback into an HigherLow/LowerHigh set order entry -Zigzag breaks structure HigherHigh/LowerLow set order entry - For PULLBACK STRATEGY i just want
Looking for a indicator that can show where the majority of retail stop losses are placed Please can someone advise me how best to achieve this but it needs to be accurate
I have a grid trading bot that needs debugging. its perfect apart from a random stop loss I encountered. It’s supposed to have a stop loss at 99% but it one time closed trades at around 25% loss. Here is a list of potential things causing it to bug out (it’s running on MQL VPS MT5, I also want to retain the ability to close positions manually); - Chart change (symbol or timeframe) - Recompiling the EA - Server
Me gustaría poder crear automaticamente varias ordenes que se queden pendientes pudiendo definir los siguientes parámetros: Tipo de orden (Buy y sell stop, buy y sell limit. Precio de compra / venta. Pudiendo entrarlo manualmente o como un numero de puntos a sumar/restar del precio actual de marcado. Numero de puntos que ocuparan en total las ordenes y numero de ordenes a insertar (Ejemplo: 200 puntos, 4 ordenes, es
tardes desarolladores, quiero hacer un sistema semiatomatico, el deberia abrir las operaciones de venta o compra en un punto donde yo haga el analisis cumpliendo siertos criterios, por ejemplo abrir la operacion despues de que tresvelas del mismo color salga de un punto donde yo deje marcado , abriendo una operación 1/1 tenuendo en cuenta dos lineas que yo dejare marcadas

プロジェクト情報

予算
60 - 120 USD
VAT(付加価値税) (21%): 12.6 - 25.2 USD
合計: 72.6 - 145.2 USD
開発者用
54 - 108 USD
締め切り
最低 3 最高 8 日