shift vertical line

Created at 14 Jun 2018, 08:28
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

hamidrtafx@gmail.com

Joined 18.02.2018

shift vertical line
14 Jun 2018, 08:28


:hi i need  add new verticalline -17 back my  in code

 if (SenkouSpanA.HasCrossedAbove(SenkouSpanB, 26) && switch_komu)
            {
                ChartObjects.DrawVerticalLine(index.ToString(), MarketSeries.OpenTime[index], Colors.Black, 2);

 add new vertical line -17back

can you help me please

thanks


@hamidrtafx@gmail.com
Replies

PanagiotisCharalampous
14 Jun 2018, 10:14

Hi hamidrtafx@gmail.com,

Here it is 

hartObjects.DrawVerticalLine("test", MarketSeries.Close.Count - 17, Colors.Red, 2);

Best Regards,

Panagiotis


@PanagiotisCharalampous

hamidrtafx@gmail.com
14 Jun 2018, 10:22

RE:

Panagiotis Charalampous said:

Hi hamidrtafx@gmail.com,

Here it is 

hartObjects.DrawVerticalLine("test", MarketSeries.Close.Count - 17, Colors.Red, 2);

Best Regards,

Panagiotis

thanks a lot

:but i want market series open time -17 similar code
 

ChartObjects.DrawVerticalLine(index.ToString(), MarketSeries.OpenTime[index], Colors.Black, 2);


 


@hamidrtafx@gmail.com

PanagiotisCharalampous
14 Jun 2018, 10:24

Hi hamidrtafx@gmail.com,

What does -17 represent? Bars, hours, anything else?

Best Regards,

Panagiotis


@PanagiotisCharalampous

hamidrtafx@gmail.com
14 Jun 2018, 10:26

  if (SenkouSpanA.HasCrossedBelow(SenkouSpanB, 26) && switch_komu1)
            {
                ChartObjects.DrawVerticalLine(index.ToString(), MarketSeries.OpenTime[index], Colors.Black, 2);
 ChartObjects.RemoveObject((index - 1).ToString());

 


@hamidrtafx@gmail.com

hamidrtafx@gmail.com
14 Jun 2018, 10:29

RE:

Panagiotis Charalampous said:

Hi hamidrtafx@gmail.com,

What does -17 represent? Bars, hours, anything else?

Best Regards,

Panagiotis


17From this condition-

if (SenkouSpanA.HasCrossedBelow(SenkouSpanB, 26)

 


@hamidrtafx@gmail.com

PanagiotisCharalampous
14 Jun 2018, 10:37

17 bars? If yes, you can use the code I posted


@PanagiotisCharalampous

hamidrtafx@gmail.com
14 Jun 2018, 11:14

RE:

Panagiotis Charalampous said:

17 bars? If yes, you can use the code I posted

yes bars

 

but i want In the past, the market has also been featured


@hamidrtafx@gmail.com