Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
Like Tree4Likes

All about Script(s) for MT4 and MT5

This is a discussion on All about Script(s) for MT4 and MT5 within the Trading tools forums, part of the Trading Forum category; Convert real tick data in FXT-file strategy tester fxtfilemaker_script_ad When checking the efficiency experts in the strategy tester MetaTrader 4 ...

      
   
  1. #1
    Member Tsar's Avatar
    Join Date
    Mar 2013
    Posts
    99

    All about Script(s) for MT4 and MT5

    Convert real tick data in FXT-file strategy tester


    fxtfilemaker_script_ad

    When checking the efficiency experts in the strategy tester MetaTrader 4 the most scrupulous traders are faced with limited accuracy of the testing process. This is due to the restriction that the detailed history of quotes stored in the terminal as a minute candles. In turn, each minute candle presented only four values ​​(prices of opening, closing, maximum and minimum).

    In many cases, it's enough to play real events, which makes the tester, simulating the behavior of prices within a minute candles. But for those cases when it comes to restoring events during important news announcements, modeling is powerless, and help restore the real event can only detailed tick history.

    The script converts the file format of tick history TKS file FXT, substituting the resulting file to the strategy tester. The program uses a symbol and chart period, to which is attached as a parameter to create the file appropriate symbol and timeframe.

    Date of commencement and completion of the test specified in the first two parameters of the script. The third parameter is used to specify the size of the pre-history (minimum 1, maximum - the entire history available on the chart symbol), paged before testing. The fourth option - spread in points. This value will be used to start the testing process, and not something that is set in the tester.

    When running the strategy tester must select the same symbol and timeframe that was used to run the script, model testing, "Every tick" and a date range that is at least slightly overlaps with the interval dates specified in the script.

    File TKS (data about ticks) must contain a sequential write the following:

    Code:
     struct TickStruct   
    {    
    datetime time; // Date / time of arrival of teak
    double bid; // Bid Price tick    
    double ask; // Ask Price tick 
    };
    Attached Files Attached Files
    Last edited by Tsar; 07-19-2015 at 11:59 AM.
    mecman likes this.

  2. #2
    Member Tsar's Avatar
    Join Date
    Mar 2013
    Posts
    99
    Equivolume and range-bars in the strategy tester


    fxtfilemaker_anydata_script_ad

    The script is an updated version of the script FXTFileMaker (see. Converting real tick data in FXT-file strategy tester , which describes what the image * .tks and how to use it).

    For dramatic innovations include the possibility of creating:

    • any periods of time graphics, multiples of one second, and not just from a set of standard timeframes;
    • ravnovysokih candle charts (range-bars);
    • equivolume charts.

    The minimum period Equivolume schedule is 1 tick that allows you to create even the appearance tick chart visualizer in the strategy tester.

    Attached Files Attached Files
    Last edited by Tsar; 07-19-2015 at 01:15 AM.

  3. #3
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,473
    Blog Entries
    2909
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    Vav_OpenOrder_Manually - script for MetaTrader 4

    Those are 4 scripts for pending orders.
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  4. #4
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,473
    Blog Entries
    2909
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin

    1 Click To Close All Open Positions - expert for MetaTrader 4

    1 Click To Close All Open Positions - expert for MetaTrader 4

    This is not a script (this is an EA) but it may be usefull when we want to close all open trades in one click. So, basicly - this is just a button to click:

    All about Script(s) for MT4 and MT5-eurusd-h1-alpari-limited-2.png


    All about Script(s) for MT4 and MT5-eurusd-h1-alpari-limited.png
    Attached Files Attached Files
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  5. #5
    Member
    Join Date
    Jun 2015
    Posts
    71
    Hi,

    Is there a script that can open a template of the H4 and M15 charts at the same time?

    Regards

  6. #6
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,473
    Blog Entries
    2909
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    Quote Originally Posted by Eris View Post
    Hi,

    Is there a script that can open a template of the H4 and M15 charts at the same time?

    Regards
    I found 3 scripts:

    Open chart - script for MetaTrader 4
    With 3 settable parameters (currency pair, timeframe, and template) opens a new chart on your screen at the initalization period of the script.
    ----------------

    Quickly Open Charts with Different Timeframes - script for MetaTrader 4
    Easy script to help analyze specified symbol, it opens 8 new charts with different periods (M1, M5, M15, M30, H1, H4, Daily, Weekly) and applies a specified template "np" to the chart (to use create and save template np).
    ----------------

    Apply Template - script for MetaTrader 5
    This very simple script to apply same template to all charts opened at the moment.
    ----------------
    mecman likes this.
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  7. #7
    Member
    Join Date
    Jun 2015
    Posts
    71
    Thank you

  8. #8
    member mql5's Avatar
    Join Date
    May 2013
    Posts
    2,317
    Blog Entries
    1634
    Interesting scripts were found (for MT5):

    ----------------

    Pending orders UP - script for MetaTrader 5

    All about Script(s) for MT4 and MT5-eurusd-h1-metaquotes-software-corp.png


    The "Pending orders UP" script sets a grid of orders above the current price.
    Input Parameters
    • Gap for pending orders UP from the current price (in pips) - the distance from the current price to place the first pending order.
    • Step between orders UP (in pips) - distance between pending orders.
    • Type of pending orders UP - the type of the pending order (can be either Buy Stop or Sell Limit).
    • UP quantity - the number of orders to be placed.
    • Lots - the volume of each order.
    • Stop Loss (in pips) - Stop Loss value.
    • Take Profit (in pips) - Take Profit value.
    ----------------

    Pending orders DOWN - script for MetaTrader 5

    All about Script(s) for MT4 and MT5-usdchf-h1-metaquotes-software-corp.png


    The "Pending orders DOWN" script sets a grid of orders below the current price.
    Input Parameters
    • Gap for pending orders DOWN from the current price (in pips) - the distance from the current price to place the first pending order.
    • Step between orders DOWN (in pips) - distance between pending orders.
    • Type of pending orders DOWN - the type of the pending order (can be either Buy Limit or Sell Stop).
    • DOWN quantity - the number of orders to be placed.
    • Lots - the volume of each order.
    • Stop Loss (in pips) - Stop Loss value.
    • Take Profit (in pips) - Take Profit value.
    Last edited by mql5; 12-04-2017 at 10:13 AM.
    mecman likes this.
    Metatrader 5 / Metatrader 4 for MQL5 / MQL4 articles preview preview
    Trading blogs || My blog

  9. #9
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,473
    Blog Entries
    2909
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    Multiple OP script
    - Multiple OP script is on this post. This script opens the given number(jumlah_OP) of buy or sell orders simultaneously.

    All about Script(s) for MT4 and MT5-miltipleop_1.png
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  10. #10
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,473
    Blog Entries
    2909
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    fon - script for MetaTrader 4

    All about Script(s) for MT4 and MT5-gbpusdh1fon.png


    The script sets the background graphics.

    The script sets the background graphics.
    Description of settings:

    • size_X - the size of the image along the x axis
    • size_Y - the size of the image along the y axis
    • images - the path to the image and the name of the image, by default the image should be in the folder: terminal - ... MQL4 - Images
    The script works in MT5 as well if compiled in MetaEditor to get ex5 file.
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

Page 1 of 2 1 2 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •