View Single Post
  #10 (permalink)  
Old 05-15-2008, 11:44 PM
Linuxser's Avatar
Linuxser Linuxser is offline
User Root
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 4,410
Blog Entries: 56
Linuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond repute
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.
Reply With Quote