Blog: December 2012

Subroutine support in Strategy code

Yes, you can now define your own subroutine (and functions) with your strategy code. This is required when writing complex strategies in a logic and simple way.
Also, it is required when there is a need to reuse existing code in different strategies.

So how we do it?

Very simple, as any Perl code (yes, Strategy Seeker’s script language is in fact Perl :-) ) we use the “sub” keyword, for example:

sub GetMyName(){
$str = “John Smith”;
return $str;
}

Subscribe to Blog: December 2012
X
Enter your Strategy Seeker username.
Enter the password that accompanies your username.
2 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
Secure Login

This login is SSL protected

Loading