• Information
5+ years
experience
3
products
21
demo versions
0
jobs
0
signals
0
subscribers
My personal website has various trading products—most are free.
https://www.garot.com/trading/

I've started an MQL5 tutorial to build a working strategy using MT5 from scratch.
https://www.garot.com/trading/videos.php

MQL5 only—I do not use MQL4.

I prefer Geany to MetaEditor.

I don't accept friend requests unless I recognize you as being a contributor in the forum. :-|
Anthony Garot
Added topic MQL5: CopyHigh() gives strange results in Tester
Below is a simple test script. It uses CopyHigh() to grab the high of the week so that I can create an envelope around the daily highs. Thus, it runs on PERIOD_D1 chart and pulls PERIOD_W1 values. It works as I would expect on the chart (picture 1)
Anthony Garot
Added topic Does Bars() actually pull data for higher TF?
I have an indicator that runs on D1 and pulls a values from W1 using iBarShift(). When the data isn't there, it isn't there, so I need to pull it. The first script example of https://www.mql5.com/en/docs/series/bars has a synchronization technique
Anthony Garot Published product
Reviews: 2
FREE

Introduction MT5 ships with the Envelopes indicator. This indicator allows you to create equidistant bands from a moving average by specifying a “deviation.” Unfortunately, the deviation is an arbitrary number. You might determine that 0.220 works well to contain 95% of close prices for USDCHF,H1, but when you change the period to H4, most of the bars are now outside the bands. So, I created this self-tuning indicator. Instead of specifying a percent “deviation,” you specify the percent of bars

Anthony Garot Published product

30.00 USD

This indicator shows the narrowest bar within the past seven bars, which is known as NR7 in the literature. It will also show the NR4 bar. The range is variable; thus, you can show any two ranges, e.g. NR7/NR4, NR11/NR6, etc. For the description of this indicator, I will continue to use the default of seven (7) and four (4). If an NR7 bar also happens to be an Inside Bar, it gives a stronger signal. Thus NR7IB are denoted in another color. Sometimes this is known as NR7ID (for Inside Day). I

Anthony Garot
Added topic Fix for unsaved option
This is more of a public service announcement than a request for comments. I ran into an issue where the "Volume" option under the [Trade] tab didn't save. The Service Desk has me reinstall MT5, which fixed the issue. - - - - - - 1. Terminal version
Anthony Garot
Added topic MT5 - Is there a way to find the number of sub_windows on a chart?
I want to close all sub_windows on a chart. Thus, I want to know the count of the number of sub_windows. I found a work-around that works. I can loop from 10 (arbitrary number) to 1, then see if there are any indicators in these sub_windows. (see
Anthony Garot
Added topic Build 1860 takes twice as long to compile
Has anyone else noticed this? I'm curious as to why the doubling of the compilation time. Test: Uses the exact same code. Times are in milliseconds. Tried through Metaeditor and command line. Build 1860: 16340,16504,16350 Build 1816: 8519,8443,8539
Anthony Garot
Added topic MT5 one-click-btn through code
MT5 templates have the following settings: one_click=0 one_click_btn=1 With the settings of 0 and 1 as I have above, it will show the buttons of the Trade Panel , but with the panel hidden. Programmatically, I can do one_click as: ChartSetInteger
Anthony Garot
Added topic MQL5 - Indicator - Hide indicator name and current buffer values
Is there a way to programmatically hide the indicator name and current buffer values of an indicator? Some sort of ChartSetInteger() or IndicatorSetInteger() value? I'm not even sure what this line is called. (See attached image). This information
Anthony Garot
Added topic MQL5 Indicator - Sizing indicator sub-window
I am building an indicator that I want to be full-screen. The underlying price-bars do not matter because this is multi-currency. I am able to size the window dynamically using the following code, and it works, but it feels "ugly" to me. int OnInit
Anthony Garot
Added topic Way to turn off DLL import during optimization w/ remote agents
It turns out that optimization using remote farm network agents blocks when a DLL is available in the code. The exact message is (are): And this makes sense to me. I fully understand why Metatrades would do this. So my fix, for when I use remote
Anthony Garot
Added topic MT5 - Terminal.exe exit code for automation
Question: Does terminal.exe return an exit code other than 0? Description: I'm using python to automate optimizations. An optimization will fail, for example, when none of the parameters are selected for optimization. The journal gives this message
Anthony Garot
Added topic MQL5 - History cache
In the back tester, I switched from H4 to D1, and the EA died. So, I dug into the problem. It turns out that I have an iMA I use for determining trend with a period of 320. Granted that 320 hours is very different from 320 days, and I would likely
Anthony Garot
Added topic MT5 - Tester - Is there a way to append optimization results generated through command line?
I'm running the tester from the command line using: terminal64.exe /config:tester.ini This all works well and good. When optimizing, it creates a single .xml spreadsheet of results. What I would like is to have the results of multiple runs go into
Anthony Garot
Added topic Your favorite tools outside MetaTrader
Not too long ago there was a forum thread on editors outside MetaEditor. There are quite a variety of editors being used to code MQL. And I know that some people use software external to their EA's for pulling data from external websites (for
Anthony Garot
Added topic Sporadic glitch in Tester for Build 1730
AccountInfoDouble( ACCOUNT_EQUITY ) returns 0.0. This occurs maybe 50% of the time. The rest of the time it returns 10000, which is the value I set in the tester. The same EA functions as I would expect on build 1643. That is, I cannot get
Anthony Garot
Added topic Programmatically access Strategy Tester Launch Settings?
About 60% down on this page describes the [tester] parameters that one would put into a configuration file to run a strategy test from the command line. https://www.metatrader5.com/en/terminal/help/start_advanced/start As examples: Model — tick
Anthony Garot
Added topic MT5 back tester -- how to capture final trade when "position closed due end of test"
When backtesting, I often have an ongoing trade when the tester ends. It shows up with the message "end of test." So far so good. I want to capture that last profit/loss and swap so that I can calculate certain statistical values accurately. In the
Anthony Garot
Registered at MQL5.community
12