Forum

Current price from open order by ticket

Hello traders! I need help for my code. I need to get the current order price on the market, according to the ticket ... This price: I attach a function that returns the number of the ticket I found here: https://www.mql5.com/en/forum/109180 int LastOpenTicket___( int magic_number ) { // Function

Always search Two Bars in Five Bars _ and print this...

Hello all! :) I need loop for this, it is strong to me... I want to find the range for the last two bars and search for 5 bars And get the result in print, please check picture for understanding. better to explain I do not know, so I believe it will be understandable from picture. I need this

Maximum value from last x bars

Hello, this code is the sum of the differences, I need the maximum value found there... Example: if Bars = 5 (In brackets is the sum) Bar[5] +0.00010 Bar[4] +0.00004 (+0.00014) Bar[3] +0.00010 (+0.00024) Bar[2] -0.00010 (+0.00014) Bar[1] -0.00010 (+0.00004) Bar[0] -0.00010 (-0.00006) I need value