• 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

Dear Tanaka san

Thank you very much for response my email. I will explain roughly about parameters first :

·EA Type : RSI or RANDOM , When RSI will need to follow RSI condition below. When Random, only price move.

·RSI (Period) : Place 1stSell / Buy based on RSI(Period)

·Random : Randomly place 1st Sell or Buy

·Auto Buy : True/False : Allow EA to Buy automatically

·Auto Sell : True/False : Allow EA to Sell automatically

·Lot Exponent : To determine the Lot exponent 3rdorder . The 1stand 2ndorder are same lot

·Lots (Lot) : Initial Lot

·Take Profit(Point) : Count by Point (Exclude Spread)

·Profit 0 (Order) : Example EA are openning 5 trades, the trade 6th will calculate Lot size to make 5 openning trades become 0 Profit if hit Target (set by TakeProfit)

·Pipstep (Point) : When price are moved N Points , the EA trigger Buy/Sell . Exclude Spread.

·Order Buy Max (Order) : Maximum number of Buy position

·Order Sell Max (Order) : Maximum number of Sell Posistion

·Timeframes : Determine how RSI’s preiod

·Apply to : Open or Close price or bar/candle

·OPEN BUY <= : System will trigger Buy if Price move N points and RSI(Period) < this parameter

·OPEN SELL >= : System will trigger Sell if Price move N points and RSI(Period) > this parameter

System Logical :

1.Setup initial Lots for Intial Buy or Sell (Buy/Sell 1) by RSI(2) AND Price move XXX Point from when Auto Trading Enabled.

2.Price move N points (PipStep) AND RSI(Period) is : EA will open 2nd buy/sell and modify TARGET PRICE of combination Buy/Sell 1 + Buy/Sell 2. So both Buy/Sell 1 and Buy/Sell2 will have same TP

3.Price move N points : EA will open 3rd buy/sell with new Lots = LotExponent * Inital Lots and modify TP of Buy/Sell1 , Buy/Sell2, Buy/Sell3 so all 3 Positions will have same Target Price.

4.Continue until MAX Open Order is hit.

5.Buy/Sell determine by Random or RSI (Period)

6.There are 2 button : BUY LIMIT and SELL LIMIT and one Manual input Limit Price . This is to trigger last order to balance all Pre-Openned Positions and Modify TP of ALL positions to same TP (see images 2). This is key thing when want to system to SOFT CLOSE all position , will open last buy Manually by technical analyst .

Please help to add some features :

1.Start time , Stop time

-Before Start time , After Stop time : : OPEN BUY <=0, OPEN SELL >=100 : So AUTO TRADING Still keep enable without need to Stop.

-Between Start time and Stop time : Follow by Parameter

2.Add options to start Exponents Lot number from which orders (examples Exponents from 4thorders,…)

3.Option to select BUY&SELL , ONLY SELL , ONLY BUY

4.Basket Profit to close all orders same as your EA3strategies

5.STOP EA (SOFT STOP) Before Red news N hours


Images2




Thank you very much
Best regards
Anh
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.
 
All that possible, so we can control buy and sell behavior separately. If possible include separate manual input magic number, so we can control if we want buy and sell behave as different magic number or same magic number.
I tired to think about how I can code but it concluded that it is hard for me. so instead, can you put EA in 2 chart and one is buy only and another is sell only?
 
Hi sir Tanaka San,

Please make this ea to place only one order at a time.

When there is 1 buy/buystop there should be no sell/sell stop opened or when there is 1 sell/sell stop there should be no buy/buy stop opened. Until the order (buy/buy stop or sell/sell stop) is closed then continue opening order.

This is to reduce unnecessary floating p/l as the ea is attached to 10 pairs.

Thank you Sir Tanaka,
Can you use MaxOrder=1?
 
I tired to think about how I can code but it concluded that it is hard for me. so instead, can you put EA in 2 chart and one is buy only and another is sell only?

Ok, just I said before, consider it if you have time and mood to code, I just share idea, and I also think the idea is litle tricky to code and may hard to code, I fully understand.

I stil can try it in Forward Test, just need longer time to prove the idea.
 
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: 992
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: 933
  • upload_2019-7-17_17-30-23.png
    upload_2019-7-17_17-30-23.png
    26.6 KB · Views: 912
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: 901
  • upload_2019-7-17_20-39-8.png
    upload_2019-7-17_20-39-8.png
    3.7 KB · Views: 893
  • upload_2019-7-17_20-39-38.png
    upload_2019-7-17_20-39-38.png
    29.6 KB · Views: 901
  • upload_2019-7-17_20-39-52.png
    upload_2019-7-17_20-39-52.png
    9.5 KB · Views: 894
  • EUM15.set
    EUM15.set
    9.4 KB · Views: 190
  • EA_3 strategies(revB).ex4
    EA_3 strategies(revB).ex4
    466.8 KB · Views: 196
  • upload_2019-7-17_20-44-50.png
    upload_2019-7-17_20-44-50.png
    9.8 KB · Views: 900
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: 921
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...
 
Back
Top