Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Global Variable across Multiple Platforms?

Started 8 months, 2 weeks ago by gspajon
As with many of you the latest ruling preventing "hedge" strategies on all US brokers has me modifying my EA so as to comply with the new law. Part of my strategy relies on shutting off my EA after a particular profit goal has been hit. Normally I've done this with a bool affectionately named "win"...no problem. Now however, the new idea is to take the EA and use it on multiple accounts ...
Site: Forex Forum @ Forex Factory  Forex Forum @ Forex Factory - site profile
Forum: MetaTrader Forum  MetaTrader Forum - forum profile
Total authors: 4 authors
Total thread posts: 9 posts
Thread activity: no new posts during last week
Domain info for: forexfactory.com

Other posts in this thread:

Ronald Raygun replied 8 months, 2 weeks ago
Using impossible-to-hit pending orders comes to mind...(Fill comments with data). Otherwise, inter-terminal coding I don't think is possible without a DLL

gspajon replied 8 months, 2 weeks ago
Quote: Originally Posted by Irtron I see at least three ways. Two of them utilise WinAPI functionality in mql code rather than DLL programming - InterProcess communication and File I/O.... Irtron...this seems like a very viable soultion however, not being a programer myself I wouldn't know where to start. Is there someone you can direct me to (yourself maybe) ...

Irtron replied 8 months, 2 weeks ago
Quote: Originally Posted by gspajon Irtron...this seems like a very viable soultion however, not being a programer myself I wouldn't know where to start. Is there someone you can direct me to (yourself maybe) that could write such a program for me? Can you help? Of course I can! I'll send you the details in a PM asap.

gspajon replied 8 months, 2 weeks ago
Quote: Originally Posted by Ronald Raygun Using impossible-to-hit pending orders comes to mind...(Fill comments with data). Otherwise, inter-terminal coding I don't think is possible without a DLL Ron, Thanks for your comments. I am a self taught mq4 programmer, but am curious about DLL programing. Is this something I can learn about quickly like mq4? Does ...

Irtron replied 8 months, 2 weeks ago
I see at least three ways. Two of them utilise WinAPI functionality in mql code rather than DLL programming - InterProcess communication and File I/O. The former is partly available in WinUser32.mqh. You can exchange the data between two processes via windows messaging mechanism. Check out MSDN PostMessage, GetMessage and PeekMessage functions. This one is the most efficient and ...

Ronald Raygun replied 8 months, 2 weeks ago
I have no experience coding dlls BUT If you can find the account copier, it has a way for passing trade data from one physical terminal to another physical terminal. So maybe you can sneak in trade data that way.

Ronald Raygun replied 8 months, 2 weeks ago
Quote: Originally Posted by zozem I know MT4 has the ability to write any value or values out to a text file, which can be read by any other program. Can MT4 open a text file and read a value? Yes, but MT4 can only use files in a specific folder.

zozem replied 8 months, 2 weeks ago
I know MT4 has the ability to write any value or values out to a text file, which can be read by any other program. Can MT4 open a text file and read a value?

 

Top contributing authors

Name
Posts
gspajon
3
user's latest post:
Global Variable across Multiple...
Published (2009-04-19 08:14:00)
Quote: Originally Posted by Irtron I see at least three ways. Two of them utilise WinAPI functionality in mql code rather than DLL programming - InterProcess communication and File I/O.... Irtron...this seems like a very viable soultion however, not being a programer myself I wouldn't know where to start. Is there someone you can direct me to (yourself maybe) that could write such a program for me? I thought I could resolve this inside...
Ronald Raygun
3
user's latest post:
Global Variable across Multiple...
Published (2009-04-19 19:13:00)
Quote: Originally Posted by zozem I know MT4 has the ability to write any value or values out to a text file, which can be read by any other program. Can MT4 open a text file and read a value? Yes, but MT4 can only use files in a specific folder.
Irtron
2
user's latest post:
Global Variable across Multiple...
Published (2009-04-19 09:15:00)
Quote: Originally Posted by gspajon Irtron...this seems like a very viable soultion however, not being a programer myself I wouldn't know where to start. Is there someone you can direct me to (yourself maybe) that could write such a program for me? Can you help? Of course I can! I'll send you the details in a PM asap.
zozem
1
user's latest post:
Global Variable across Multiple...
Published (2009-04-19 19:13:00)
I know MT4 has the ability to write any value or values out to a text file, which can be read by any other program. Can MT4 open a text file and read a value?

Related threads on "Forex Forum @ Forex Factory":

Related threads on other sites:

Thread profile page for "Global Variable across Multiple Platforms?" on http://www.forexfactory.com. This report page is a snippet summary view from a single thread "Global Variable across Multiple Platforms?", located on the Message Board at http://www.forexfactory.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity