Hi, I have written this simple strategy and I would like to convert this to mql4 so I can run it on my mt4.
Any kind souls able to help me with it? Or is there a way to help automate this strategy, I have been googling and trying all sorts of stuffs but to no avail. I tried coding it on mql4 but it failed, the language is too hard for me.
//LONG WHEN - //2 Candles before close above EMA //Previous Low below EMA // Current Close above EMA currentCloseAboveEMA = (close[0] > ema200) longcondition = prevLowBelowEMA and prevClose2AboveEMA and currentCloseAboveEMA
// SELL WHEN - //2 Candles before close below EMA //Previous High above EMA // Current Close Below EMA currentCloseBelowEMA = (close[0] < ema200) shortcondition = precHighAboveEMA and prevClose2BelowEMA and currentCloseBelowEMA
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.