Forum

time older than by days

i am confused how to calculate if "OTime=2022.05.20 22:00" is older than 3 days by TimeCurrent() i tried (( TimeCurrent ()-OTime)-( 2 * 86400 ))+ TimeCurrent () or ( TimeCurrent ()-OTime)+( TimeCurrent ()-( 2 * 86400 )) forgot about my calculations its totally fail i just want to use 'if expression'

CSV Read/Write and remove a line row

Hello, i was reading that article https://www.mql5.com/en/articles/2720 i have got most of what i need i learned how to write and read csv lines. but i couldnt fix remove a csv line row or in other term file line content. here is a test.csv Line- 1 - 1 ;Line- 1 - 2 ;Line- 1 - 3 Line- 2 - 1 ;Line- 2

Easy: return specific position of String

this is confusing me a bit, string fruit= "Tom today eat some Apple and he is happy" ; return the 5th position/word were meant to be the "apple" i couldn't find anything useful at https://www.mql5.com/en/docs/strings my focus is on mql5

Strategy Tester multi timeframes

Hello, i have notice sometimes when i run " Strategy Tester " it accidently open another chart in different timeframe, i have no idea why and how it opens that TF but i wanted to have smaller TF, so how i can run another chart