Currency Pairs Hedge EA System Discussion (MQ4 EA included) - page 2

 

It didn't work for me:

NeutralHedge osc_v3.4 NZDUSD,M5: unknown subwindow number -1 for ObjectCreate function

Would anyone have suggestions what am I doing wrong?

 
ncc74656:
It didn't work for me:

NeutralHedge osc_v3.4 NZDUSD,M5: unknown subwindow number -1 for ObjectCreate function

Would anyone have suggestions what am I doing wrong?

you need to double check the indicator name and make sure it's exactly the same. I found in the code that this osc indicator has the ~. If you rename the indicator to NeutralHedge osc_v3.4~, it might work. I edited in the code instead.

 
kenboi:
you need to double check the indicator name and make sure it's exactly the same. I found in the code that this osc indicator has the ~. If you rename the indicator to NeutralHedge osc_v3.4~, it might work. I edited in the code instead.

The filename is correct. When I added ~ the error was that cannot open file NeutralHedge osc_v3.4.ex4.

 

...

Use the one from this link : https://c.mql5.com/forextsd/forum/165/neutralhedge_osc_v3.4.ex4

It works OK (it looks like this on build 419 of metatrader)

ncc74656:
The filename is correct. When I added ~ the error was that cannot open file NeutralHedge osc_v3.4.ex4.
Files:
 
mladen:
Use the one from this link : https://c.mql5.com/forextsd/forum/165/neutralhedge_osc_v3.4.ex4 It works OK (it looks like this on build 419 of metatrader)

I think it works. Is it safe to use it?

Is it normal that it shows below message?

2012.05.16 17:25:28 forex-hedge - audusd M5-direction AUDUSD,M5: profit for AUDUSD ===========================0

 

...

Yes, it is normal (untill it opens some orders)

ncc74656:
I think it works. Is it safe to use it?

Is it normal that it shows below message?

2012.05.16 17:25:28 forex-hedge - audusd M5-direction AUDUSD,M5: profit for AUDUSD ===========================0
 

It seems not possible to back test it. Do you know what currency pair is safe to be used and with what parameters? I'm testing forex-hedge - audusd M5-direction.mq4.

 

The versions you can find at this post are hard coded for symbols :

this one https://www.mql5.com/en/forum/181093 ant his one https://www.mql5.com/en/forum/181093 will open orders for GBPCHF and EURCHF only

this one https://www.mql5.com/en/forum/181093 will open orders for AUDUSD and NZDUSD only

I do not know the code for the indicator so I can not tell more about how exactly it works. Based on the sub-symbol parameter my guess is that you should attach the EA to GBPCHF for first version (if you are using default parameters) or you should set the sub-symbol to the "opposite" of the 2 possible symbol pairs (depending on on which version you use)

_______________________________________________

And yes, metatrader back-test is useless when it comes to multi symbol EAs. You must forward test it

ncc74656:
It seems not possible to back test it. Do you know what currency pair is safe to be used and with what parameters? I'm testing forex-hedge - audusd M5-direction.mq4.
 

Unknown subwindow number-1 for object creation function

i have receive this error message. Unknown subwindow number-1 for object creation function

please guide me to rectify.

i checked the file name NeutralHedge osc_3.4 of the indicator also in program code

thanks and regards

Zujan

zujans@yahoo.in

mladen:
Use the one from this link : https://c.mql5.com/forextsd/forum/165/neutralhedge_osc_v3.4.ex4

It works OK (it looks like this on build 419 of metatrader)

 

...

Don't worry about that error when it comes to how the EA works

It simply means that the indicator is trying to create those text labels and 2 horizontal lines in a window where it should be, and, since it is called from an EA an not working on chart, it can not create those objects. That error is not preventing the EA from working (it eventually slows it down a bit) Without the source of that indicator it can not be altered to have a kind of a switch that would turn objects creation on or off, so it must be used as is

zujan:
i have receive this error message. Unknown subwindow number-1 for object creation function

please guide me to rectify.

i checked the file name NeutralHedge osc_3.4 of the indicator also in program code

thanks and regards

Zujan

zujans@yahoo.in
Reason: