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
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.