Работа завершена
Техническое задание
I need a simple advisor with Heiken Ashi and MA. Advisor must have two indicators: MA, all parameters of which should be external and Heiken Ashi. The working mechanism of EA is as following: if the the first white whole candle appears above the MA, the advisor must open buy transaction just as the next candle is opening and hold it open until the candle changes its color. This transaction should be closed just at the opening of the candle next to the one changing its color. If another white colored candle appears again upper the MA the new transaction up must be opened on the beginning of the next candle and must also be held until the color changing and closed as it is said above. This operation must be repeated as long as the candles are above the MA.
If the the first red whole candle appears below the MA, the advisor must open sell transaction just as the next candle is opening and hold it open until the candle changes its color. This transaction should be closed just at the opening of the candle next to the one changing its color. If another red colored candle appears again below the MA the new transaction down must be opened on the beginning of the next candle and must also be held until the color changing and closed as it is said above. This operation must be repeated as long as the candles are below the MA.