Scripting

Questions about MCFX and MCFX Data Feed.
wagner jeremy
Posts: 4
Joined: 29 Oct 2007

Scripting

Postby wagner jeremy » 17 Dec 2007

Hello.

I'm not sure if this is appropriate here or not. I could use some scripting help.

I have 2 Forex symbols attached to the same chart. The strategies easily apply to the first currency pair. I can't seem to figure out how to get positions to open on the 2nd symbol.

For example, if the strategy calls for going long on GBPJPY, then I want an immediate short on ChFJPY.

What is the syntax for ordering a position on a currency pair that is in a subchart?

Thank you.

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 21 Dec 2007

Hello Jeremy,

Orders cannot be directly generated on the 2nd subchart. You would need to have two chart windows and use global variable dll, pushpop or ADE to get these two windows exchange information.

Best regards.


Return to “MCFX”