Port Orange
Experience: Beginner
Platform: thinkorswim
Trading: options, gold, futures
Posts: 1 since May 2016
Thanks Given: 0
Thanks Received: 0
|
Hi Guys,
I am trying to code my strategy that takes place on a 1 minute chart then add another bar series that states that bars are on the upside of the supertrend on 1, 3 line break.
Here is what I have...
protected override void Initialize()
{
SetProfitTarget(100);
CalculateOnBarClose = true;
AddLineBreak("ES 06-17", PeriodType.Minute, 1, 3, MarketDataType.Last);
}
protected override void OnBarUpdate()
Close[0] > SuperTrend(14, 2.618, true).UpTrend[0])
(How do I code this part to check on the line break chart and not my primary bar series?)
Thanks
|