ok, i'll send you full explaination later. tq.Sorry, I don't understand. How can I help?
ok, i'll send you full explaination later. tq.Sorry, I don't understand. How can I help?
you might also check about the 4 MA lines in EA_MACD.ok, i'll send you full explaination later. tq.
Hi, I found the problem.
The reason why attack martin orders were not modified is that it was due to order modify error.
I coded the output in the journal.
View attachment 91626
Attack martin last open order price (it shows average price in MT4) is 1.422
and the modified tp is 1.42065, which is lower than open order price.
So EA tried to modify it but since tp is below open order price, it shows order modified error and tp was failed to modified.
To solve the issue, I chanced code to modify only when the tp is higher than openorderprice (in case of buy) and lower than openorderprice (in case of sell).
This is not what you want but if you have any other ideas, let me know.
I have an idea. If order modify is not possible, how about close all order by profit$.Hi Mr Tanaka san..
Thanks for your changes on the EA.
i will test it out and see if it gives good results.
appreciate your time and efforts!
Thanks
Please don't use breakeven.
Please test EU H4 with below set file.
https://soehoe.id/attachments/zaman-ma-cross-ea-eurusd-h4-set.91400/
hi Mr Tanaka san..I have an idea. If order modify is not possible, how about close all order by profit$.
Check the last attack martin order profit (dollar) and if it reached to that target, then close all order.
Yes that is my setting and it opens opposite trade even there is market/pending order.Can you use MaxOrder=1?
i traded manual there are many buy sell signals come..i think there signal come with moving average cross over.. it will be same if arrow appear and it will close with second and open new trade.. but with other rules like as on pdf file..
Hi hemmy
Sorry we are open this discussion again from your post on Sept 2018.
I tried to BT this EA and the result is good, but not open trade on FT almost 3 weeks. I don't know why? Maybe the indi is repaint.
I hope tanaka akiko can fix this problem, could he?
Attached: BT EA_VSD(revA) From 2019.01.07 to 2019.03.21. This account are drop cause hit by Fundamental News.
Initial Deposit: 20.00
Equity on 2019.03.20: 9890.00
View attachment 91649
Drop account hit by Fundamental News
View attachment 91650
How about this?hi Mr Tanaka san..
But if set close all order by profits... how can we expect how many martingale orders are opened?
The more martingale order running, the more profits needed to hit a total TP to make all martingale into profitable trades..
Since it is kind of complicated and hard to code, so I want to start coding with my template.
It may be easier for me to start with.
Can I code like below?
1. If RSI<20 , then normal buy oder. 0.01lot
2. If RSI>80, then normal sell order 0.01lot.
Use attack martin
If price moved xxx pips, then attack martin lot is placed.
1st martin 0.01lot
2nd martin 0.01lot
3rd martin 0.01 x multiple
4th, 5th until Martin max order.
Attack martin tp is modified with normal order in the same tp.
How about this?
tp=0
View attachment 91653
Instead , profit by manual $5.
View attachment 91654
EU M15
View attachment 91655
View attachment 91656
GU M15
View attachment 91659
Sorry, I don't fully understand the logic.Hi Tanaka san
There're 2 very important point are :
1. There's Last Limit Order-Manual Input (manually placing Limit Order at specific Entry Price), system will calculate :
- Target Price : Modify all target price of all same direction orders
- Lot size : Prior lot * multiple
- When Target is hit, cancel Last Limit Order
This make system SEMI-AUTOMATIC to ensure all attack martin to be close when market against.
2. RSI Value condition is required to Customize-able to make EA still running to monitor (1) but never open new position.
View attachment 91665
Good morning! I was referred to you by another forum member as you can convert indicators to EA's which I cannot. I have been in construction all my life, and now that I am retired I do not have the will or mindset to learn coding for myself. Too damn old or that!Sorry today is Holiday. I will check tomorrow.
Can you test below rev C file , too?Hi Mr Tanaka san..
Thanks for your suggestions and set files sharing..
i will test it out later..
Thank you so much!
![]()
Hi Tanaka sanSorry, I don't fully understand the logic.
I am confused with entry signal. Rsi 20/80 is entry signal but you need to manual input for limit-order?
Can you describe like below so that I can code easily?
1. When price is ****, then buy order, tp=, sl=
2. When price is xxx pips distance , then *****
etc...
For everyone who wants to become rich of using EA-s!
Never use an EA without any manual trading experience.
You'll never find an EA that will make profit for years with one fixed set.
Even those, which cost of $ 20, 000 upwards — used by the big banks — they must also be constantly modified.
So...if you want to survive in the hellish labyrinth of Forex, then first you must learn to trade manual before you use EA-s.
Why?
Because you have to be able to mend the mistakes, what your EA (s) generate.(s)
But...you can do it only in case if you have enough trading practice.
If your EA makes a really bad entry and worsens it with other martingale positions, you have only two options.
1) Get to know the pain how does it feel to blow up your trading account.
or
2) You start to hedge the positions which run against you, so you can avoid a margin call.
For that you need first money, and as second, trading experience, coz you need to know when to close a hedged position. (You need to set exact support and resistance lines, must have experience with Pivot and Fibonacci etc.)
Therefore, I recommend for everyone to open a second account and depositing money in that in case of 'emergency'. Your second account will work only as an 'emergency' account.
Trade only with 60% of your money, deposit the remaining 40% in the second account and transfer it immediately to your trade account in case you need to finance your hedged positions.
Conclusion...
You will never succeed continuously with automated trading, unless you learn manual trading.
Every trader and every EA make mistakes, me too, with almost 10 000 hours of trading experience.
Your success depends on HOW MANY mistakes you make, or rather, HOW MANY mistakes of your EA(s) can you 'refit'.
Wish green pips for all of you.