Forex Zone - Forex Forum

need code done mq4

Discussion started on EA Modifications

  • Starter
  • Posts: 1
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0

Quote
i would like code for a condition 
code that would close all losing BUY trades
and all losing SELL trades to be closed at the breakeven point
also it would subtract the spread value from
the breakeven SELL trade and add the spread value
to the breakeven BUY tread breakeven
it would take into account the different spread values for each currency pair
thanks

need code to do this thanks 



Linkback: https://www.forex.zone/ea-modifications/17/need-code-done-mq4/651/
#1 - January 10, 2019, 07:53:43 PM

Administrator
  • Hero Member
  • Posts: 5064
  • Points: 29206
  • Likes Received: 5102
  • Reputation: +220/-14
You posted under the EA modifications section. Where is the EA you want modified? Please attach the MQL4 version so the source code can be reviewed.
#2 - January 10, 2019, 09:28:21 PM

need code done mq4 in EA Modifications_topic=585

  • Jr. Member
  • Posts: 95
  • Points: -5
  • Likes Received: 16
  • Reputation: +0/-0
Good logic from this EA and a little advice & criticism from me, if this EA is modified according to the rules of an indicator like it would be better, like EA with rules taken from the MACD indicator, maybe that is my suggestion, hopefully it can renew the EA for the future,
#3 - February 05, 2019, 06:00:33 AM

  • Hero Member
  • Posts: 742
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6


is it not better to close if equity increases what percentage of capital
because if that happens there will be a commiss or swap that is still not counted
but if you use an increase in equity all counted
#4 - February 09, 2019, 02:48:53 AM

paidto


is it not better to close if equity increases what percentage of capital
because if that happens there will be a commiss or swap that is still not counted
but if you use an increase in equity all counted
yes, sir, if you calculate equity, everything will go into calculation so that it can be used for all types of trading accounts
#5 - April 08, 2019, 04:20:03 AM

  • Hero Member
  • Posts: 742
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
yes, sir, if you calculate equity, everything will go into calculation so that it can be used for all types of trading accounts
right sir, because there are some brokers who apply no commission but there are swaps and no swaps but there are commissions
#6 - April 09, 2019, 12:01:13 AM

  • Sr. Member
  • Posts: 424
  • Points: 18
  • Likes Received: 39
  • Reputation: +0/-0
right sir, because there are some brokers who apply no commission but there are swaps and no swaps but there are commissions
or what if all modes are included and made into one package
#7 - May 16, 2019, 12:31:37 AM

  • Hero Member
  • Posts: 742
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
or what if all modes are included and made into one package
I think that is a good idea because with all the modes entered into one then it will get better because it is more complete
#8 - May 17, 2019, 12:36:06 AM

  • Sr. Member
  • Posts: 424
  • Points: 18
  • Likes Received: 39
  • Reputation: +0/-0
I think that is a good idea because with all the modes entered into one then it will get better because it is more complete
I think it should be like that, if everything is included in one mode it will not make any calculations miss
#9 - May 17, 2019, 02:25:31 AM

  • Hero Member
  • Posts: 742
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
I think it should be like that, if everything is included in one mode it will not make any calculations miss
right what you say, everything must be counted and don't miss anything
#10 - May 18, 2019, 12:25:21 AM

  • Hero Member
  • Posts: 742
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
right what you say, everything must be counted and don't miss anything
Quote
I think it should be like that, if everything is included in one mode it will not make any calculations miss

right what you say, everything must be counted and don't miss anything
#11 - May 19, 2019, 12:38:40 AM

  • Newbie
  • Posts: 36
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
right what you say, everything must be counted and don't miss anything
if complete it will be better
#12 - June 21, 2019, 08:18:22 AM

  • Hero Member
  • Posts: 742
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
if complete it will be better
right, it must be calculated in full for better results
#13 - June 24, 2019, 11:11:24 AM

  • Newbie
  • Posts: 44
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
right, it must be calculated in full for better results
I also agree that the pack must be complete
#14 - June 26, 2019, 07:35:58 AM

Members:

0 Members and 1 Guest are viewing this topic.