工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
Hello,
I need to create a "chart trading panel" for MetaTrader 5. Basically I would like to create something similar to the NinjaTrader Platform, but with some custom adjustment.
I will use this trading panel to trade Future Contracts on "AMP Future Broker". If you want you can download a demo MT5 with Future Data to see how it works exactly.
Below you can see the NinjaTrader Chart trading feature I would like to recreate similarly:
And below I tried to draw something like it on a MT5 chart as I would like you to create it: (it needs to be a bit bigger actually than my drawing)
So, my "Chart Trading Panel" will have few buttons and some other features as shown in the drawing.
Below the Buttons and need to have a black space where the TradingPanel will write the Profit/Loss of TODAY among ALL of the trades/ all of the cross. From the day later it will start again from zero.
Below it I need to have the "Contract Quantity" to choose, so if I trade 1 contract or more.
Below it I need to enable/disable the TP, SL, and BE.
------------------- Now I explain you how the buttons must work:
1- when I click on BUY MARKET or SELL MARKET button the TradingPanel must open a position immediately at market price with TP and SL set as per input parameter. (of course only if I enabled TP and SL below buttons).
2- when I click on BUYSTOP CANDLE the TradingPanel must set a BuyStop pending order X point above the maximum of the previous candle, or when I click on SELLSTOP CANDLE the TradingPanel must set a SellStop pending order X point
below the minimum of the previous candle. For instance: if I trade on 5M timeframe, if I click on BUYSTOP CANDLE the TradingPanel will set a pending BuyStop x point above the High[1]. These X points are set into input parameter.
3- When I click on Breakeven button the TradingPanel simply set the BE as soon as I click instead of wait for the market to reach a certain number of points.
4- When I click on Close button the TradingPanel will immediately close the open trade.
-------------------- Now, the input parameter must be these ones:
1- BUY MARKET and SELL MARKET function:
Take Profit= 10 point
StopLoss= 10 point
Breakeven= 5 point
// Breakeven is set as soon as the price reach 5 points of gain
BreakEvenPosition=1 point // Breakeven is set 1 point in profit
2- BUYSTOP CANDLE and SELLSTOPCANDLE funciont:
Take Profit= 20 point
StopLoss= 20 point
Breakeven= 10 point
// Breakeven is set as soon as the price reach 5 points of gain
BreakEvenPosition=1 point // Breakeven is set 1 point in profit
XpointDistance=2 point
// X Point above or below the High[1] or the Low[1]
---------------------------------- Last few things:
A- I need to choose where to display on the chart the TradingPanel, if using LeftCorner or Right Corner of the chart.
B- Only if this is possible, can the Trading Panel shows the Entry Level/StopLoss Level/TakeProfit Levels exaclty as Ninjatrader platform? So the entry level drawn with numebr of contract and PnL, the TakeProfit and StopLoss with number of point set (like 10 point) . This feature really only if is it possible.
That's all
Thanks a lot