View Single Post
  #10 (permalink)  
Old 05-15-2008, 10:44 PM
Linuxser's Avatar
Linuxser Linuxser is offline
Moderator
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 2,826
Blog Entries: 34
Linuxser has disabled reputation
Quote:
Originally Posted by fxtrader625 View Post
Well, with SendSignal, it stores a text message of up to 255 characters long in a Registry ("HKEY_CURRENT_USER\Software\TradeSwitch\Signal s") under a subfolder named with the first string parameter of this function ("Name"), e.g. "EURUSD". This text message is then stored as a key-value pair in that subfolder. The key is defined with a shortable DateTime string, the value is filled with that message. Each time when SendSignal is called, a new key-value pair is then added in sorted order.

When ReceiveSignal is called with the Name string as parameter (like "EURUSD"), the oldest key-value pair that is still stored in that subfolder is read from and deleted afterwards. The value string is then returned back as result.

With FlushSignal, all key-value pairs that are still left stored during SendSignal in the Name selected subfolder are deleted. Used for restarting EA in Init function.

Hope this helps.

Jeff
Thanks for this explanation, You save me lot of hours . I was just in the middle reading the TradeSwitch folder.
__________________
Elite Manual Trading | Portfolio | Calendar | Suggestions to improve the forum | My Blog

Remember: Signatures must have three lines as maximum
Reply With Quote