I need an indicator that is going to look at several order blocks (OBs) across multiple timeframes.
Definition of order block
An order block is a candlestick pattern formed by either 3 or 4 candles.
Normal order block:
Candle
| Bullish
| Bearish
|
A | Bearish Candle | Bullish Candle |
B | Bearish Candle & Close < Candle A Low | Bullish Candle & Close > Candle A High |
C | Bullish Candle & Close > Candle B High | Bullish Candle & Close > Candle B High |
OB values
- Open - Open of Candle B
- High - High of Candle B
- Low - Low of Candle B
- Close - Close of Candle B
![Normal Order block Normal Order block](https://c.mql5.com/21/489/Orderblock__2.png)
Order block + Fair Value Gap
Candle
| Bullish
| Bearish
|
A | Bearish Candle | Bullish Candle |
B | Bearish Candle & Close < Candle A Low | Bullish Candle & Close > Candle A High |
C | Bullish Candle & Close > Candle B High | Bullish Candle & Close > Candle B High |
D | Candle D Low > Candle B High | Candle D High < Candle B Low |
OB values - Bullish
- Open - Open of Candle B
- High - High of Candle B
- Low - High of Candle D
- Close - Close of Candle B
- Bearish
- Open - Open of Candle B
- High - Low of Candle D
- Low - Low of Candle B
- Close - Close of Candle B
![](https://c.mql5.com/21/489/5626159288692__2.png)
How must it behave
The Indicator needs to search across multiple timeframes for the order blocks and display horizontal lines on the chart for the one of the selected values:
- High (bullish ob) /Low (bearish ob)
- Open
- Both
When price closes above (bullish ob) /below (bearish ob) these lines need to be deleted, otherwise they are updated with right coordinate as current time.
Inputs
- Order block type (Enum)
- Order block
- Order block + FVG
- Order block zone (enum)
- M1 Opposing? (bool)
- M2 Opposing? (bool)
- ... m3, m4, m5, m6, m10, m12,m15,m20,m30,h1,h2,h3,h4,d1 (bool)
How it must look like
Returning Buffers
It needs to return the following buffers.
- Closest Bullish Value
- Closest Bearish Value
These values are the closest lines in regards to current price. The buffer needs to always display a value (unless of course there are no Order blocks).
Things to note
Closest Bullish Value can never be > current price
Closest Bearish Value can never be
< current price
類似した注文
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
function (A) Bringing together the 2 experts into 1 expert, maintaining only the individuality that one cannot communicate with the other I have two experts who are part of a strategy I want to become a single expert Maintain individuality, you cannot communicate with each other Leave in extern (false) or (true)
This is not an EA that actually opens/closes trades. Instead this project involves creating a dashboard where the user can create a grid trade scenario with initial entry and scale trade pip distances, lot sizes for each trade, and draw down amount. It then calculates the break-even + profit level where all trades would close. For each new scale trade the BE+ point is recalculated which is then displayed on the
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader, I wanted this indicator in NT bcs I chart in NT, and if the indicator could also have been an automated strategy even better. Please confirm that it will be an indicator and Automated Trading Strategy
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
Hi guys I would like to k ow if someone has experience with machine learning models? I would like to train a model to identify if there is a range market or trendy market based on several parameters like EMA and ATR for example. If we use for example a 20 and 50 EMA and we measure the distance between both lines the algo should oearn if the trend is strong or weak. If it‘s steong it keeps trending and if it‘s weak
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
Hello I need a very simple indicator This indicator should show the highest floating or history drawdown of the account It means that it can display the highest number that the account drawdown to be displayed on the chart in this format max drawdown account(xxxx$$) ...date(00/00/00)time:(00:00) max drawdown currency ..( currency name with max drwadown) . (xxxx$$) date(00/00/00)time:(00:00) thanks
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
I want to create an EA that can take bids according to information of a logic I have developed to give indication of a BUY or SELL opportunity. The EA will then be able to activate the BUY at the lowest possible position once the indicator clears it for a BUY and take bid upwards or identify the highest point and clears it for a SELL and take bids downwards. As you can see from example of JULY 2024 data to see how