Forum

Help with simple EA

Hello i made a simple EA, which is supposed to buy when: 22EMA is above 44SMA, 2nd and 1st previous candles were both above 22EMA, no positions are open - and sell when: 22EMA is below 44SMA, 2nd and 1st previous candles were both below 22EMA, no positions are opened yet. It is a basic EA for

Need help with my custom indicator

Hello! A total MQL programming newbie here. I decided to create my first custom indicator in MQL4 based on pin bars. When i finished the writing and compiled the code everything was allright, but when i decided to use it on chart i got the message in expert chart: 2020.02.06 14:33:38.665 Custom