Is this a bug? Or is this usage not correct?
Code: Select all
using System;
using System.Drawing;
using System.Linq;
using PowerLanguage.Function;
using ATCenterProxy.interop;
namespace PowerLanguage.Strategy {
public class highDTest : SignalObject {
private IOrderPriced buyToEnter;
public highDTest(object _ctx):base(_ctx){}
private HighD highD;
protected override void Create()
{
highD = new HighD(this);
buyToEnter = OrderCreator.Limit(
new SOrderParameters(Contracts.Default, "EnterLong", EOrderAction.Buy));
}
protected override void StartCalc()
{
highD.periodsago = 1;
}
protected override void CalcBar()
{
Output.WriteLine(Bars.Time[0].ToString());
Output.WriteLine(highD[0].ToString());
//buyToEnter.Send(highD[0]);
}
}
}