명시
Can someone code this?
SMC (SMART MONEY CONCEPT) EA
Project Overview:
Plotting Features and Video link references:
=================
1.plot swing market structure and internal market structure
Link for Market Structure & Valid BOS : https://www.youtube.com/watch?v=1NQ5U9CHL-4
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
Link video for valid order blocks : https://www.youtube.com/watch?v=vOgT_KtA-08
3. plot bullish and bearish fair value gap ( FVG ) box or imbalance box.( gap between 3 consecutive candles),box extend till realtime bar
Link for valid FVG: https://www.youtube.com/watch?v=BFfF_Lnk9T4
4. plot Swing bullish and bearish BOS(break of structure) and ChoCH( change of character)
Link for valid ChocCH: https://www.youtube.com/watch?v=sSAGIzQAhuM
5. plot internal bullish and bearish BOS(break of structure) and ChoCH( change of character)
6. Option to Filter Non-mitigated [untouch] & mitigated Orderblocks [touch]
7. Option to Filter Non-mitigated [untouch] & mitigated FVG [touch]
8. 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%
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
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:
*Note: Choose specific combination of indicators that can determine market trend or bias in each timeframe.
Choose First Time Frame - Drop down menu[1m,5m,15m,30m,H1,H4,Daily,Weekly,Monthly]
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,15m,30m,H1,H4,Daily,Weekly,Monthly]
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, trend direction, and liquidity/ structure type.
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]
- USE Trailing Stop? [ True/False]
5. SL MODE
-Fixed mode
- High/low Mode
6. TP MODE
-Fixed mode
- High/low Mode
7. Fixed TP/SL Setting
- Take profit in pips
- Stop loss in pips
- Trailing stops in pips
8. Trailing Mode
- Trailing Start in pips
- Trailing Step in pips
9. High/Low mode TP/SL Setting
-pips beyond high/low [ here stop loss will update on the basis of secondary time frame i.e swing bos/choch , internal bos choch , 50% or OTE as its our entry criteria]
- Risk and reward ratio
10. Close trade on opposite signal
- true
- False
Example : if alert generated on bullish daily orderblock+ 15 min bullish swing bos and trading in profit, then trade close when 15 min bearish swing bos found. we will consider secondary time frame here.
11. Trade only between set hours:
- Enable Time Filter: if true, enables the time filter (if false, EA can trade during any hour)
- Trading Start Hour: operating start Hour
- Trading Stop Hours: operating end Hour
12. Deinit when close trade
- true
- false
13. EA information dashboard setting
- display overall current drawdown
- display initial capital
- display current balance
- display current equity
- display total profit of the day
- display total loss of the day
- display number of pips before take profit
- display number pf pips before stop loss
Reference how to trade Order Block: https://www.youtube.com/watch?v=MxygA1AFspI
Reference how to trade CHoCH : https://www.youtube.com/watch?v=WkuE2lHwsbo