|
LessonBoxHello
Make a response that says hello.
IntroductionA strategy is made up of trading rules that make buy or sell decisions. In TradeLink, strategies are called Responses. Our first example will simply print "Hello World" as a message in the TradeLink applications. You will find this useful when testing and debugging your responses. The Examples found in the Responses project (start->programs->tradelink->response examples) contain the finished examples. Creating the Response
using System;
using TradeLink.Common;
using TradeLink.API;
namespace Responses
{
public class HelloWorld : ResponseTemplate
{
}
} public override void GotTick(TradeLink.API.Tick k)
{
} D("Hello World");
or
senddebug("Hello World");Testing the Response
Extra credit: Make the hello world response print "Hello World" for the first tick only, then shutdown immediately. |
► Sign in to add a comment
no sample data bundled in the current release. where can i get some?