Forex Zone - Forex Forum

OSMA

Discussion started on EA Modifications

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
I finally created an EA (with the help of a 3rd party compiler:))
There are just a few modifications I need here please:
1) Must only open trades on the close of a bar (ecxept TP and SL obviously). On backtesting it seems if it only opens a trade on a bar close, but I just need a pro to make sure please
2) I have the function to open multiple trades, with a max nr set, but it opens all the max trades on the same bar, where it should open 1 only, and when it gets a new signal for the same direction (eg, EURUSD sell 1 at 1.1630, it should only open a new sell when it gets a new signal at EURUSD>1.1630+at least 10pips, now it takes the max trades within 1 pip)
3) Partial close, close 50% of the position at x amount of pips, and the balance close at an opposite signal.

Thanks again for the help
FvS

Linkback: https://www.forex.zone/ea-modifications/17/osma/206/
#1 - September 01, 2018, 09:29:32 AM
Attachments:

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
PS.
is it possible to write a "standard" function for the above requirements which I can include in all the EA's?
#2 - September 01, 2018, 06:28:13 PM

Administrator
  • Hero Member
  • Posts: 5063
  • Points: 29205
  • Likes Received: 5102
  • Reputation: +220/-14
1) Must only open trades on the close of a bar (ecxept TP and SL obviously). On backtesting it seems if it only opens a trade on a bar close, but I just need a pro to make sure please
I ran a quick back test on the H1 and it opened it's first trade at 18:01. So it didn't open the trade at the bar close. I also didn't see anything in the code to suggest it must do this.
#3 - September 02, 2018, 01:08:57 PM

OSMA in EA Modifications_topic=585

Administrator
  • Hero Member
  • Posts: 5063
  • Points: 29205
  • Likes Received: 5102
  • Reputation: +220/-14
PS.
is it possible to write a "standard" function for the above requirements which I can include in all the EA's?
Yes, but implementing the functions in your EA(s) later is another issue. Also, sometimes functions need changed a little bit to work with a particular EA.

To be honest, with this EA you posted, it would be better to not even modify it. It is bloated with code that isn't used and it would be easier to just code a new EA from scratch.
#4 - September 02, 2018, 01:11:55 PM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
I saw there are many unused lines there.
I will try and refine it.
#5 - September 03, 2018, 10:40:53 AM

  • Jr. Member
  • Posts: 95
  • Points: -5
  • Likes Received: 16
  • Reputation: +0/-0
this nice EA modification I will try it and will learn it, thank you for sharing
#6 - February 05, 2019, 07:23:01 AM

  • Full Member
  • Posts: 127
  • Points: 0
  • Likes Received: 51
  • Reputation: +1/-0
Refined it and share to this forum 
#7 - February 05, 2019, 08:32:11 PM

  • Sr. Member
  • Posts: 352
  • Points: 71
  • Likes Received: 150
  • Reputation: +11/-0
I will post a new version soon.
#8 - February 05, 2019, 10:24:18 PM

  • Full Member
  • Posts: 127
  • Points: 0
  • Likes Received: 51
  • Reputation: +1/-0
Mr.Francois, I am waiting for the latest version of you, is it accurate and the file is used in achieving extraordinary profits for traders
#9 - February 06, 2019, 12:53:52 PM

  • Hero Member
  • Posts: 742
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
how does this work from EA, he will open the OP when the conditions are like, then after the op is open, do you immediately install the TP and SL or not, if not in the SL set if floating minus what is done next
#10 - February 12, 2019, 06:27:43 AM

paidto

how does this work from EA, he will open the OP when the conditions are like, then after the op is open, do you immediately install the TP and SL or not, if not in the SL set if floating minus what is done next
How do you try EA to help with the trade
#11 - April 08, 2019, 04:18:26 AM

  • Hero Member
  • Posts: 742
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
How do you try EA to help with the trade
I have not tried it because there is still no loose time
#12 - April 08, 2019, 11:59:49 PM

  • Sr. Member
  • Posts: 424
  • Points: 18
  • Likes Received: 39
  • Reputation: +0/-0
I have not tried it because there is still no loose time
immediately take your time, sir, to immediately try this EA so that you can quickly find out the results
#13 - May 06, 2019, 01:57:48 AM

  • Newbie
  • Posts: 11
  • Points: 0
  • Likes Received: 3
  • Reputation: +0/-0
I finally created an EA (with the help of a 3rd party compiler:))
There are just a few modifications I need here please:
1) Must only open trades on the close of a bar (ecxept TP and SL obviously). On backtesting it seems if it only opens a trade on a bar close, but I just need a pro to make sure please
2) I have the function to open multiple trades, with a max nr set, but it opens all the max trades on the same bar, where it should open 1 only, and when it gets a new signal for the same direction (eg, EURUSD sell 1 at 1.1630, it should only open a new sell when it gets a new signal at EURUSD>1.1630+at least 10pips, now it takes the max trades within 1 pip)
3) Partial close, close 50% of the position at x amount of pips, and the balance close at an opposite signal.

Thanks again for the help
FvS
what does EA mean for sir, sorry I don't understand
#14 - May 06, 2019, 09:21:57 PM

  • Hero Member
  • Posts: 742
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
immediately take your time, sir, to immediately try this EA so that you can quickly find out the results
that's right what you say, you have to try it right away ... maybe you have to wait until the market is off at the end of this week
#15 - May 06, 2019, 11:17:48 PM

Members:

0 Members and 1 Guest are viewing this topic.