Help to code EURJPY round number EA

kim Larsen

Trader
Feb 7, 2018
5
0
12
48
Screenshot_20180226-062854.png Hi,
I would like some help do code the following EA.
I have noticed that EJ often bounce or get rejected at the 100 round numbers (136,135 etc)

So what I would like is an EA that place a Sell limit at the upper round number and a Buy limit at the low.
The orders should be created when price touch the middel (136.50,135,50) etc.
Once orders is created it should stays there untill one is triggered.
OCO input would also be nice.

Example.
Price is at 131.40,when price touch 131.50 place Sell at 132 and buy at 131.
Input
SL
TP
OCO

Propably MM and trailing if it proves this consept have any value.
Thanks
 

Enivid

Administrator
Staff member
Nov 30, 2008
16,994
1,020
144
Odessa
www.earnforex.com
@kim Larsen, do you still need this? Should the EA open order if the price equals xxx.50 level exactly? Should it open if the price jumps from xxx.499 to xxx.501? Should the orders ever expire? Do you plan using it in MT4 or in MT5?

In the meantime, have you tried any of the attached EAs? It is probably easier to modify one of them to do what you want than to code one from scratch.
 

Attachments

  • Round Numbers 5 digit.mq4
    3.6 KB · Views: 31
  • Round_Number_EA.mq4
    8.2 KB · Views: 33