Help me !
I simplify my code as much as possible.My code applyes to 6B. My problem is: When I apply to main chart*(6B) then I Add(one more instrument) everything works great. But when I add 3rd instrument (6b-main, 6c- second and 6j third) even if I do not do anthing in code, just "Add("6J 06-17",PeriodType.Tick,2);" then it doesnt work.
Please help me how can I analyze, for example, according to MACD more than 2 pairs at the same time.
One more question. How can I analyze, for example, the last 10 bars has range no more than 10 ticks.Demonstrate me the code please.
protected override void Initialize()
{
CalculateOnBarClose = true;
Add("6C 06-17",PeriodType.Tick,2);
Add("6J 06-17",PeriodType.Tick,2);
}
protected override void OnBarUpdate()
{
if (BarsInProgress == 1)
{
if (CrossBelow(MACD(12, 26, 9).Avg, 0, 1))
{
EnterShort(2,10,"test1");
}
}
Thank you guys In advance,
Hope you have a great day
Regards,
Max
Comment