i have == when my indicatori.vertical line.

Created at 02 Oct 2017, 00:08
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
HA

i have == when my indicatori.vertical line.
02 Oct 2017, 00:08


hi 

i have  2 line in my indicator:

1.qulityline(black line)

2.span B

 

i want vertical line  in chart when 2 line(aqaul) example picture:

show arrow at pictue.

at arrow qualityline= span B.

 

MY CODE IS:

 

TenkanSen[index] = (maxfast + minfast) / 2;
            KijunSen[index] = (maxmedium + minmedium) / 2;
            ChikouSpan[index - DisplacementChikou] = MarketSeries.Close[index];
            SenkouSpanA[index + DisplacementCloud] = (TenkanSen[index] + KijunSen[index]) / 2;
            SenkouSpanB[index + DisplacementCloud] = (maxslow + minslow) / 2;
            qualityline[index + Displacementkijunsen] = (maxmedium + minmedium) / 2;
            qualityline103[index + Displacementkijunsen] = (maxbig + minbig) / 2;
            TenkanSen17[index + Displacementtenken] = (maxfast + minfast) / 2;
            Directionline[index] = (maxslow + minslow) / 2;

          
            if (qualityline.HasCrossedAbove(SenkouSpanB, 0) || SenkouSpanB.HasCrossedBelow(qualityline, 0) && cross_tenkansenandKijunsen1)
            {
                ChartObjects.DrawVerticalLine(index.ToString(), MarketSeries.OpenTime[index], Colors.Blue, 1, LineStyle.DotsVeryRare);
                ChartObjects.RemoveObject((index - 1).ToString());
                Notifications.PlaySound("C:\\Windows\\Media\\Sonata\\Windows Exclamation.wav");

            }

code mistake.beacuse show verticalline at picture:

 

 

can you help me?

thanks.


@hamidreza.taali@gmail.com