Quote:
Which is the best method to stop or freeze the strategy during the weekends?. The strategy is going to run by Remote servers (dukas).
You could create a periodic day check function within the strategy, for example. It would be able to detect if it is a weekend, and than just don't allow any trading.
There are some nice
threading examples in the wiki, where you can look around how to create such things.
Quote:
Another question, is there anyway to know when Remote Strategy Stops? something like email or sms message?
You can probably use onStop().
I am however not sure, how 'strict' is the rule to call onStop() on strategy termination. In case there is a strategy crash, will it be called always?