Forum

EA showing no errors but failing to place orders.

Hi, I am new to MQL 4 coding and trying to get up to speed. This is my first EA and the strategy tester runs successfully but just does not place any trades. I have written part of an EA to enter a trade when the current candle has broken out of the 20 candle bollinger with 2 std dev then come back

Average number of Pips per Tick

Is there a way to calculate the Average number of Pips per tick? I am new to coding in MQL4. I would like to check in my code if there is a sudden fast movement against my trade and close it out if true. Should I use the spread? Thanks for any assistance