What is difference between

 
int CountBars=1000;

if (CountBars>=Bars) CountBars=Bars;
   
SetIndexDrawBegin(0,0);
SetIndexDrawBegin(0,Bars-CountBars);

What is the difference between last 2 lines.? And how can I code that arrow will appear immediately when some conditions is meet?

Thanks!

 
01005379:

What is the difference between last 2 lines.? And how can I code that arrow will appear immediately when some conditions is meet?

Thanks!


Anyone, please!
 

The last 2 lines means the same thing when the if() statement is True.

What's your code for drawing arrows?

Paste in here using the SRC button so someone can help you.

 

(Added) In response to you below question. Well if bars is greater than 1000. Say bars is 1001 then it'll start to draw from (0,1001-1000) == (0,1). I have limited experience with drawing objects. However, post your code for drawing objects and someone can help you. (maybe even me)

 
ubzen:
The last 2 lines means the same thing when the if() statement is True.

Thanks I know that (0=0), but what if there is not 0?
 
01005379:

Thanks I know that (0=0), but what if there is not 0?

Then it will draw it on a different bar, further to the left.

Chris

Reason: