Problem with JPY crosses
-
Hi, i build a trade manager that close the trades on the EMA.
I notice that when i use it on the crosses with Yen, the trades are not closed follow that rule, but seems random.
Do you have some advice to solve the problem? I notice the pip conversion in the general settings and nothing more... -
Can you please share the link to the project?
-
Here the link https://fxdreema.com/shared/93jdz1coe
Here's the screenshot after the strange closure instead of doing it on the EMA:

Thanks l'andorrà
-
Did you close those trades via clicking on the 'close' button?
-
No, i wait the close rule on the EMA, the button is only an option.
I had problem on some trade and all of them was with JPY, for this reason i think there is something around it -
@Mr-Big try to remove this "offset" (also it cannot be a string)

-
@ambrogio there is another way to set an offset as external parameter if i want to clese the trade i.e. at 2 pips before the touch?
Thanks
-
@Mr-Big the way you made is right, but in your constant list you have to define "offset" like a int or double not string.
-
@ambrogio Ok, i modify the constant as double, i made as string because reading
this and i used ie "+10pips" as constant and i thought it is a "string"

-
you can do this +offset pips , or -offset pips , depend on what you desire
-
@Mr-Big ok but as "int" like "-10 " or "+10"
-
And the last question..
If I clic over the close button I close all the trades on the platform
There Is a way to close only the trades (market and pending) related to the chart and tf?
If I have the ea on eurusd m5 chart and eurusd m30 chart can I set something that close only the trade open of that chart trough click on the close button? -
-
@Mr-Big said in Problem with JPY crosses:
And the last question..
If I clic over the close button I close all the trades on the platform
There Is a way to close only the trades (market and pending) related to the chart and tf?
If I have the ea on eurusd m5 chart and eurusd m30 chart can I set something that close only the trade open of that chart trough click on the close button?no, since you have close "all automated and manual"
you can dedicate a button to close trades by group and magic number -
@ambrogio ah ok, i dodn't know that we could mix text and constant name there!
-
@ambrogio ok i'll add a button referred to magic number thanks
-

i try to set the magic number closing, but i don't find an option to close trades by it.... -
I think I wasn't clear with my post, let's make an example: Expert on EURUSD M15 , same expert on EURUSD H1 . Since we are trading the same forex pair on two charts together, we MUST put two differetn magic number for any chart (this is in the input table). This way your button on expert M15 close only the trades on M15 chart and so on. Pay attention to NOT select "all (automated...ecc...) , select Group# instead. Furthermore you can differenciate through the Group# number the trades you want to close
-
ok i'll try thanks for your clarification!
-
@ambrogio i test your suggestion but it doesn't work, do yiou see something wrong?
I have all the order pending and market buy as group 1 and all the sell as group 2 but if i clic nothing happen:
