Forex Zone | Forex Forum

OSMA

Discussion started on EA Modifications

  • Posts: 352
  • Points: 71
  • Likes Received: 144
  • Reputation: +11/-0
OSMA in EA Modifications_clip
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:

  • Posts: 352
  • Points: 71
  • Likes Received: 144
  • Reputation: +11/-0
OSMA in EA Modifications_xx
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

  • OSMA in EA Modifications_index
  • Posts: 2842
  • Points: 30152
  • Likes Received: 2671
  • Reputation: +145/-12
OSMA in EA Modifications_xx
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_index
  • Posts: 2842
  • Points: 30152
  • Likes Received: 2671
  • Reputation: +145/-12
OSMA in EA Modifications_xx
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

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

  • Posts: 113
  • Points: 0
  • Likes Received: 20
  • Reputation: +0/-0
OSMA in EA Modifications_xx
this nice EA modification I will try it and will learn it, thank you for sharing
#6 - February 05, 2019, 07:23:01 AM

  • Posts: 130
  • Points: 0
  • Likes Received: 49
  • Reputation: +1/-0
OSMA in EA Modifications_xx
Refined it and share to this forum 
#7 - February 05, 2019, 08:32:11 PM

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

  • Posts: 130
  • Points: 0
  • Likes Received: 49
  • Reputation: +1/-0
OSMA in EA Modifications_xx
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

  • OSMA in EA Modifications_index
  • Posts: 743
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
OSMA in EA Modifications_xx
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

  • OSMA in EA Modifications_index
  • Posts: 468
  • Points: 0
  • Likes Received: 22
  • Reputation: +0/-0
OSMA in EA Modifications_xx
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

  • OSMA in EA Modifications_index
  • Posts: 743
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
OSMA in EA Modifications_xx
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

  • OSMA in EA Modifications_Avril_Lavigne
  • Posts: 425
  • Points: 18
  • Likes Received: 39
  • Reputation: +0/-0
OSMA in EA Modifications_xx
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

  • Posts: 11
  • Points: 0
  • Likes Received: 1
  • Reputation: +0/-0
OSMA in EA Modifications_xx
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

  • OSMA in EA Modifications_index
  • Posts: 743
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
OSMA in EA Modifications_xx
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.


* Share Topic

Share via delicious Share via digg Share via facebook Share via linkedin Share via pinterest Share via reddit Share via stumble Share via tumblr Share via twitter

* Similar Topics

xx
What is the OSMA Indicator?

Started by turtlegain on Forex Education

3 Replies
171 Views
Last post February 06, 2019, 04:46:40 AM
by Tahajud
xx
OsMA Divergence Dashboard

Started by kc8flq on MT4 / MT5 Indicators

2 Replies
1446 Views
Last post June 30, 2018, 01:29:29 AM
by kc8flq
xx
MTF OSMA same direction alert

Started by Donnuel on New Indicator Coding

51 Replies
3842 Views
Last post July 25, 2019, 06:40:38 AM
by urip
xx
EA based on mtf osma and/or stochastic

Started by Donnuel on MT4 / MT5 EAs

1 Replies
957 Views
Last post August 05, 2018, 04:27:51 PM
by Donnuel