• 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, 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.

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
 
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
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.
 
Sir Tanaka, here it is.
I hope you can understand the problem.
Thank you.

MA_MACD-01.jpg
 

Attachments

  • MA_MACD-01.jpg
    MA_MACD-01.jpg
    2.5 MB · Views: 980
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.
hi Mr Tanaka san..

But if set close all order by profits... how can we expect how many martingale orders are opened? :worried:
The more martingale order running, the more profits needed to hit a total TP to make all martingale into profitable trades..
 
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

upload_2019-7-17_17-29-34.png



Drop account hit by Fundamental News
upload_2019-7-17_17-30-23.png
 

Attachments

  • upload_2019-7-17_17-29-34.png
    upload_2019-7-17_17-29-34.png
    129.3 KB · Views: 921
  • upload_2019-7-17_17-30-23.png
    upload_2019-7-17_17-30-23.png
    26.6 KB · Views: 900
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


Set file
 

Attachments

hi Mr Tanaka san..

But if set close all order by profits... how can we expect how many martingale orders are opened? :worried:
The more martingale order running, the more profits needed to hit a total TP to make all martingale into profitable trades..
How about this?
tp=0
upload_2019-7-17_20-38-37.png

Instead , profit by manual $5.
upload_2019-7-17_20-39-8.png

EU M15
upload_2019-7-17_20-39-38.png

upload_2019-7-17_20-39-52.png

GU M15
upload_2019-7-17_20-44-50.png
 

Attachments

  • upload_2019-7-17_20-38-37.png
    upload_2019-7-17_20-38-37.png
    2.2 KB · Views: 889
  • upload_2019-7-17_20-39-8.png
    upload_2019-7-17_20-39-8.png
    3.7 KB · Views: 881
  • upload_2019-7-17_20-39-38.png
    upload_2019-7-17_20-39-38.png
    29.6 KB · Views: 889
  • upload_2019-7-17_20-39-52.png
    upload_2019-7-17_20-39-52.png
    9.5 KB · Views: 882
  • EUM15.set
    EUM15.set
    9.4 KB · Views: 189
  • EA_3 strategies(revB).ex4
    EA_3 strategies(revB).ex4
    466.8 KB · Views: 195
  • upload_2019-7-17_20-44-50.png
    upload_2019-7-17_20-44-50.png
    9.8 KB · Views: 888
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.

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.

upload_2019-7-17_19-28-6.png
 

Attachments

  • upload_2019-7-17_19-28-6.png
    upload_2019-7-17_19-28-6.png
    597.3 KB · Views: 909
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
Sorry, 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...
 
Sorry today is Holiday. I will check tomorrow.
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!
The indicator is anyone of three: First and latest Trensignal Pro; before that Trendsignal V2; and then the very first one Trendsinal c13. I attach here the latest one.
It uses an arrow signal for you to enter or exit.

Basically the entry should be after a closed candle cofirmation of the entry signal. At this point there is not any open orders.
THEN: as the next signal APPEARS the trade must be closed immediately, and the EA must then wait for the new signal to confirm with a closed candle and then enter the trade like in the beginning. Repeat/repeat etc., nearly always in the market.

There must be lot size, stoploss, trailing stop and TP target settings for those who have different profit target than the indicator signal.


The second stage of this EA should have 1) Original order as above; 2) second order with its own SL and TP for an earlier exit (to split trades) and even a 3rd order if someone wishes to use things like DiNapoli Targets on his strategy. This can be added once the EA works properly. Each trade with a true / false option to be used or not.

This EA is not for sale and must be kept open for all the forum members to use freely to benefit everyone.
My thanks to the creator of this indicator to put it at our disposal for free on the web.

Thank you.
 

Attachments

Hi Mr Tanaka san..

Thanks for your suggestions and set files sharing..
i will test it out later..
Thank you so much!
:)
Can you test below rev C file , too?
I changed the code for AUTO by lot size.
You can input profit$ by manual but
if attack martin lot size increase, then close profit should be larger, right?
So I changed code for Auto by lot size.
It checks the last attack martin lot size and profit is calculated based on lot size by auto.

upload_2019-7-17_21-53-29.png

upload_2019-7-17_21-54-14.png

If you select AUTO by lot size, then close profit is changed by attack martin lot size.
I think this is better because if you close manual $5, it always close in $5 even lot size in bigger.

You can check profit Target here.
upload_2019-7-17_21-58-18.png
It changed based on attack martin order lot size.
 

Attachments

  • upload_2019-7-17_21-53-29.png
    upload_2019-7-17_21-53-29.png
    4.3 KB · Views: 936
  • upload_2019-7-17_21-54-14.png
    upload_2019-7-17_21-54-14.png
    7 KB · Views: 942
  • upload_2019-7-17_21-58-18.png
    upload_2019-7-17_21-58-18.png
    6.3 KB · Views: 940
  • EA_3 strategies(revC).ex4
    EA_3 strategies(revC).ex4
    469 KB · Views: 168
Sorry, 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...
Hi Tanaka san

Example SHORT position : (Lot =0.02 , Multiply = 1.5, A=80, lot distant =6, Max open 3 Lots)

1. When Price = 1.1209 AND RSI(2) > A (Set by parameter) : Open 1st Sell 0.02 at 1.1209
2. When Price >= 1.1215 AND RSI(2) > A (Set by parameter) : Open 2nd Sell 0.02 at 1.1215
3. When Price >=1.1221 AND RSI(2) > A (Set by parameter) : Open 3rd Sell 0.01*1.5 at 1.1221

4. Then I can place another 4th Sell Limit Order Manually (Example at 1.1300), Lot size =0.03*1.5 , If order is FILLED 1.1300 , modify TP of 1,2,3,4 . If Order is not filled and move to hit Target of 1,2,3 then cancel 4th Sell Limit Order

5. If price continue to move to 1.2000, after technical analyse , I will continue Manually place 5th Sell Limit order at 1.2 , Lot size = 0.045*1.5 , and modify TP of 1,2,3,4

Below is how they implement Limit Order Manually but EA still able to identify with their own Magic Number:

upload_2019-7-17_20-16-54.png
 

Attachments

  • upload_2019-7-17_20-16-54.png
    upload_2019-7-17_20-16-54.png
    18.4 KB · Views: 932
The most important is after series of Auto Entry by Attack Martin (ie 4 entry) , from 5th and 6th we will need to put eyes in and only input after doing Technical Analyse.

And EA , at this moment will only monitor to Cancel the Manually Limit Order if basket of orders is going to TP before Last Limit Order is filled.
 
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.
 
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.

Yes !!! That's exactly what I want to make this Semi-Automated EA.

EA only help me on execute my Analyse Plan and Trading plan everyday.
 
Back
Top