Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

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

author EAcpu | 4 reads | 0 comments |

LBS - expert for MetaTrader 5

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.

LBS - expert for MetaTrader 5

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

Verification code Refresh