I Have this problem:
for checking a trend in my strategy it should check the index and the stock with the same parameter at same time.
How can i programming this? And how can i change the datainput?
this ist the code: the close from the index and from the stock are the basis:
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (Close[0] > WMA(54)[0]
&& Close[0] < Open[0])
{
CandleOutlineColor = Color.Red;
EnterLongLimit(DefaultQuantity, High[0], "");
}
// Condition set 2
if (Close[0] < WMA(54)[0])
{
ExitLong("", "");
}
}
Thanks Blackburn
Comment