Forum

Stochastic + MA240 strategy - problem with opening and closing orders

Dear Colleagues, since few months I`m succesfully trading with Stochastic and MA on 1h/4h charts. Few days ago I decided to automate my simple strategy, but I have some problems with opening and closing trades. The rules of my strategy are very simple: Open Buy trades: - if price is above Moving

maximum trades per currency - how to code it ?

Hello, how to control number of trades per currency ? For example, for current chart with running EA (for example EUR/USD), I would like to open maximum 1 trade. How to control number of open trades ? On this forum I found something about OrdersTotal(). How to use it to control number of open trades

Stochastic / MA240 strategy

Dear Colleagues, I just started learning mql4 and searching for a help. How to put "open/close trade" function to this example ? I would like to open a BUY trade once stochastic red line(signal) crossing stochastic (main) green line upwards. And close if stochastic green (main) line crossing signal