指定
Project Overview:
Plotting Features
=================
1. plot swing market structure and internal market structure.
2. Swing structure will create swing orderblocks box(Bullish & Bearish), internal structure will create internal orderblocks box( Bullish & Bearish)
- boxes will extend till real time bar
3. plot bullish and bearish imbalance box.( gap between 3 consecutive candles),box extend till realtime bar
4. plot Swing bullish and bearish BOS(break of structure) and ChoCH( change of character)
5. plot internal bullish and bearish BOS(break of structure) and ChoCH( change of character)
5. Option to Filter Non-mitigated [untouch] & mitigated Orderblocks [touch]
6. Option to Filter Non-mitigated [untouch] & mitigated FVG [touch]
7. Filter Extreme Orderblocks - which are located in 0-20% or 80-100% of Fib.
9. Filter premium/ discount Orderblocks
10. Premium Discount Range (Auto Fib on Recent Range with 0,0.786,0.618,0.50,0.382,0.236,100 levels)
11.Previous Day, Week & Month high/low.[Line extend till real time bar]
12. Plot Multi time frame ADR [100%, 125%, 150%, 175%, 200%, 300%
Source code Reference for Multi time frame ADR( very simple script)
Source code Reference for points 1-11: Source code reference from this pinescript open source :
You can take above reference to write it for mql5/4 or use chatGPT to convert pinescript to mql5.
User Inputs Reference :
Multi Time Frame Plotting :
Checkbox to turn on/off to display
1. [m1,m5,m15,m30,h1,h4,daily,weekly,monthly] swing orderblock
2. [m1,m5,m15,m30,h1,h4,daily,weekly,monthly] internal orderblock
3. [m1,m5,m15,m30,h1,h4,daily,weekly,monthly] FVG
4. [m1,m5,m15,m30,h1,h4,daily,weekly,monthly] SWING BOS
5. [m1,m5,m15,m30,h1,h4,daily,weekly,monthly] Internal BOS
6. [m1,m5,m15,m30,h1,h4,daily,weekly,monthly] SWING CHoch
7. [m1,m5,m15,m30,h1,h4,daily,weekly,monthly] Internal CHoch
Reference image for how checkbox should look like :
So We need to give check box for
1.swing orderblock
2.internal orderblock
3.fvg
4.swing bos
5.internal bos
6.swing choch
7.internal choch
Alert Conditions, when Combining higher and lower time frames.
==============================================================
User input:
-Choose First Time Frame - Drop down menu[1m,5m,1m,30m,H1,H4,Daily,Weekly,Monthly]
Choose First time Frame Direction -Drop down menu [Bullish or Bearish]
Choose Liquidity Type - Drop down menu [ Swing Orderblock, Internal Orderblock, FVG, ADR100, ADR125, ADR150, ADR175, ADR200, ADR300, Previous day high, previous day low, previous week high, previous week low]
-Choose Second Time Frame - Drop down menu[1m,5m,1m,30m,H1,H4,Daily,Weekly,Monthly]
Choose Second time Frame Direction -Drop down menu [Bullish or Bearish]
Choose structure Type - Drop down menu [ swing bos, internal bos, swing choch, internal choch, 50% retracement, OTE(0.618 -0.7860 ] ]
* Note always display alert label on the candle, so it will be easy to backtest.
Some examples to explain Alert combinations:
Example 1: When price touches Daily Bullish Orderblock + 15 min bullish swing choch => alert triggers
Example 2: when price touches Weekly Bullish FVG + h1 bullish internal choch => alert triggers
Example 3: When price touches previous day high + 5 min bearish swing choch => alert triggers
Example 4: when price touches previous week low + 30 min bullish internal choch => alert triggers
Example 5: when price touches Bullish ADR 150% + 5 min bullish 50% retracement => alert triggers
Example 6: when price touches Bearish ADR 200% + 15 min bearish OTE => alert triggers
So basically, alert triggers on the combination of first and second time frame based on their time frame, direction, and liquidity/ structure type.
Still have doubt? Ill explain it in more detail, once project get finalize.
EA MODE
=======
So, till here we are done with plotting based on user input and alerts. Now we will use above alerts[combination of 1st and 2nd TF] for EA execution
EA user input:
1. EA mode
- Trading mode ( take trade automatically when alert found )
- Alert mode ( just triggers alert)
2. Use Balance or Equity
- Account Balance
- Account Equity
3. Lot sizing
- Percentage of Balance/equity
- Fixed
- If select percentage - define %
- if select fixed - define fixed lot from [0.01- to max lot allowed]
4. TP/SL MANAGEMENT
- USE SL? [True/False]
- USE TP? [True/False]
5. SL MODE
-Fixed mode
- ADR mode
- High/low Mode
6. TP MODE
-Fixed mode
- ADR mode
- High/low Mode
7. Fixed TP/SL Setting
- Take profit in pips
- Stop loss in pips
8. ADR TP/SL Setting
- TP ADR Multiplier [ could be 0.25 ,0.5,1,2 etc]
- SL ADR Multiplier [ could be 0.25 ,0.5,1,2 etc]
9. High/Low mode TP/SL Setting
-pips beyond high/low [ here stop loss will update on the basis of secondry time frame i.e swing bos/choch , internal bos choch , 50% or OTE as its our entry criteria]
- Risk:reward ratio
10. Close trade on opposite signal
- true
- False
Example : if alert generated on bullish daily orderblock+ 15 min bullish swing bos, then trade close when 15 min bearish swing bos found. we will consider secondry time frame here.
11. Trade only between set hours:
- Hour to start
- minute to start
- Hour to end
- minute to end
12. Deinit when close trade
- true
- false
13. EA info dashboard setting
- display current drawdown and profit
- display total profit
- display total running trades
- display setting data
14. Alert and screenshot setting
- Generate alert at entry [ true/false ]
- Generate alert at exit [true/false ]
- pop up alerts [true/false ]
- email alerts [true/false ]
- push alerts [true/false ]
- take screenshots [true/false ]
More details inside the PDF ill share with you