명시
Hello,
I need the following utility coded.
You attach the EA to the chart.
3 buttons should appear in the upper right corner.
BUY SELL
CLOSE ALL
When you press Sell in MT4 the market order is generated plus 4 additional Sell Limit orders above.
When you press Buy in MT4 the market order is generated plus 4 additional Buy Limit orders below.
The number of limit orders should be accessible via the inputs tab.
The additional limit orders should have a distance of 300 ATR multiplied by 0.5.
These values should be accessible via the inputs tab.
Now you can draw a horizontal or trendline and name it "TPbuy" or "TPsell".
For all Buy or Sell orders the TP will be set accordingly. When you use a trendline the TP will follow the trendline.
The ability to move the lines should be there. Same would be for SL "SLsell" or "SLbuy"
This naming should be accessible via the inputs tab.
When you press "Close All". All orders on the chart will be closed.
When the TP or SL is hit, all orders will be closed.
Inputs tab:
Lotsize (Fixed lotsize for all orders)
Number of Limit orders (additional to the market order default 4)
ATR period (default 300)
ATR multiply (default 0.5)
Take Profit BUY (name for the line default (TPbuy)
Take Profit SELL (default TPsell)
Stop Loss BUY (default SLbuy)
Stop Loss SELL (default SLsell)
Magic Number