• Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)

Suggestion I will make a Free EA with your Indicator

Hi Bro Tanaka,
been a fan of your great work and been following this trend.
i got a working strategy for years now but been sitting in front of computer for hours not to miss my trade, i hope you can help to get this automated please.
you deserve more than a cup of coffee for this one.

Custom EA Infinity Scalper

Strategy Rules:

Filter:
Smooth MA: 10, 20, 100

Long Filter: only Buy trade will be considered
Smooth MA 10 Cross from below to above Smooth MA 20 and Both MA are above Smooth MA 100
Or MA’s orientation (10 Top, 20 mid, 100 below)

Short Filter: only Sell trade will be considered
Smooth MA 10 Cross From above to below Smooth MA 20 and Both MA are Below Smooth MA 100
Or MA’s orientation (100 Top, 20 mid, 10 below)

Trigger

Infinity trend line

Indicator Change color to Buy will place 3 order and 1 sell stop (recovery position same distance as TP1 in reverse) [reverse rule for sell]

Buy 1,2,3 = TP1, TP2, TP3,

Parameters

1) If TP1 reached them

a) TP2 will be triggered and Trailing (Start distance half way from Buy1 to TP1,Stop=0,step=1)

b) TP3 will be trigger and Trailing (Start distance half way from Buy1 to TP1,Stop=0,step=1)

c) The sell stop will be cancelled

2) Trailing will protect the profit of buy2 and buy3 to act as break even, All Trailing will be left until hit

Recovery position

1) If TP1 did not reached after triggered

a) Then sell stop is triggered as well in reverse with lot minimum to recover the loss.

b) Buy 1,2,3 will be closed

Lot Parameters

1) Lot multiplier

2) Marti multiplier

3) Marti attack

Add Ons

1) News Filter

2) Trading Days Selector

3) Trading Session Selector

image and Indicator attached
indicator Market Link https://www.mql5.com/en/market/product/33083
 

Attachments

  • TP1 Triggered.JPG
    TP1 Triggered.JPG
    190.9 KB · Views: 192
  • Triggered but not reached tp.JPG
    Triggered but not reached tp.JPG
    181.4 KB · Views: 184
  • Infinity TrendLine.ex4
    Infinity TrendLine.ex4
    180.3 KB · Views: 85
[QUOTE = "miguel0033, post: 304599, miembro: 33601"] A mí también me pasa, pero no entiendo por qué? [/ QUOTE]
It happens to me too, but I can't understand why?
Hi Miguel, could you solve it? For me, the Ea only with positions for sale, is going very well, in eur / usd and gbp / usd, but I am afraid that they change the current bearish trend and here there will be a problem, because it does not open the purchase. It's funny that with the current set that works fine, but now try EA_HMA & FORCE (revF) with the same set and if I open the purchases, but the result is very bad. If you can send me a private message, we talk and try to adjust it with your opinion and with mine and Tanaka's help to make it work. Greetings friend
 
I have tested with your set file. EU TF M30

It picked all buy/sell arrow.
View attachment 82839

Did you use revF?
OK, you can try this.
Please delete HMA Trend.ex4 from your Market folder.
Then go to the below web site.
https://www.mql5.com/ja/market/product/22515

Then down load the indicator. It is automatically download in your MT4 Market folder.
If you copy this indicator file from another PC, it will not work.
Do backtest in rev.F
Hello Tanaka, I did everything as you indicated, the indicator works in EA_HMA & FORCE (revF) but in EA_HMA & FORCE it does not work. What happens in the REVF the result was bad. Before with EA_HMA & FORCE only with positions for sale was very very good! Now with REVF buying and selling the result is bad with the set that I send you. Thanks Tanaka for your help, a hug
 
Hello Tanaka, I did everything as you indicated, the indicator works in EA_HMA & FORCE (revF) but in EA_HMA & FORCE it does not work. What happens in the REVF the result was bad. Before with EA_HMA & FORCE only with positions for sale was very very good! Now with REVF buying and selling the result is bad with the set that I send you. Thanks Tanaka for your help, a hug
I forgot to say, that is the error that occurs in the EA_HMA & FORCE only in this one, in the EA_HMA & FORCE (revF) this error does not occur and works only with sales and works well, but it is a problem when the trend changes, it will go bad because it does not open buy
 

Attachments

  • ERROR.png
    ERROR.png
    60.5 KB · Views: 129
