how select a candel

 

hi dears

i want to select a candel for exampel number 1 and check  myCondition is true in candel 1 or no. i cant whrite this in expert

 
ata taheri:

hi dears

i want to select a candel for exampel number 1 and check  myCondition is true in candel 1 or no. i cant whrite this in expert

void OnTick() {
int selected_candle = 1;
bool your_condition;
double candle_select = iClose(NULL,0,selected_candle);
if(your_condition == candle_select){
// do something here
}
}

your question is not clear with logic how you are going to select a candle but you can do something like this, code is not compiled, its for reference only

Reason: