Page 1 of 1

Scripting

Posted: 17 Dec 2007
by wagner jeremy
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.

Posted: 21 Dec 2007
by Marina Pashkova
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.