by Gilles » Fri Jul 29, 2022 5:29 am
Hi Apprentice,
Could you convert this indicator TETL_signal LUA into an expert strategy for MT4 with the following, please.
This flag is a modified version of Tick_Extreme_TMA_Line.
To determine the bands, I studied the volatility of the m15 candles on the GER30 over the last 42 months to establish the average size.
This allows me to determine the distance of the tapes.
Upper = TMA + 12
Lower = TMA - 12
Desired configurable inputs:
1. Distance
2. MaxNumberOfPositionInAnyDirection = 8 (default)
The parameters indicated for the TMA will remain unchanged.
I use the arrows to enter the position, they are simple instructions.
Green arrow = BUY
Red arrow = SELL
Stop Loss = math.floor(source * 0.25%)
Example: Stop loss = 13400 * 1% = 134 points
Limit = Stop loss * 1.618
Close on opposite
Risk Management:
Capital risk = Balance * 2%
MaxNumberOfPositionInAnyDirection = 8
So Balance * (2%/8) = 0.25% (risk per position)
Latent loss limit = Balance * 1.3%
Maximum daily loss = Balance * 1.8% (prevents the opening of other positions for the day)
Set the trend:
If a green arrow appears: uptrend = true
Open BUY
As long as uptrend = true
If the position loses 24 pts (2 * Distance) = open BUY (2nd)
If the 2nd position loses 24 pts (2 * Distance) = open BUY (3rd)
etc.
If a red arrow appears: uptrend = false
Open a sale
As long as uptrend = false
If the position loses 24 pts (2 * Distance) = open SELL (2nd)
If the 2nd position loses 24 pts (2 * Distance) = open SELL (3rd)
etc.
I hope you like my strategy and you'll want to convert it to MT4.
Thank you very much for the time you will give to my request.
- Attachments
-
-
- Tick_Extreme_TMA_Line_signal.txt
- (6.84 KiB) Downloaded 124 times