1 Attachment(s)
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
};
3 Attachment(s)
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:
Attachment 19444
Attachment 19445
Close Positions Current Symbol
Close Positions Current Symbol - script for MetaTrader 5
Quote:
This script closes all positions by the symbol on the chart of which it was thrown. The script copies the Magic number at the position to be closed, while the script does not have its Magic number.
For example, the symbol 'USDJPY' has several positions open:
- position # 1 was opened manually and therefore its Magic is '0'
- position # 2 was opened by advisers and its Magic is equal to '300'
We drop the script onto the 'USDJPY' chart - it means the script will try to close all positions by the 'USDJPY' symbol. In this case, before closing position # 1, he will set himself a Magic number '0', and before closing position # 2 he will set '300'.
Price Action Toolkit Development (Part 18): Introducing Quarters Theory (III) — Quarters Board
Quote:
In our introduction to Quarters Theory, we began with the
Quarters Drawer script, which is its first component. This script automates drawing quarter levels on a chart and features Boolean toggles to control the visibility of each level.
more...