I want to generate signal on first instrument and anter trade on second of this code:
protected override void Initialize()
{
CalculateOnBarClose = true;
Add("ES ##-##", PeriodType.Minute, 20);
}
protected override void OnBarUpdate()
{
if (BarsInProgress == 0)
return;
//if this condition is verified
if (CrossBelow(SMA(1), Bollinger(2, 14).Lower, 1)
{
//enter long on second instrument
}
thanks again!
Comment