Forum

Go backwards if condition is not met. (Code Help )

I am having a problem with traversing bars backwards. I have a condition and if it is not met then I want it to change the bars it is focusing on and look backwards and stop when it meets the condition. I have this for loop int counter = 250 ; for ( int i = 0 ; i< counter; i++){ if (High[i]

looping through candlesticks and incrementing problem

So, I want to loop through candlesticks and see if they meet my conditions and if they do then I want to draw a line but my problem is with the looping. For example, int counter = 10 ; for ( int i = 0 ; i<counter; i++){ // some other condiitons for example if (High[ 0 ] > High[i] ) { //draw line }

Get the index of volume bar

Hello everyone this is my first post. I just want to know if I could get the index of volume bar in mlq4 I also want to know how to get the candlestick above this volume bar. How do I get that? For example, let's say current volume bar would be index 0 Thank you