View Single Post
  #8 (permalink)  
Old 05-15-2008, 08:14 PM
fxtrader625's Avatar
fxtrader625 fxtrader625 is offline
Member
 
Join Date: Nov 2006
Posts: 44
fxtrader625 is on a distinguished road
Quote:
Originally Posted by drgoodvibe View Post
Hi there, can you explain how this works?
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
__________________
Links about my trading signals:

Trigg3'dTrSys @ Trad3rsHub
Reply With Quote