MT4 Trades History indiors
Page 1 of 733 123 LastLast
Results 1 to 10 of 323

Thread: MT4 Trades History indiors

  1. #1
    1. Trades History

    This indior only takes the trades exhibited in MT4's Terminal and plots them onto the chart:

    Entry = white line
    SL = red line (when the SL was trailed, the line represents the price the SL was in, once the trade was shut)
    TP = green line
    Trade depart = diagonal green line in case a profitable commerce; diagonal red line if loss. Shows the candle and price of the entry and exit.

    Set ShowOrderTypes into
    C to exhibit closed orders only,
    order to exhibit open orders only,
    OC to show both open and closed orders,
    OCP to display open, closed and pending orders,
    etc..

    In case you don't need some of EntrySettings, ExitProfitSettings, ExitLossSettings, SLSettings, TPSettings traces to be plotted, set them into blank/empty. The 3 required entries are Color, Width, Style, separated by commas.

    In case you don't need an item (Price, Pips, Amount, Percent( etc) to be displayed, set its Format parameter into (uppercase) B
    More information on the structure masks here.

    EquityCalcBasis affects the Percent Yield and Risk, Which Might be calculated as a % of current Balance, Equity or Free Margin.

    To display the P/L text, then you have to press F8 and then assess MT4's 'Display object descriptions' ON (see screenshot below). The P/L text only shows in a aid 'bubble' as you move the mouse cursor within the object (line).

    For obvious reasons, only trades matching the current chart's pair will be plotted. Just click to a different pair, and the trades for that pair will automatically be plotted.

    [NOTE: if you would rather, you may attempt pips4life's Order History indior here.]


    2. Trades History from CSV

    This indior does precisely the same, except that it reads the trade data from a CSV file, whose name you specify, instead of the Terminal, and plots them onto the chart.

    When (for instance) you've got another trader's DetailedStatement.html file, it is possible to load it into Excel, and save it as a CSV file from the .../MQL4/Files folder. The indior will plot the trades all in that document on the chart.

    FieldDelimiter is the separator character between the field from the CSV file.

    DateTimeFormat is the format of any date/time areas in the document, so that the indior can translate the text into a MT4 date/time.

    FieldXlateTable is the order in which the fields appear in the CSV row/line:
    0 = order amount
    1 = order receptive time
    2 = order form
    3 = order dimension (number of lots)
    4 = order emblem ID
    5 = order receptive price
    6 = SL
    7 = TP
    8 = order close time
    9 = order close price
    10 = commission
    11 = switch
    12 = profit/loss
    13 = remark
    14 = magical amount
    20 = ignore the field

    For instance: 20,0,1,2, .... Means ignore the very first field in the line, the next field is your order amount, the next field is the open time, the fourth field is the order form, etc


    Installation

    1. Download the attached files into the .../MQL4/Indiors folder.
    NOTE: All these indiors were written using MetaEditor/compiler build 509. You need to do so first, if you want the MQ4 supply to compile/run without mistakes. Otherwise, download the EX4 files.

    2. Load MT4's Navigator, right click and then choose 'Refresh'. Or simply restart MT4.


    Terms and Conditions

    #61623; All code is provided FREE of charge. It may NOT be sold or distributed commercially.

    #61623; Software is offered on an 'as is' basis. I am not supplying a programming or troubleshooting service; source code has been posted if you would like to alter it yourself (but see the note in red typeface above).

    #61623; there's not any guarantee that the program is appropriate for purpose, or without any errors. Download and use the indior(s) in your own risk; I accept no liability for any personal injury or financial losses.
    https://www.forexsoutheast.asia/atta...1686493708.ex4
    https://www.forexsoutheast.asia/atta...5362182374.ex4
    https://www.forexsoutheast.asia/atta...1516888429.mq4
    https://www.forexsoutheast.asia/atta...9969358005.mq4

  2. #2
    Quote Originally Posted by ;
    quote Publish .mq4 Document(s). Use only .ex4 file(s). file file file
    @ - do you understand that pepperstone are utilizing Trades History as part of their new Smart Tools offering?

    https://pepperstone.com/en/trading-platforms/indiors

  3. #3
    Hi .

    I understand you said you are no more modding this code. But I'm gonna place this observation out there anyway.

    It's a good indic, but I can not get the visualization configurations to function e.g. I can not restrict the indior to just display the transaction lines from the timeframes I want. However much I modify the setting to just show the traces in just the H4, H1 and M15, the traces still show from the other time-frames.

    Just sayin'.


    Is this by design?

  4. #4
    Quote Originally Posted by ;
    I can not get the visualization settings to operate
    What visualization settings are you referring to?

    [EDIT] I've added Visibility settings to indys, and attached new variants to post #1.
    Have also posted .mq4 source so that everyone can make their own modifiions now.

  5. #5
    Quote Originally Posted by ;
    quote What visualization configurations are you speaking to? [EDIT] I have added Visibility configurations to both indys, and connected new versions to post # 11. Have posted .mq4 source so that everyone can create their own alterations now.
    Good things, mate!

    Cheers!

  6. #6
    These indiors are now capable of displaying Closed, Open and/or Pending orders. Type any combo of C, P or O (upper or lowercase) to the ShowOrderTypes parameter.

    Popup help bubble for the entry point on TradesHistory indy now displays ([order form],[magic#],[first 10 characters of Trade Comment])
    making it much easier to differentiate orders which were set by different EAs or systems.

    Popup help bubble for the SL, TP and exit lines continues to show that the P/L as all of pips, $, ?irness and R:R
    Specify B, E or F (upper or lowercase) for EquityCalcBasis to have the percentequity exhibited as a percent of Balance, Equity or Free Margin.
    What is particularly cool is that you may check 'Show Object Descriptions' ON (press F8), then watch the P/L (as pips/$/%equity/R:R) of individual open orders change because price moves up/down.

    Download newest versions from post #1.

  7. #7
    Hello ! Thank you for the latest iterations!

    I've a slight petition:
    that I see the SLLine and TPLine width and design preferences also control the closing closed order (plotted) lines together with the flat entry/close lines.

    For future versions, do you add separate style settings for your final plotted lines?

    By way of example I modded your most recent code connected for my personal usage, adding 2 additional settings (TradeLineWidth and TradeLineStyle) and replacing them accordingly (towards the close of the code).

    Only a suggestion!

    And thanks again for the great work!
    https://www.forexsoutheast.asia/atta...1314008140.mq4

  8. #8
    Quote Originally Posted by ;
    I have a slight petition: I see the SLLine and TPLine width and design preferences also control the closing closed order (plotted) lines together with the flat entry/close lines. For future versions, can you add separate style settings for the last plotted lines?
    Done.

    Format for the configurations parameters is [color token],[width],[design] i.e. three objects separated using commas.

    Upgraded indiors in article #1.

  9. #9
    Thanks heaps! Lovin' the new format very much!

  10. #10
    Hi Hanover master indi writer

    Do you understand (you probably do) of an idi that reveals P/L for all pairs exchanged over a given time? I have had a look but can't find it.

    So for example it is on a single chart and I set it for say now and it looks like this

    GBPUSB 12.5pips
    EURUSD -5.2 pips
    USDJPY 1.1pips
    etc?

    Many thanks in advance

    gaz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.