Forex Zone - Forex Forum

modify my ea for free

Discussion started on EA Modifications

  • Newbie
  • Posts: 25
  • Points: 1395
  • Likes Received: 0
  • Reputation: +1/-0
Hello everyone. can you modify this ea for me. The only area i need to be modified is the entry logic.

Linkback: https://www.forex.zone/ea-modifications/17/modify-my-ea-for-free/45/
#1 - June 12, 2018, 03:18:16 PM
Attachments:

Administrator
  • Hero Member
  • Posts: 4755
  • Points: 34657
  • Likes Received: 4853
  • Reputation: +220/-14
Can you say exactly how you want the entry logic to be modified? Please be specific.
#2 - June 12, 2018, 03:41:01 PM

  • Full Member
  • Posts: 244
  • Points: 363
  • Likes Received: 140
  • Reputation: +16/-1
Can you say exactly how you want the entry logic to be modified? Please be specific.


Modification is only for the logic used to open trades. Everything else in the ea works the same.

let X = number of pips (X is an input that i am able to change in the ea input window)


If market moves X pips up from the open price and returns to the open price then ea opens a SELL trade OR if market moves up X pips and returns to the closed price then ea opens a SELL trade.



If market moves X pips DOWN from the open price and returns to the open price then ea opens a BUY trade OR if market moves DOWN X pips and returns to the closed price then ea opens a BUY trade.



Hi. Thanks for sharing.
Strangely, my MT4 is 1090 build, but it could not compile your EA. There were several mistakes. I had to make some changes. Please check it.

Now I will investigate your task and try to help you.
#3 - June 12, 2018, 10:55:00 PM
Attachments:

  • Full Member
  • Posts: 244
  • Points: 363
  • Likes Received: 140
  • Reputation: +16/-1
Tell me please,
" open price" and "close price" - is this the Open/close price of the last closed candle?
Thanks
#4 - June 12, 2018, 11:06:45 PM

  • Newbie
  • Posts: 25
  • Points: 1395
  • Likes Received: 0
  • Reputation: +1/-0
See attached the error free ea


If the price moves more than X pips UP form the open price of the current candle and then returns to the open price while the candle is still open then EA will open a SELL trade.


OR reference to the close price, If the price moves X pips UP from where the candle closes and returns to the close price, then EA opens a SELL trade at the open of the new candle.


(the opposite will be true for the BUY trades)


i hope this helps





#5 - June 13, 2018, 01:04:02 AM
Attachments:

  • Newbie
  • Posts: 25
  • Points: 1395
  • Likes Received: 0
  • Reputation: +1/-0
just for clarity, if we set X=20pips, then it means market must move 20 or more pips away form open/closed price then returns to open/closed price for EA to open a trade.
#6 - June 13, 2018, 01:13:48 AM

  • Full Member
  • Posts: 244
  • Points: 363
  • Likes Received: 140
  • Reputation: +16/-1
See attached the error free ea


If the price moves more than X pips UP form the open price of the current candle and then returns to the open price while the candle is still open then EA will open a SELL trade.


OR reference to the close price, If the price moves X pips UP from where the candle closes and returns to the close price, then EA opens a SELL trade at the open of the new candle.


(the opposite will be true for the BUY trades)


i hope this helps


Thanks, I got it.
#7 - June 13, 2018, 07:17:10 AM

  • Full Member
  • Posts: 244
  • Points: 363
  • Likes Received: 140
  • Reputation: +16/-1
Please test it. Thanks
#8 - June 13, 2018, 08:52:04 AM
Attachments:

  • Newbie
  • Posts: 25
  • Points: 1395
  • Likes Received: 0
  • Reputation: +1/-0
Thank you for you invested time. I will test ea now.
#9 - June 13, 2018, 11:12:11 AM

Administrator
  • Hero Member
  • Posts: 4755
  • Points: 34657
  • Likes Received: 4853
  • Reputation: +220/-14
Please test it. Thanks


The EA is much appreciated. Thank you!
#10 - June 13, 2018, 02:51:20 PM

  • Newbie
  • Posts: 25
  • Points: 1395
  • Likes Received: 0
  • Reputation: +1/-0
quick question. is X in points or pips? so if X=40, is it 40 pips or 40 points?


Thank you.
#11 - June 13, 2018, 04:27:51 PM

  • Full Member
  • Posts: 244
  • Points: 363
  • Likes Received: 140
  • Reputation: +16/-1
quick question. is X in points or pips? so if X=40, is it 40 pips or 40 points?


Thank you.
X=40 ==>  40 pips/400points
#12 - June 13, 2018, 04:52:34 PM

  • Newbie
  • Posts: 25
  • Points: 1395
  • Likes Received: 0
  • Reputation: +1/-0
Thank you crazyProg
#13 - June 13, 2018, 05:11:04 PM

  • Newbie
  • Posts: 25
  • Points: 1395
  • Likes Received: 0
  • Reputation: +1/-0
Hello CrazyProg:


After the us cash rate announcement, the eurusd moved about 46 pips and returned to the closed price and nicely moved in the opposite direction, but the ea did not open a BUY trade on the newly opened candle when the price returned to where the candle closed.


(please see the attached file)


note that i set X=40  in the EA




Can you log into my computer remotely via team viewer to provide some assistance?
#14 - June 14, 2018, 04:20:29 AM
Attachments:

  • Full Member
  • Posts: 244
  • Points: 363
  • Likes Received: 140
  • Reputation: +16/-1

Hi,
When we talked about the closing price, I thought the closing price of a closed candle not of the current one...

In your case - in any case if the price increases or falls more than by X points and then returns back by X points, there will be a signal to open an order. It does not make sense to mention here the open price at all... But not a problem, I will fix it.


" to provide some assistance?" - Tell me please, what do you mean? Thanks
#15 - June 14, 2018, 01:20:46 PM

Members:

0 Members and 1 Guest are viewing this topic.