Hi there...
I'm in the middle of designing a piece of event-driven trading software and to keep a nice intuitive feel and usability, I have decided to listen to the voice of people.
Feel free to help and NO it's not a new comedy of TickZoom and NO it's not open source at the moment and NO I'm not going to sell it. I am only myself and programming is only done in my spare time which equals to close to no-time.
Anyway....
Here we go...
As in many other trading platforms I've created a Strategy-class.
Here we are looking at some methods in the strategy class:
public override void StartUp()
{
// in this startup we need to define which indicators that should be available when the strategy is running.
//option 1)
var sma21 = Indicator.Trend.SMA.Input(Close).WithLength(21);
var macd = Indicator.Trend.MACD.Input(Close).WithFastLength(26).WithSlowLength(21).SignalLine(9);
var trix = Indicator.Momentum.TRIX.Input(Close).WithLength(21);
//option 2)
var sma9 = new Indicators.Trend.SMA();
sma9.Input(Close);
sma9.Length(9);
//same approach for MACD
}
protected override void OnBarUpdated(Common.Entities.IBarData barData)
{
base.OnBarUpdated(barData);
}
protected override void OnTick(Common.Entities.ITickData tickData)
{
System.Diagnostics.Trace.WriteLine("Tick recieved");
}
Or could we come up with something else?
I'm in the middle of designing a piece of event-driven trading software and to keep a nice intuitive feel and usability, I have decided to listen to the voice of people.
Feel free to help and NO it's not a new comedy of TickZoom and NO it's not open source at the moment and NO I'm not going to sell it. I am only myself and programming is only done in my spare time which equals to close to no-time.
Anyway....
Here we go...
As in many other trading platforms I've created a Strategy-class.
Here we are looking at some methods in the strategy class:
public override void StartUp()
{
// in this startup we need to define which indicators that should be available when the strategy is running.
//option 1)
var sma21 = Indicator.Trend.SMA.Input(Close).WithLength(21);
var macd = Indicator.Trend.MACD.Input(Close).WithFastLength(26).WithSlowLength(21).SignalLine(9);
var trix = Indicator.Momentum.TRIX.Input(Close).WithLength(21);
//option 2)
var sma9 = new Indicators.Trend.SMA();
sma9.Input(Close);
sma9.Length(9);
//same approach for MACD
}
protected override void OnBarUpdated(Common.Entities.IBarData barData)
{
base.OnBarUpdated(barData);
}
protected override void OnTick(Common.Entities.ITickData tickData)
{
System.Diagnostics.Trace.WriteLine("Tick recieved");
}
Or could we come up with something else?
and never under estimate the power of doing the things by yourself. Many of the open sources have a nasty code smell that would be impossible for me to ignore.