- Credits
- 196
Greetings, colleagues on the shop floor!
I decided to share my robot, built on my knee with the help of deep respect for the TrueTL indicator and a couple of coding evenings. It is modestly called TrueTL EA. In short, he builds trend lines right inside the Expert Advisor (yes, no external indicators, all in one package) and tries to make money on them.
Why TrueTL?
Because of all the "drawing" lines that I tried, TrueTL seemed to be the most adequate. He really finds the key levels, and does not draw a Christmas tree from each sneeze. Plus, the built—in triple touch filter (the very "3t" lines) inspires confidence - just like in classical technical analysis. So I thought: and let the robot build these lines itself and immediately hit them. No delays, no "oh, the indicator has been redrawn." The lines are updated at each new bar, the entrance is strictly upon closing — clearly and without fantasy.
How it works:
1. At launch (or on a new bar), the Expert Advisor deletes all its old lines and searches for highs/lows again, builds descending (on the hows) and ascending (on the loys) lines.
2. If "Three Touch" is enabled, it analyzes each line for the number of price touches and assigns the "3t" status to the most reliable ones. You can trade only on them or on all of them — at your choice.
3. Trading: either to break the line (the price closed behind the level), or to rebound (touched and went back). No martingale, no grids — a maximum of one position in one direction. The opposite one closes.
4. There is a time filter so that the robot does not mess around on an Asian night (by default, from 6 to 23 o'clock, server time).
5. Built-in trailing stop: you can drag a stop for the average price of all buy/sell orders or individually. It is activated when the profit in points has reached a set threshold, and fixes part of the profit (margin).
6. Drain protection: if equity falls below the peak value by a set percentage, everything closes and the Expert Advisor goes into a stupor before restarting.
7. The lot can be fixed or calculated based on the percentage of risk from the deposit, taking into account the stop loss.
Setup recommendations (my guesses):
• Timeframe: from M15 to H1. There is too much noise on the M5, and lines are rarely rebuilt on the H4, which is boring.
• TradeOnlyThreeTouch = true — it's more reliable this way, there are fewer false entries. But if the market is sluggish, you can try using "Normal" lines.
• TradeOnBreakout = true is my favorite. Bounces also work, but it's harder to catch them, you need a clear trend.
• StartTrade / EndTrade — adjust to the main session of your instrument. For example, for EUR/USD, leave it as it is.
• MaxRiskPerTrade — set 1-2%. The thirst for profit does not lead to good.
• TrallingStart and LockProfit — adjust for volatility.
• SL and TP — I left 100/90 each for an example. You can increase it, but then consider the risk of the transaction carefully.
The advisor is brand new, he hasn't sniffed any real money yet. So I don't recommend immediately transferring it to a real account. First, drive on the demo, see how the lines are drawn, how it opens.
Why am I posting it?
Because one's eyes are blurred. I really want to hear an opinion from the outside: where it is blunt, where it redraws the lines, which bundles of currencies/TF work better. Write in the subject what happened. If it's constructive, then I'll bring it to mind.
Profit to all and adequate trends!
I decided to share my robot, built on my knee with the help of deep respect for the TrueTL indicator and a couple of coding evenings. It is modestly called TrueTL EA. In short, he builds trend lines right inside the Expert Advisor (yes, no external indicators, all in one package) and tries to make money on them.
Why TrueTL?
Because of all the "drawing" lines that I tried, TrueTL seemed to be the most adequate. He really finds the key levels, and does not draw a Christmas tree from each sneeze. Plus, the built—in triple touch filter (the very "3t" lines) inspires confidence - just like in classical technical analysis. So I thought: and let the robot build these lines itself and immediately hit them. No delays, no "oh, the indicator has been redrawn." The lines are updated at each new bar, the entrance is strictly upon closing — clearly and without fantasy.
How it works:
1. At launch (or on a new bar), the Expert Advisor deletes all its old lines and searches for highs/lows again, builds descending (on the hows) and ascending (on the loys) lines.
2. If "Three Touch" is enabled, it analyzes each line for the number of price touches and assigns the "3t" status to the most reliable ones. You can trade only on them or on all of them — at your choice.
3. Trading: either to break the line (the price closed behind the level), or to rebound (touched and went back). No martingale, no grids — a maximum of one position in one direction. The opposite one closes.
4. There is a time filter so that the robot does not mess around on an Asian night (by default, from 6 to 23 o'clock, server time).
5. Built-in trailing stop: you can drag a stop for the average price of all buy/sell orders or individually. It is activated when the profit in points has reached a set threshold, and fixes part of the profit (margin).
6. Drain protection: if equity falls below the peak value by a set percentage, everything closes and the Expert Advisor goes into a stupor before restarting.
7. The lot can be fixed or calculated based on the percentage of risk from the deposit, taking into account the stop loss.
Setup recommendations (my guesses):
• Timeframe: from M15 to H1. There is too much noise on the M5, and lines are rarely rebuilt on the H4, which is boring.
• TradeOnlyThreeTouch = true — it's more reliable this way, there are fewer false entries. But if the market is sluggish, you can try using "Normal" lines.
• TradeOnBreakout = true is my favorite. Bounces also work, but it's harder to catch them, you need a clear trend.
• StartTrade / EndTrade — adjust to the main session of your instrument. For example, for EUR/USD, leave it as it is.
• MaxRiskPerTrade — set 1-2%. The thirst for profit does not lead to good.
• TrallingStart and LockProfit — adjust for volatility.
• SL and TP — I left 100/90 each for an example. You can increase it, but then consider the risk of the transaction carefully.
The advisor is brand new, he hasn't sniffed any real money yet. So I don't recommend immediately transferring it to a real account. First, drive on the demo, see how the lines are drawn, how it opens.
Why am I posting it?
Because one's eyes are blurred. I really want to hear an opinion from the outside: where it is blunt, where it redraws the lines, which bundles of currencies/TF work better. Write in the subject what happened. If it's constructive, then I'll bring it to mind.
Profit to all and adequate trends!