When i write :
protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
CalculateOnBarClose = false;
Overlay = true;
PriceTypeSupported = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1 kupuj
if ( Close[0] > MAX(High, 2)[0] )
{
DrawArrowUp("My up arrow" + CurrentBar, 0, Low[0] +- 5 * TickSize, Color.Blue);
DrawLine("My line" + CurrentBar, 0, Low[0],35, Low[0], Color.Blue);
}
I would like trade Long when price breakout MAX from 2 bars, but that indicator don't plot on chart, where is bug ?? What I write wrong ?? Help me
Comment