Forum

Calculating Pip Size and and Questions about Tick/Lot Size Values

Hi All, I am currently new to MT4 and I want to compute for the pips with minimal hard coding. When coding for currency AUDCHF, I get the following info from MarketInfo(): 1. Lot Size = 100000 2. Tick Value = 1.089... 3. Tick Size = 1e-05 What I want to do is that I have an integer pip value that I

Execute at Bar Close

Hi All, Is there a way to run OnTick() during the bar close on the current bar? It I do the execution at the start of a new bar and then check the previous bar, my concern is that the execution will be a candle too late if i do this approach. Any thoughts on this? Thanks

MT4 Strategy Testing Bar values dont match

Hi All, I am new in MQL4 and I am trying to understand the strategy testing of MT4. When I try to run my EA, the Open/Close values does not match what is on the chart and it is way off: 2021.07.19 00:09:02.182 2020.07.16 00:00:00 DoyEA AUDCHF,Daily: Executed: 2020.07.16 00:00:00 Prev Close:0.66169