Disliked{quote} oh, that's great! and i have no idea how can you locate the right lvl to trade automatically... As your programming skill is much better than mine, could u pls. give me a clue on this? I have 2 vertical lines and i don't know how to calculate the number of bars between them. I searched entire forum and there is no answer....pls. help. thanks!Ignored
Inserted Code
int h1=(iBarShift(Symbol(),0,ObjectGet("Vertical Line 59376",OBJPROP_TIME1))); int h2=(iBarShift(Symbol(),0,ObjectGet("Vertical Line 59429",OBJPROP_TIME1))); Alert(h1-h2);//Make sure h1 is bigger than h2 otherwise it becomes a negative number
Attached File(s)
calculateCandleDifferenceBetweenVerticalTwoLines.mq4
1 KB
|
202 downloads
This is not investment/trading advise. Will not hold accountable for loss