NTK 07 - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources
The author of the idea : Nikolai , the author of the mq5 code : Balabashka Kon .
The Expert Advisor manages buy and sell positions (applying trailing stops) and sets pending buy stop and sell stop orders.
Fixed lot size - pending orders are not calculated, but manually specified values are used ( money management parameters should be set to fixed lot size ).
Maximum total lot size - the total volume of open positions and pending orders (assuming we have BUY 0.03, BUY 0.04, SELL 0.09 and BUY STOP 0.05, then the total trading volume is 0.21);
Maximum total positions - the maximum number of open positions and pending orders (assuming we have BUY 0.03, BUY 0.04, SELL 0.09 and BUY STOP 0.05, then the total is 4).
Net Step - A pending order is placed at a distance from the current price. Net step cannot be equal to "0".
Take Profit - If Take Profit is set to "0", this parameter will be completely disabled, that is, after triggering a pending order, the Take Profit of the resulting position will always be equal to "0".
Stop Loss - If Stop Loss is set to "0", the Stop Loss of the resulting position can be modified using one of the available Trailing Stop methods.
If Stop Loss is set to zero ( money management must always be equal to a fixed lot size ) and only one Trailing Stop method is enabled, Trailing will act as a breakeven function: the first Stop Loss of the position will be set in the profit zone.
Lot increase rate - lot multiplier for the next position. The volume of each subsequent position is calculated as Batch Increase Rate * Previous Position Volume.
Position tracking
Various methods of modifying stop loss are implemented in Expert Advisor trading (multiple trailing stop loss types). The trailing stop can be a standalone trailing type ( trailing stop not equal to zero, trailing highs and lows set to false and trailing the moving average set to false) or used (as a parameter) in one of the trailing methods ( trailing highs and lows or trailing the moving average ). Therefore, the trailing stop cannot be set to zero.
Follow high and low prices
Behind the moving average
Trailing Stop – The classic trailing stop.
Money Management - The volume of a position (or pending order) can be calculated in one of three ways:
Risk % of the trade - Risk % of each trade (only available for "Fixed Margin" and "Fixed Risk")
Minimum Available Margin - The minimum available margin amount. If the available margin is less than the minimum available margin , the EA will not place new pending orders and stop managing positions.
Moving Average - Parameters of the Moving Average indicator, used to lag behind the moving average .
Start of hour , end of hour - working time settings (EA will start from hour until end of hour ), only applicable when there are no positions and pending orders.
Bar Period - calculates the number of bars in which the initial pending order range is placed (when there are no open positions), the range between the highest and lowest price exceeds the number of bars set for the bar period . There are two transaction types ( trade types ) that can be selected for the scope. "1" and "2" are two identical values.
Trade Type - The type of trade. This parameter is only applicable when there are no open positions or pending orders. There are two types to choose from:
Attachment download
📎ntk_07.mq5 (83.5 KB)
Source: MQL5 #19914
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •