Mt4 Ea Programming Project

I want an EA to permit manual entries (using lines) and handle some exits and trade settings. Ideally, I would like to have a green dotted line (for buys) and a red dotted line (for sells) that I can double-click and move to where I want to place a buy/sell limit entry. I would also like to see a white dotted line that I can move to set SL.

Trade Options
1. Ability to draw/move a “Line” to set buy/sell limit entry.
2. Trigger ExitStrategy – If any candle closes against line (i.e., for buy limit entry, if any candle closes below line), then this triggers ExitStrategy as defined below.

Trade Settings
1. Entry Settings
a. NumberOrders – 1 or 2 (1 or 2 orders per entry signal) Default = 2
b. WithinXpips_Entry – The number of pips within Line in order to trigger a trade (i.e., 10 = must be within 10 pips.) Default = 5

2. ExitStrategy
a. Simple_Exit – If any candle closes against your line then exit out of the trade. Default = True
b. BE_Exit – If any candle closes against your line then move TP to BE. Default = False
i. xPipstoBE – x = pips (i.e., 5 = move TP to BE -5. So willing to take a 5 pip loss) Default = 10

3. Other Trade Settings –
a. Order1_Size – Order size of the trade Default = 1
b. Order1_SL – x pips Default = 100
c. Order1_BE – x pips Default = 0
d. Order1_TP – 0 = no TP
e. Order2_Size – Order size of the trade Default = 1
f. Order2_SL – x pips Default = 100
g. Order2_BE – x pips Default = 0
h. Order2_TP – 0 = no TP

4. Other settings
a. Set color and line style of Entry Line and SL Line
b. Ability to adjust SL by moving line.

Leave a Reply

Your email address will not be published. Required fields are marked *