AlgoTrade API
powered by Global eSolutions (HK) Limited

Introduction

Worked with Auton, an algorithmic trading platform that enables traders to develop, simulate, deploy and automate any quantitative trading strategy for any market.

Start writing your own code

Start writing Algo with following template

using System;
namespace AlgoTrade
{
public class RUN_ALGO_NAME : Program
{
//Declare parameter which can be changed during start of AlgoTrade
//[InputParameter] public MInt Parameter = 0;
public RUN_ALGO_NAME (Interface.IAlgoTradeFunction func) : base(func)
{
// By uncommenting the below code, OnTimer() will be called when every 500 millisecond
// Use SetTimer(false, -1) to disable the timer
//SetTimer(true, 500);
return 0;
}
// Start() will be called when using script mode
public override int Start ()
{
// Start your implementation here
return 0 ;
}
// OnTick() will be called when using Run With ... mode
public override int OnTick()
{
return 0;
}
// Implement OnCalculate and use "Run With Chart" if you want to add custom study to chart
//public override int OnCalculate(MInt rates_total,
// MInt prev_calculated,
// MDateTime[] time,
// MDouble[] open,
// MDouble[] high,
// MDouble[] low,
// MDouble[] close,
// MDouble[] volume)
//{
// return 0;
//}
//public virtual int OnTimer()
//{
// return 0;
//}
}
}