Forum

How to convert mt4 to mt5

Hi, i have written a code in mt4 and trying to make the same ea in mt5. However, i am having trouble converting it to mt5. Thank you in advance in helping me. dont know how to close the trade in mt5. Thanks void OnTick () { //curent chart, current period, 20 candles,no shift, simple, close

two ma cross condition. thanks

Hi, thank you in advance for helping me. I'm new to this. what i want to do is when my ma cross in the 15 minutes the ea will go to another condition which is wait for my another ma cross in the 5 minutes chart then the trade will be closed. my code is working if i only have 1 ma cross but if i need

Ontick inside void ontick()-manual trade is alrrady open

Hello everyone. I'm sorry if i ask questions so basic I'm new to this. But i just want to know it this is possible. I actually want , one ma cross, and then wait for another ma to cross then close the trade. Thank you everyone in advance. void OnTick () { If (ma100_1hr < ma50_1hr);

Using single operator for bool will this work

I have a bool code Can i use a single operator like this Bool a >b && b<a && c>d && d<c; Will this work? Thanks in advance

mt4 how to make two moving average signal ea

Hi everyone, I'm new to this forum and new to creating an ea. I'm an aspiring mt4 ea maker and I would like to know how to make an ea that takes a trade after my two signals are met. my sample is . when first ema crossed(sample value200 and 100) happens wait for another ema to cross(sample value 80