LBS - MetaTrader 5 Expert | Forex Indicator Download - MT4/MT5 Resources - MetaTrader 5 Resources

Idea comes from: screenwriter
Code mq5: Barabashkakon
The EA is suitable for both netting and hedging accounts. It will place a pending order only when a new bar appears.
First, three parameters ( Hour 1 , Hour 2 , and Hour 3 ) are compared to the current hour. If the current time matches one of these parameters, pending orders are allowed to be placed.
Defines the highest and lowest price between bar #0 and bar #1. After that, the value of the iATR indicator is added to the highest price of bar #0. This is how you get the buy stop price. The sell stop price is obtained by subtracting the value of the indicator iATR on bar #0 from the lowest price.

Trading volume can be set in two ways: using a fixed lot size (set money management to constant lot size ) or a risk percentage per trade (set money management to trading risk percentage ).
Once one of the pending orders is activated (defined in OnTradeTransaction: TRADE_TRANSACTION_DEAL_ADD transaction type - "Add transaction to history" detected), all remaining pending orders will be deleted.
Trailing is applied to positions.
Attachment download
📎 lbs.mq5 (54.7 KB)
Source: MQL5 #22884
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •