I’ll begin by explaining the enter parameters and show how they work:
Whenever you add the EA on the chart for the primary time, it downloads the newshistory.bin file. This file should comprise greater than 100 000 information occasions. if it hundreds much less occasions simply take away the EA and add it once more. verify within the consultants take to see if the file has been create and has sufficient variety of trades. If the EA says switching to fallback technique it means the file doesn’t have sufficient occasions so delete the EA and reload. you solely want to do that as soon as for you to have the ability to backtest previous occasions in technique tester.
I’ll begin by explaining the enter parameters and show how they work:
- Use Fallback Technique (Not information associated) MUST BE FALSE!
This have to be turned off. The rationale why this parameter is there may be just for verification functions and as a fallback technique in technique tester if there isn’t any newshistory.bin file detected or created. This technique is supposed to commerce on the MQL5 Tester Surroundings the place the NewsHistory.bin file is just not out there. Simply flip this to false at all times. - Buying and selling Entry Mode
There are two buying and selling modes: Brutal and Regular.
Regular buying and selling mode – On this mode, the EA will open 1 commerce with the given lot dimension. Which means in case you are opening purchase cease and promote cease orders pre-news and setting is on regular, it can open 1 cease order for purchase and one cease order for promote.
Brutal buying and selling mode – On this mode, the EA will open a number of trades or mixed lot dimension primarily based in your out there fairness. This enables the EA to put trades and leverage on the expansion of your account in addition to reduce the variety of trades primarily based on the dimensions of your account. - Unit Commerce Lot Measurement
That is the lot dimension used to open trades or calculate the lot dimension to be opened if in brutal mode. Let’s take for instance lot dimension is 0.1. - How trades are opened when in Brutal Mode:
- Place Issue ($ per Unit Commerce Measurement)
This worth is used to divide the Fairness, and the consequence would be the variety of trades that needs to be opened. For instance, in case your Fairness is $1000 and you set the Place Issue ($ per Unit Commerce Measurement) to 100, then the EA will open 10 trades. If the bot trades and makes a revenue of $500, then your fairness goes to $1500. The subsequent time the bot trades, it can open 15 trades leveraging your revenue to open extra trades. - Place Batch Mode (Open 1 commerce with mixed lot or cut up the positions)
You may choose right here Break up or Mixed. When Break up is chosen then the EA will open within the instance above 10 (0.1) tons particular person trades or 15 (0.1) tons particular person trades. However whether it is set to mixed, then it can mix the lot sizes (0.1 x 10) and can open only one commerce of 1 lot dimension. Within the instance of 15 trades, it can open 1.5 tons. - Max Num of Break up Positions
That is to restrict the variety of cut up positions, for instance, in case your fairness grows to $5000 and your place issue is at 100 then the EA is meant to open 50 trades. However for those who restrict this to twenty then in case your fairness means that you can commerce 50 positions, it can solely open a max of 20 trades. - Max Mixed Lot Measurement
Right here restrict the lot dimension that may be opened when the mode is mixed tons. Within the above instance if we restrict the max lot to 2.0, whereas the steadiness is $5000 then the EA was speculated to open rather a lot dimension of 5.0 however due to the restrict then it can open a most of two.0 tons to forestall from buying and selling over any lot dimension that you simply suppose is simply too dangerous.
- Place Issue ($ per Unit Commerce Measurement)
- Information Filtering Settings
- Information Influence
Select between Excessive Influence and Medium Influence or each. - Filter by Nation
This setting when set to true will guarantee that it filters the Information Occasions in response to the chosen nation. For instance, if you wish to commerce the US CPI, there are CPI information for different nations so it’s essential to specify that it’s US CPI you wish to commerce. - Chosen Nation
That is the chosen nation to commerce information from. It will work when filter by nation is true. - Filter by Information Title
It will filter the information you’re buying and selling to this information Title solely whether it is false then it can commerce all Excessive or Medium or Each information as you set above restrict to a selected information if you wish to commerce one information sort right here.
- Information Influence
- Information Buying and selling Methods
Pre-Information Cease Orders: Right here cease orders are opened to the purchase facet and the promote facet. Cease Distance Factors – That is the gap to set cease orders earlier than information. Entry Window Earlier than Occasion (Seconds) – These are the seconds earlier than the information occasion you need the pending orders to be opened. Cease Orders Expiry (Minutes) – Delete all pending order if unactivated after these variety of minutes. Shut All Pending Orders if First triggered reaches TP – If orders are activated as an illustration purchase and so they attain take revenue shut all promote pending orders at TP. - Submit Information Mode Inputs
Right here orders are positioned solely in a single route after the EA has learn the result of the information occasion. Path if Final result Better Than Anticipated – Set whether or not it can purchase/promote if the result is larger than anticipated. Path if Final result Decrease Than Anticipated – Set whether or not it can purchase/promote if the result is decrease than anticipated. Min Thresholds are the values to verify if the higher or decrease has moved however at the least this worth to contemplate buying and selling. For instance, if set to five then information is larger with 2 then the EA will not commerce. - Cease Loss and TP
Set cease loss and TP in factors. - Break Even Settings
You may flip it to true or false. Break even set off is the variety of factors the trades should go in revenue earlier than placing break even. Shift Break Even From Entry By These Factors – Ideally break even is meant to be placing SL to entry. This worth is the variety of factors in revenue you wish to set break even in order to cowl make a little bit cash if Break even is hit that make zero or loss as a result of unfold. This could cowl your fee as properly. - Trailing Cease Loss Settings
Flip it on or off. Trailing Cease Loss Factors – These are the factors to maintain between value and cease loss and path value. - Image Mapping
Right here it’s essential to guarantee that symbols match your dealer symbols for instance if NASDAQ is USTEC in your terminal put USTEC on Nasdaq IF YOUR SYMBOLS HAVE AN EXTENSION LIKE GBPUSD.m then change the symbols to match your dealer.
Please notice the EA won’t commerce for instance USD associated information on an emblem that isn’t listed on the lists of USD associated be certain the image is appropriately entered.
To commerce a number of occasions for instance if you wish to commerce GBPUSD for the occasions US CPI launch and Nonfarm Payrolls launch then open two chart of GBPUSD on one chat set the occasion to CPI and on the opposite set it to Nonfarm payrolls. Repeat for different occasions you might wish to commerce and put parameters for every. As soon as all is ready you should not have to do something. At any time when the occasion comes, it can commerce routinely.
This documentation will evolve primarily based in your questions so please do remark.