Trade Assistant - description of the panel and functions

Trade Assistant - description of the panel and functions

25 мая 2019, 10:45
Evgeniy Kravchenko
0
6 307

Trade Assistant is a trading panel designed for manual trading. The panel allows you to calculate risk, manage positions using the functions Trailing Stop, Trailing limit orders, closing a position in parts. And other useful features.

Key features of the panel

  • Works with any trading instrument.
  • Calculates the risk per trade depending on the size of the Stop loss.
  • The panel supports market and pending Buy, Sell, Sell Stop, Buy Stop, Sell Limit, Buy Limit orders.
  • The Lines function displays the calculated data for a future position before opening it.
  • Shows the profit of a position including commission.
  • Closing positions Close Buy, Close Sell, Close All, Close Profit, Close Loss, Close Stop, Cose Limit.
  • Closing all positions upon reaching the specified profit.
  • Alert function when support and resistance lines are broken.
  • Managing the positions of all symbols from one chart.
  • The function of canceling orders - OCO Order.
  • The function of secret execution of Stop loss and Take Profit - Hide SL TP.
  • Closing a position in parts.
  • Trailing Stop in various versions (in points, Fractals, MA, Parabolic SAR, ATR).
  • Trailing Limit Orders.
  • Transfer of Stop loss to the level without loss.


    Interface

    Description of the main tabs and interface elements.


    Trade Tab

    The Trade tab contains buttons for opening market / pending orders, risk calculation functions and other auxiliary functions.


    1. Symbol is a trading instrument of the current chart.
    2. Program version.
    3. Risk Entry - here you can enter the risk percentage per trade. On the Settings tab, select the Risk calculation type.
    4. Minimize panel button.
    5. Button to close and remove the program from the chart.
    6. Trade server time.
    7. Tabs for switching the main menu.
    8. Snapshot button.
    9. The button enables / disables lot calculation.
    10. Show lines / Hide lines button - shows lines for marking a future order.
    11. Entry - entry field for the entry price of a pending order. If in points, the entry price will be postponed at the specified distance from the market price.
    12. Enter Stop Loss - if 0 then the position will be set without Stop Loss.
    13. Price button - enables the entry of the Price for the Entry, Stop Loss, Take Profit fields.
    14. A group of buttons, when pressed, places an order of the corresponding type.
    15. Enter Take Profit - if 0, then the position will be set without Take Profit.
    16. Volume input. To open deals with a fixed lot. Available if risk calculation is disabled in clause 9.
    17. Entering the order comment.
    18. Entry to set the profit-to-loss ratio for TP SL. If 0 is disabled.
    19. Display of the current spread and commission.
    20. Arrow - indicator of the last tick, green arrow - positive last price change, red arrow - negative last price change.


                                                                                Close tab

                                                                                The Close tab contains functions for closing orders by different types. Closing by type is made in the form of a table which displays information about the profit and the number of orders of this type.


                                                                                1. Type - the column contains buttons for closing by order type.
                                                                                2. Profit - profit is displayed in the column.
                                                                                3. % - the column displays profit as a percentage of the balance.
                                                                                4. Total - shows the number of orders.
                                                                                5. Close Buy - when clicked, all Buy positions are closed.
                                                                                6. Close Sell - when pressed, all Sell positions are closed.
                                                                                7. Close All - when pressed, all Buy and Sell positions are closed.
                                                                                8. Close Profit - when clicked, all positions are closed with a profit.
                                                                                9. Close Loss - when pressed, all positions are closed at a loss.
                                                                                10. Close Stop - when clicked, all Stop orders are closed.
                                                                                11. Cose Limit - when pressed, all Limit orders are closed.
                                                                                12. Symbols All - enable if you need to close the positions of all characters opened by this program.
                                                                                13. Magic All - enable if you need to close positions set manually or by another program.
                                                                                14. Enabling / disabling the function, the Profit on function closes all Buy and Sell positions when the specified profit is reached.
                                                                                15. Enabling / disabling the function, Loss on - the function closes all Buy and Sell positions when the specified loss is reached.
                                                                                16. L - Line call button for placing stop orders.
                                                                                17. M - the button will set a stop order for current positions at the selected price.
                                                                                18. ! M - at the current price, you cannot place a stop order (when you click, the line will be deleted).
                                                                                19. X - line removal.

                                                                                Close All if function - the function closes all Buy and Sell positions when the specified profit / loss for the current Symbol is reached.

                                                                                When the buttons 14, 15 are activated in the On mode, the function starts its work, namely, in real-time mode, monitor the conditions:

                                                                                Profit >=Value, Loss >=Value.

                                                                                Important: If you activate the function and switch to another symbol, you risk closing positions. Since the function keeps track of the current Symbol.

                                                                                To avoid this, use the installation of stop orders using buttons 16.


                                                                                Settings tab

                                                                                The Settings tab contains settings for additional and basic functions.


                                                                                1. Risk calculation - selection of the risk calculation method.
                                                                                2. Custom value - specify from what amount to calculate the risk percentage (used for% Custom value).
                                                                                3. Alert - select the line type for setting the alert.
                                                                                4. Manage all Symbols - the function enables the mode of managing all Symbols from one chart window. This allows you to open positions on different symbols and the panel will control each position. Different function parameters can be set for each position.
                                                                                5. OCO order - an order canceling another order. The function must be enabled for a pair of pending orders or more. When one of them is activated, the others will be canceled.
                                                                                6. Hide SL TP - Hide SL TP function.
                                                                                7. Apply - apply settings to already open positions.

                                                                                  Risk calculation

                                                                                  Methods for calculating the risk per trade. The Risk (Trade tab) input field indicates the risk per trade, depending on the method.

                                                                                  • $ Currency - in the deposit currency, in the input field Risk (Trade tab) the desired risk is indicated in the deposit currency.
                                                                                  • % Balance - as a percentage of the balance.
                                                                                  • % Equity - as a percentage of funds.
                                                                                  • % Free Margin - from free margin.
                                                                                  • % Custom - as a percentage of its Custom value.
                                                                                  • % AB prev Day - as a percentage of the Balance of the previous Day.
                                                                                  • % AB prev Week - as a percentage of the balance of the previous week.
                                                                                  • % AB prev Month - as a percentage of the balance of the previous month.

                                                                                  Methods AB per Day, Week, Month - this is the value of the balance at the end of the previous Day, Week, Month. This allows you to trade a fixed risk during the Day, Week, Month.

                                                                                  Example of calculating the risk per trade

                                                                                  Risk = 5

                                                                                  Risk calculation = % Balance

                                                                                  Balance = 10000 USD

                                                                                  Risk per trade = 5 \ 100% * 10000 = 500 USD

                                                                                  This calculates the risk per trade in the deposit currency, after which the program calculates the Lot for the position.



                                                                                  Partial close

                                                                                  The function allows you to close the position in parts.


                                                                                  % Close - percentage of the total position volume.
                                                                                  Pip - distance in points from the opening price.
                                                                                  Auto - the function distributes partial closing levels evenly.




                                                                                  TS tab

                                                                                  Functions Trailing Stop and Trailing Limit Order.


                                                                                  Trailing Stop - the function moves the Stop Loss order after the price.

                                                                                  The function is implemented in various ways:

                                                                                  • Trailing Stop Pip - classic setting in points.
                                                                                  • Trailing Stop Fractal - the Fractal indicator is used.
                                                                                  • Trailing Stop MA - the Moving Average indicator is used.
                                                                                  • Trailing Stop Parabolic SAR - the Parabolic SAR indicator is used.
                                                                                  • Trailing Stop ATR - uses the ATR indicator.
                                                                                  • Trailing Stop by Partial Close - the function of Closing in parts is used.
                                                                                  • Trailing Stop High Low prev bar - the High Low prices of the previous bar are used.

                                                                                  Trailing Stop Pip

                                                                                  • Start - the level from which the function starts to work, if 0 then the function works immediately, if> 0 - the function works when the profit position in points is greater than this value.
                                                                                  • Distance - distance from the market price to the Stop Loss order.
                                                                                  • Step - sets the Stop Loss step.

                                                                                  Trailing Stop Fractal

                                                                                  • Fractals Scan bar (min 5) - the number of bars on which the nearest fractal is searched.

                                                                                  Trailing Stop MA

                                                                                  • Period - period of the Moving Average indicator.
                                                                                  • Method - indicator calculation method.
                                                                                  • Apply to - calculation prices.

                                                                                  Trailing Stop Parabolic SAR

                                                                                  • Step - indicator step.
                                                                                  • Maximum - maximum indicator.

                                                                                  Trailing Stop ATR

                                                                                  • Period - period of the indicator Average True Range.
                                                                                  • Coefficient - is a multiplier.

                                                                                  Stop Loss = Bid +- ATR * Coefficient;


                                                                                  Trailing Stop by Partial Close - For the function to work, the Trailing Stop by Partial Close function is required. Stop Loss moves to the previous partial close level.

                                                                                  • at TP1 modify sl: price open - on / off when TP1 closes, change SL to the open price.


                                                                                  Trailing Stop High Low prev bar - moves Stop Loss to the High or Low price of the previous bar.

                                                                                  • Distance - distance in points from the High or Low price of the previous bar.


                                                                                  Trailing Limit Order - the function moves Limit orders following the market price.

                                                                                  • Trailing pip - distance to the limit order from the market price.


                                                                                  Breakeven Function



                                                                                  Breakeven - the function allows you to move a Stop Loss order once.

                                                                                  Condition: When position profit (points)> = Start

                                                                                  The result of the function: a new Stop Loss level = open price + Profit.


                                                                                    Order menu

                                                                                    This function allows you to change the function settings for the selected item.





                                                                                    Other functions


                                                                                    Lines

                                                                                    Layout orders using lines. This function draws the entry, stop loss and take profit lines on the chart, moving these levels can be configured for any type of order.

                                                                                    The lines indicate information with which parameters the future order will be opened and in the advanced parameters you can choose which information will be displayed.





                                                                                    1. L - the button is similar to Lines.
                                                                                    2. The button will expand the panel to its normal state.
                                                                                    3. Buttons for fixing lines at prices Lock TP SL.
                                                                                    4. Take Profit line.
                                                                                    5. Stop Loss line.
                                                                                    6. Entry line.
                                                                                    7. Place - The button, when pressed, will open an order.
                                                                                    8. X - the button, when pressed, removes lines from the chart.
                                                                                    9. R - changes the Sell type to Bay and vice versa.


                                                                                      By default, the entry line sticks to the market price Bid or Ask, depending on the type of order. You can adjust sticking using the Magnet to the price parameter in the additional settings.  To remove sticking, set the value to 0.




                                                                                      An example of markup and position opening.




                                                                                      An example of marking up and opening a pending order.




                                                                                      OCO Order  (‘One Cancels the Other’ orders)

                                                                                      The function cancels pending orders if one of the pending orders has been activated.


                                                                                      Hide SL TP 

                                                                                      Hidden Stop Loss and Take Profit are drawn as lines on the chart.

                                                                                      When the market price crosses the line, an order is sent to the broker to close the position.


                                                                                      Hotkeys

                                                                                      Available features for installation.

                                                                                      • KEYS "Open Buy"
                                                                                      • KEYS "Open Sell"
                                                                                      • KEYS "Close Buy"
                                                                                      • KEYS "Close Sell"
                                                                                      • KEYS "Close All"
                                                                                      • KEYS "Close Profit"
                                                                                      • KEYS "Close Loss"
                                                                                      • KEYS "Close Limit"
                                                                                      • KEYS "Close Stop"
                                                                                      • KEYS "Lines"
                                                                                      • KEYS "Lines Buy/Sell"
                                                                                      • KEYS "Place (open order)"
                                                                                      • KEYS Edit Comment Order
                                                                                      • KEYS Chart period M1
                                                                                      • KEYS Chart period M5
                                                                                      • KEYS Chart period M15
                                                                                      • KEYS Chart period M30
                                                                                      • KEYS Chart period H1
                                                                                      • KEYS Chart period H4
                                                                                      • KEYS Chart period D1
                                                                                      • KEYS Chart period W1
                                                                                      • KEYS Chart period MN
                                                                                      • KEYS Next Symbol
                                                                                      • KEYS Previous Symbol
                                                                                      • KEYS Chart Type (Bar,Candles,Line)
                                                                                      • KEYS Chart Zoom +
                                                                                      • KEYS Chart Zoom -
                                                                                      • KEYS Alert if: Bid>Line
                                                                                      • KEYS Alert if: Bid<Line
                                                                                      • KEYS Alert if: Bid>TrendLine
                                                                                      • KEYS Alert if: Bid<TrendLine
                                                                                      • KEYS Alert if: Ask>Line
                                                                                      • KEYS Alert if: Ask<Line
                                                                                      • KEYS Alert if: Ask>TrendLine
                                                                                      • KEYS Alert if: Ask<TrendLine
                                                                                      • KEYS ScreenShot

                                                                                          The function is case-sensitive and language sensitive.


                                                                                          Screenshots

                                                                                          The function allows you to take screenshots, with a single click of a button from the panel, or automatically when performing trading operations.

                                                                                          Input parameters:

                                                                                          • Name Folder - The name of the folder.
                                                                                          • Auto ScreenShot - enable / disable automatic saving of screenshots when performing trading operations.

                                                                                          Screenshots are saved along the way:

                                                                                          In the terminal, open: File / Open data directory / MQL5 / Files / TA ScreenShot

                                                                                          For MT4 terminal: File / Open data directory / MQL4 / Files / TA ScreenShot


                                                                                          Panel color




                                                                                          White




                                                                                          Dark



                                                                                          To change the color of the panel, load the settings files: while.set or black.set (files at the end of the description).

                                                                                          Place the files folder:

                                                                                          In the terminal, open: File / Open data directory / MQL5 / Presets

                                                                                          For MT4 terminal: File / Open data directory / MQL4 / Presets

                                                                                          Next, open the Input Parameters tab, click the download button. And select the previously downloaded settings file.




                                                                                          Description of Input Parameters

                                                                                           Point(pip) Option    Multiplier for entering points
                                                                                           Point
                                                                                           Point*10
                                                                                           Point*100
                                                                                           Ratio Profit  2   Value Take Profit = Stop Loss * 2, if 0 then disabled
                                                                                           Ratio Loss  1  Value Stop Loss = Take Profit * 1, if 0 then disabled
                                                                                           Risk  5  Risk per trade
                                                                                           Take Profit (pip)  20
                                                                                           Stop Loss (pip)  20
                                                                                           Entry (pip)  20  Distance from the market price for opening pending orders
                                                                                           Lot  0.1  Volume of the transaction in lots
                                                                                           Order Comment  Comment  Commentary on the order
                                                                                           Button On/Off Calc Risk  true  On / off button for calculating risk (volume) per trade
                                                                                           Show Line Type (Buy/Sell)  BUY  Direction of markup lines for purchase or sale
                                                                                           EXPERT MAGIC  56785443  Expert ID. Each expert can set their own unique identifier when sending a trade request.
                                                                                           By default, it works with positions in which this magic number is indicated. If 0 then it works with all magic numbers.
                                                                                           Deviation (point)  100  The maximum acceptable deviation from the asking price, set in points
                                                                                           Sounds of trading  true
                                                                                           Trading Sounds
                                                                                           Button Price  false  Price button - enables price entry for Entry, Stop Loss, Take Profit fields.
                                                                                           Risk button (Increment/Decrement)  0.01  For buttons add / decrease value in the panel
                                                                                           TP SL Entry button (Increment/Decrement)  1.0  For buttons add / decrease value in the panel
                                                                                           Risk calculation  % Balance  Methods for calculating the risk per trade.

                                                                                          • $ Currency - in the deposit currency, in the input field Risk (Trade tab) the desired risk is indicated in the deposit currency.
                                                                                          • % Balance - as a percentage of the balance.
                                                                                          • % Equity - as a percentage of funds.
                                                                                          • % Free Margin - from free margin.
                                                                                          • % Custom - as a percentage of its Custom value.
                                                                                          • % AB prev Day - as a percentage of the Balance of the previous Day.
                                                                                          • % AB prev Week - as a percentage of the balance of the previous week.
                                                                                          • % AB prev Month - as a percentage of the balance of the previous month.
                                                                                           Custom volue  1000  The value from which the risk percentage is calculated in the Risk calculation method is % Custom
                                                                                           Profit display with commission    on / off display of commission in profit
                                                                                           Trailing Timer  Sec  Timer for checking the Trailing Stop function.
                                                                                           Sec - every n seconds, if 0 then it works on every new tick.
                                                                                           New Bar - works on every new bar.
                                                                                           Sec  0  Seconds for Trailing Timer
                                                                                           Enable Trailing Stop  false  On / off function
                                                                                           Trailing Stop Metod    Trailing Stop Methods
                                                                                           
                                                                                           -Screenshot-    The function takes a screenshot of the graph.
                                                                                           Name Folder  TA Screenshot  Folder name
                                                                                           Auto Screenshot  OFF  If the ON function takes screenshots during trading operations, opening a position and closing a position
                                                                                           HOTKEYS    Hotkeys
                                                                                           HOTKEYS ON/OFF  OFF  
                                                                                           Tab+  OFF  Key activation with Tab + key
                                                                                           -Panel-    Panel Settings
                                                                                           Panel_X  20  Panel position along the X coordinate (from the upper left corner)
                                                                                           Panel_Y  20  Panel position along the Y coordinate (from the upper left corner)
                                                                                           Panel_SCALE  AUTOSCALE  Panel scaling.
                                                                                           AUTOSCALE - automatically adjusts to the scale of the operating system.
                                                                                           -Close all if: Profit Loss-    Close All if function - the function closes all Buy and Sell positions when the specified profit / loss for the current Symbol is reached.
                                                                                           Profit - true/false    On / Off close function when profit is reached
                                                                                           Loss - true/false    On / Off close function upon loss
                                                                                           Profit    Profit
                                                                                           Loss    Loss
                                                                                           Send Alert if Close All  false  Alert notice of closing positions
                                                                                           -Alert-    Alert function - notifies when price crosses resistance support lines.
                                                                                           Alert Type    Notification Type
                                                                                          • Voice of Joanna, Female
                                                                                          • Voice of Matthew, Male
                                                                                          • Alert
                                                                                          • Push
                                                                                          • Mail
                                                                                          • Alert, Push, Mail
                                                                                           Maximum iterations    Number of repetitions
                                                                                           Time Out (sec)    Pause between reps
                                                                                           Alert Error  ON  Checking order parameters before sending to the broker. If ON - notification in the form of Alert, if OFF - a text message is displayed in the expert log.
                                                                                           -STRING_OPTIONS-    -STRING_OPTIONS-
                                                                                           Text separator  |   The separator between the parameters is used in the Stop line TP SL, Open line, Position line, Partial Close line
                                                                                           -Stop line TP SL-
                                                                                             Available options for displaying SL TP. The line length is not more than 64 characters.

                                                                                           
                                                                                           Pips    Point
                                                                                           0.00% of Price    Interest on the price
                                                                                           RR Profit/initial risk    The ratio of profit or loss to initial risk
                                                                                           Profit currency    Profit in deposit currency
                                                                                           0.00% of Balance    Interest on balance
                                                                                           Price    Price
                                                                                           -Open line-    Available options for the line to open a position. The line length is not more than 64 characters.

                                                                                           
                                                                                           Volume (Lot)    Volume in lots
                                                                                           Margin    Margin per trade
                                                                                           Risk / profit ratio (of point)    Profit to risk ratio in points
                                                                                           Commission    Transaction commission
                                                                                           Spread    Spread
                                                                                           Price    Price
                                                                                           -Position line-     Available options for the position. The line length is not more than 64 characters.

                                                                                           
                                                                                           Volume (Lot)    Volume in lots
                                                                                           Count close/%    The number of closures in parts / percentage of the initial volume
                                                                                           Risk/profit ratio (of point)    Profit to risk ratio in points
                                                                                           RR Profit/initial risk    The ratio of profit or loss to initial risk
                                                                                           Profit pips    Profit in points
                                                                                           Profit currency    Profit in deposit currency
                                                                                           Profit 0.00% of Price    Profit as a percentage of the price
                                                                                           Profit 0.00% of Balance    Profit as a percentage of the balance
                                                                                           Price    Price
                                                                                           -Partial Close line-    Partial close options available

                                                                                           
                                                                                           Pips    Point
                                                                                           Volume (Lot)    Volume in lots
                                                                                           Risk / profit ratio (of point)    Profit to risk ratio in points
                                                                                           RR Profit/initial risk    The ratio of profit or loss to initial risk
                                                                                           Profit currency    Profit in deposit currency
                                                                                           0.00% of Balance    Profit as a percentage of the balance
                                                                                           -Dashboard position-    Additional parameters Position line
                                                                                           Position Align Create    Starting position Position line
                                                                                          •  Do not show
                                                                                          •  CENTER
                                                                                          •  RIGHT
                                                                                          •  LEFT
                                                                                           Menu display angle    Order management menu location
                                                                                          • Left upper chart corner
                                                                                          • Left lower chart corner
                                                                                          • Right lower chart corner
                                                                                          • Right upper chart corner
                                                                                           Confirmation close position    On / Off confirmation of closing a position through Close position %
                                                                                           
                                                                                           Close position %  100  Percentage of closing position volume
                                                                                           Partial Close Profit % Add  25  Percentage of closing position volume for partial profit closing
                                                                                           Partial Close Loss % Add  25   Percentage of closing position volume for partial loss closure
                                                                                           Move SL TP with the mouse    Moving SL TP lines with the mouse
                                                                                           -SHOW_LINES-    -SHOW_LINES-
                                                                                           Align Mode    The position of the lines on the chart
                                                                                          •  RIGHT
                                                                                          •  LEFT
                                                                                          •  SHIFT RIGHT
                                                                                          •  SHIFT LEFT
                                                                                           Pricing markers  ON  Price highlighting on the price scale, for TP, SL, Open lines
                                                                                           Show Line Partial Close  true  Shows Partial Close Lines
                                                                                           Hide Line  true  Hides Layout Lines after opening a position
                                                                                           Hide Position  true  Hides positions if Lines are enabled
                                                                                           Hide Trading levels  true  Hides trading levels if Lines are enabled
                                                                                           Lock TP    Blocks the TP line from movement
                                                                                           Lock SL    Blocks the SL line from movement
                                                                                           Magnet to the price  20  Distance in pixels to the market price at which the open line is magnetized to the price. If 0 then disabled.
                                                                                           Show Line All Chart    Shows the lines TP, SL, Open on all graphs of exactly the symbol from which the marking lines are included.
                                                                                           -VIRTUAL_SLTP-    -VIRTUAL_SLTP-
                                                                                           Activation price    The price at which the virtual SL TP closes.
                                                                                           true - Bid activation
                                                                                           false - Bid / Ask activation based on the type of position as real SL TP.



                                                                                          Note

                                                                                          The functions performed by the Trade Assistant program are executed on your computer; if you disable the program, then the functions will cease to be executed.
                                                                                          The risk and profit calculation functions may not work correctly for various reasons, so it is recommended to check this using the free version.


                                                                                          link

                                                                                          How to buy an application >> https://www.mql5.com/en/articles/498



                                                                                          Файлы:
                                                                                          Black.set 7 kb
                                                                                          White.set 7 kb
                                                                                          Поделитесь с друзьями: