Job finished
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specification
This EA is based on the Heikin Ashi Trading system.
What I want the EA to do is –
Long Entry Signal
· Enter long on close of the first Heikin Ashi flat bottom candle, only after a candle colour change. See Pictures below.
Short Entry Signal
· Enter short on close of first Heikin Ashi flat top candle, only after a candle colour change. See Pictures below.
Close Trades
· Close trades only on the Stop Loss, Trailing Stop or Take Profit.
Risk
· The Risk amount is to be set in dollars not % I want it to be fixed so that each trade that is opened risks the same dollar amount e.g. $50 risked for each trade.
· It can open a trade in the opposite direction with previous trade still open (hedging)
Stop Loss
· Stop to be adjustable based on the average true range.
· The average true range is to be defaulted at 14 periods not adjustable by the user.
· Average true range is based on the time frame traded.
· In the user inputs section I want to be able to adjust the Stop Loss Size, e.g. 1 x ATR or 1.2 x ATR or 2 x ATR Etc. whatever input I want
Profit Target
· Profit target is to be adjustable based on average true range.
· The average true range is to be defaulted at 14 periods not adjustable by the user.
· Average true range is based on the time frame traded.
· In the user inputs section I want to be able to adjust the Profit target Size, e.g. 1 x ATR or 1.2 x ATR or 2 x ATR Etc. whatever input I want.
Trailing Stop
· Trailing Stop is to be adjustable based on average true range.
· The average true range is to be defaulted at 14 periods not adjustable by the user.
· Average true range is based on the time frame traded.
· In the user inputs section I want to be able to adjust the trailing stop Size, e.g. 1 x ATR or 1.2 x ATR or 2 x ATR Etc. whatever input I want.
Time Frame
· I want to be able to set the time frame manually in the user inputs section from 1 min to weekly
· I want it to only operate on 1 time frame at a time. E.g. cannot open trades on the 5 min time frame if program is set to the 4h time frame.
Spread
· In the inputs section I want a safe guard if the spread is over a certain amount don’t trade
· The user inputs the spread amount e.g. 7.0 pips, this is to be based on a 5 digit broker.
Screen Display
I want the following displayed on the screen. At the top left hand corner
Trading Pair EURUSD
Risk Amount $50
Stop Loss 1 (x ATR)
Trailing Stop 1.5 (x ATR)
Take Profit 3 (x ATR)