[QUOTE = "miguel0033, post: 304599, miembro: 33601"] A mí también me pasa, pero no entiendo por qué? [/ QUOTE]

Hi Miguel, could you solve it? For me, the Ea only with positions for sale, is going very well, in eur / usd and gbp / usd, but I am afraid that they change the current bearish trend and here there will be a problem, because it does not open the purchase. It's funny that with the current set that works fine, but now try EA_HMA & FORCE (revF) with the same set and if I open the purchases, but the result is very bad. If you can send me a private message, we talk and try to adjust it with your opinion and with mine and Tanaka's help to make it work. Greetings friend

Hi, I'm testing it opens in both SELL and BUY, as you can see from the pair AUD / USD H1 EA rev F, instead the previous EA only SELL. I'll let you know later.
 

Attachments

  • 5.jpg
    5.jpg
    39.4 KB · Views: 144
I need to understand one thing, EA is basically martingale with break-even. If order goes opposite, it will open martingale but if you are placing SL, then how martingale will open because either SL will hit or martingale order could be close to SL so it will be same thing, old order closed and new open.

When order is single, you will se TP, but when martingale opens, TP turns in to break-even, so SL will automatically gone.

In your requested case, you can do one thing if Tanak San can help you from his busy time, you can ask him to create an EA as per below procedure,

" When EA will be turned on, it will take opposite order from MACD cross from the highest level, if it would be as per trend, it will hit TP, or else it will hit SL, in case if you need martingale along SL also to be moved, then theory will fail because if SL increase all the time with martingale then orders will never hit SL, it will keep opening martingale, so better not to use martingale in that robot, it would be simple order with TP SL from MACD"
Hello Ahmad,

also your ar in part right.
Why I need SL and TP in the Martingale? Simple.. if I have a strategy that is based for example on fixed lot, and I will allow max 5 Martingale and reopen every 20 pips for example.. I know .. if I reach my 5th Martingale.. and I'm/signal is wrong, I know that if I touch the SL of all martinagles.. I can lose max XXXX Dollars.. so I have always the control about what I can lose ;)

You now can say.. OK we have the "guard x% of the balance" is not the same.. because if I use fixed lot, with SL of all the martingale the lose is always for example 3000 USD , with the guard % .. this increase if my balance increase... so if I have a balance of 10.000 USD and I put 30% .. i can lose 3000 USD but if I reached a balance of 30.000 and I'm using fixed lot... I would lose 9.000 USD... that is not so good.. always have the control about money management... You know it better the me, have luck is a minimal part of the trading game, all other is using brain and has a good perception of money management.. and how much I really can afford to lose ;)
 
[QUOTE = "miguel0033, post: 304911, miembro: 33601"] Hola, estoy probando que se abre tanto en VENDER como en COMPRAR, como se puede ver en el par AUD / USD H1 EA rev F, en lugar de solo EA anterior VENDER . Te lo haré saber más tarde. [/ QUOTE]

Friend, I with EA rev F I do not have good results, with the previous one if I have good results, but only open sales. In this new EA rev F, I have no error but the results are bad .. I am starting to be a bit sad.If You get to see some light, please let me know, thanks.
 
Tanaka and Miguel. See the results of only 1 year (20.01.2018 / 24.04.2019) with lot 0.01 Only sale.
My question is, it will be a problem when the trend changes from BAJISTA to the uptrend and you must open BUY. Or will it not be a problem because we take advantage of the price correction in the uptrend to open SELL? .
 

Attachments

  • capture-20190425-231224.png
    capture-20190425-231224.png
    13.7 KB · Views: 136
  • HMA&FORCE LOT 0,01 .png
    HMA&FORCE LOT 0,01 .png
    26.8 KB · Views: 127
[QUOTE = "Giorgio007, post: 304932, miembro: 58237"] Tanaka y Miguel. Vea los resultados de solo 1 año (20.01.2018 / 24.04.2019) con lote 0.01 Sólo venta.
My question is, it will be a problem when the trend changes from BAJISTA to the uptrend and you must open BUY. Or will it not be a problem because we take advantage of the price correction in the uptrend to open SELL? .[/CITAR]
I'm going to continue and try to get better results and I tell you about it. Tanaka and Miguel, tomorrow you tell me. A hug friends
 
Last edited:
BBubai,
I removed alert for News indicator.... Maybe it is better not to alert.
Try the attached file.

Tanaka-san, is it possible to add one more filter? It would work as follows, it would be based on an EMA 200 on the TF H4. The ea would only open orders in the direction of the EMA 200 H4. If the EMA is above, EA only buys, if it goes down, it just sells.

Thank yuu very much!
 

Attachments

A example.
upload_2019-4-25_19-43-44.png
 

Attachments

  • upload_2019-4-25_19-43-4.png
    upload_2019-4-25_19-43-4.png
    127.9 KB · Views: 105
  • upload_2019-4-25_19-43-44.png
    upload_2019-4-25_19-43-44.png
    135.1 KB · Views: 911
Mr. Tanaka. See this:
View attachment 82916

For USDXXX pair, there is attack martin problem.
But on XXXUSD attack martin works fine. Like this:
View attachment 82917
Can you check this one please?
Thanks.
I still don't understand why USDXXX pair, there is attack martin problem.
Do you use the same setting? What is your martin attack distance pips?
Oh ,maybe you use risk percentetage, so lot size depends on your account total equity.....
What if you use fix lot size?
 
Last edited:
Very interesting, I'm running some tests and it seems consistent, maybe worth buying the original.
30 days n BT, 76% gain
View attachment 82962
The EA hedge every 300 pips...

example:

1 trade: sell 0.10 wrong way 300 pips
2 trade: buy 0.20 wrong way 300 pips after
3 trade: sell 0.40 close if profit xy Dollar or % of equity
and so on...

Eventually you can code that Tanaka.. that seams not to be really complicated.. it is an hedge martingale system..
 
Last edited:
The EA hedge every 300 pips...

example:

1 trade: sell 0.10 wrong way 300 pips
2 trade: buy 0.20 wrong way 300 pips after
3 trade: sell 0.40 close if profit xy Dollar or % of equity
and so on...

Eventually you can code that Tanaka.. that seams not to be really complicated.. it is an hedge martingale system..


No very simple, this close partial lots, understand
 
you can partially close the lot size.. each martingale has an own closing profit too.. but if that is really a good idea to close partially :)
 
Hi Bro Tanaka,
been a fan of your great work and been following this trend.
i got a working strategy for years now but been sitting in front of computer for hours not to miss my trade, i hope you can help to get this automated please.
you deserve more than a cup of coffee for this one.

Custom EA Infinity Scalper

Strategy Rules:

Filter:
Smooth MA: 10, 20, 100

Long Filter: only Buy trade will be considered
Smooth MA 10 Cross from below to above Smooth MA 20 and Both MA are above Smooth MA 100
Or MA’s orientation (10 Top, 20 mid, 100 below)

Short Filter: only Sell trade will be considered
Smooth MA 10 Cross From above to below Smooth MA 20 and Both MA are Below Smooth MA 100
Or MA’s orientation (100 Top, 20 mid, 10 below)

Trigger

Infinity trend line

Indicator Change color to Buy will place 3 order and 1 sell stop (recovery position same distance as TP1 in reverse) [reverse rule for sell]

Buy 1,2,3 = TP1, TP2, TP3,

Parameters

1) If TP1 reached them

a) TP2 will be triggered and Trailing (Start distance half way from Buy1 to TP1,Stop=0,step=1)

b) TP3 will be trigger and Trailing (Start distance half way from Buy1 to TP1,Stop=0,step=1)

c) The sell stop will be cancelled

2) Trailing will protect the profit of buy2 and buy3 to act as break even, All Trailing will be left until hit

Recovery position

1) If TP1 did not reached after triggered

a) Then sell stop is triggered as well in reverse with lot minimum to recover the loss.

b) Buy 1,2,3 will be closed

Lot Parameters

1) Lot multiplier

2) Marti multiplier

3) Marti attack

Add Ons

1) News Filter

2) Trading Days Selector

3) Trading Session Selector

image and Indicator attached
indicator Market Link https://www.mql5.com/en/market/product/33083
I don't understan below.

1) If TP1 reached them => Does this mean close Buy1? or you want trailing for BUY1/BUY2/BUY3?

a) TP2 will be triggered and Trailing (Start distance half way from Buy1 to TP1,Stop=0,step=1)

b) TP3 will be trigger and Trailing (Start distance half way from Buy1 to TP1,Stop=0,step=1)

c) The sell stop will be cancelled

2) Trailing will protect the profit of buy2 and buy3 to act as break even, All Trailing will be left until hit
 
Back
Top