MetaTrader4
Maximize Your Trading Efficiency with the NNFX Auto Trader for MetaTrader 4
The NNFX Auto Trader is a game-changer for traders looking to CREATE, MANAGE, and EXIT trades using the No Nonsense Forex strategy with remarkable speed. This tool not only refines your risk management but also helps eliminate emotional trading, allowing you to execute trades with just a click. Inputs - X/Y Position: Adjust the position of the trading box on your chart. - Default Risk: This defines the percentage of your account allocated to a single trade (this setting is preserved between sessions). The default value is 2%. - Pip Decimal Shift: Some brokers provide 5 decimal places instead of the standard 4. You can set this parameter to 1 if that’s the case. - Lots Decimals: This indicates the precision of lot sizes. If your broker allows trading with nano lots, set this to 3 decimals. The default is 2. **Extra Account: While this isn’t a parameter, it can easily be changed in the code (line 43: rewrite, save, and compile). This feature accounts for external funds, such as $10,000 in another broker or bank, ensuring that you don’t split your risk. Since this needs to be updated across all 28 pairs each time, it’s quicker to input directly in the code and recompile, which updates all instances while keeping other parameters intact. Controls - RISK INPUT: Quickly change the risk value, but note that this won’t save once you close MT4. - SELL/BUY: Opens two trades, each with half the lot size. Both have a stop loss set at ATR*1.5, but only one has a take profit at ATR. - SL to BREAKEVEN: Adjusts the stop loss of every open trade back to its initial price. - TRAILING STOP: Updates the stop loss but only activates after the price moves more than 2*ATR. - SHOW: Displays the pip value, the current ATR in pips, and the lot sizes that closely match the risk (along with the real cost). - USE ADVANCED: This option allows you to set custom stop losses and take profits. Do be cautious if this window is open, as those values will be applied when opening new trades or adjusting trailing stops. If USE DATE is set to true (the default setting), the system selects the current ATR based on the hours leading up to the daily candle close, and the latest ATR after a new candle is formed. Common Errors and Misuses - Opening trades when the lots that match the risk are 0.01 or 0.00 (using 2 decimals) will result in an invalid lot size. For instance, with 0.01, one trade opens at 0.01 lots, while the other becomes invalid. - Setting breakeven on a losing trade can also trigger an error. - The EA may interfere with other open trades in the same pair since it doesn’t recognize which trades it has opened. - This EA is optimized for D1 charts. If you’re using other timeframes, ensure USE DATE is set to false or that you’re using custom TP-SL settings. - Manual modifications to orders are still possible. - Avoid clicking SELL or BUY multiple times, as this will open two trades each time. - Keep an eye on your margin; the EA doesn’t check it and won’t prevent overexposure to a single currency across multiple trades. - While it's primarily tested with major forex pairs, it might also work with metals, commodities, or stocks, but that’s not guaranteed. Feel free to report any bugs or make code changes as you see fit. If you’re a beginner (like I am), I strongly recommend understanding risk calculations before diving into this EA. Also, conduct a forward test before using it on real accounts (and confirm your broker supports Expert Advisors, as this can impact performance). Edit: Issue with buy orders not scaling out has been resolved.
2020.08.10