Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
First pair 20MA period & 20MA period First band multiplier 1.5
Second pair 7MA period & 7MA period Second band multiplier 2
Long
Draw a "Up Arrow" when the price bar is rise and close above the "Upper band 1".(Up Arrow drawn on the high of the bar)
Draw a "Exit Mark" when the price is "Touch" the lower band 1 (Exit mark draw on the high of the bar)
Open a "Buy Limit" trade on the next bar of "Up arrow".
"Price" is the previous Close reduce "X" point
Lot size is "Z" it can be set on the input parameters. (from 0.01 )
Take profit "Y" point , it can be set on the input parameters.
Stop loss is the point of the previous "Lower band 2" ,this point will be adjust every new price bar close.
if the stop loss is fail stop on market price
Between" Up Arrow" and "Exit Mark" do not trade more then one time
Short
Draw a "Down Arrow" when the price is drop and close below the "Lower band 1". (Down Arrow drawn on the low of the bar)
Draw a "Exit Mark" when the price is "Touch" the upper band 1 (Exit mark draw on the low of the bar)
Open a "Sell Limit" trade on the next bar of "Down arrow".
"Price" is the previous Close add "X" point.
Lot size is "Z" it can be set on the input parameters. (from 0.01)
Take profit "Y" point , it can be set on the input parameters.
Stop loss is the point of the previous "Upper band 2" ,this point will be adjust every new price bar close.
if the stop loss is fail stop on market price
Between Down arrow and Finish Mark donot trade more then one time
Add "X", "Y", "Z" on input parameters other remind unchange (reference file)
All trade will be record and not affect by server reset .
All trade should identify to different market.
This EA will be only 1 file
The raw code to be provide for future upgrade.
Attach with the ATR indicators for your modify