Re-entry buy with LWMA 5 and 10 Low

Specifiche

Description of the ScriptThis script is designed for MetaTrader 4 (MT4) to execute a Buy order based on a re-entry strategy using the BBMA (Bollinger Bands Moving Average) approach. The main timeframe used is H1 (1-hour), and the script employs the Classic Bullish Engulfing pattern as a validation criterion before placing a Buy order.Key Components of the Script:Input Parameters:Lots: Defines the lot size for the trade (default is 0.1).LWMA5_Period: The period for the 5-period Linear Weighted Moving Average (LWMA) applied to the Low price on the H1 timeframe.LWMA10_Period: The period for the 10-period Linear Weighted Moving Average (LWMA) applied to the Low price on the H1 timeframe.EMA_Period: The period for the 50-period Exponential Moving Average (EMA) applied to the Close price on the H1 timeframe.Global Variables:lwma5Value: Stores the calculated value of the 5-period LWMA on the H1 timeframe.lwma10Value: Stores the calculated value of the 10-period LWMA on the H1 timeframe.emaValue: Stores the calculated value of the 50-period EMA on the H1 timeframe.Initialization and Deinitialization:The OnInit() and OnDeinit() functions are placeholders for initialization and cleanup code when the script is loaded or unloaded.OnTick Function:This is the main function that is executed every time a new tick (price change) is received.Inside OnTick():LWMA and EMA Calculation:The script calculates the 5-period LWMA (lwma5Value) and 10-period LWMA (lwma10Value) on the Low price of the H1 timeframe.It also calculates the 50-period EMA (emaValue) on the Close price of the H1 timeframe.Re-entry Signal Validation on H1:The script checks if the previous candle's Close price was below the 5-period LWMA and the current candle's Close price is above both the 5-period and 10-period LWMAs, as well as above the 50-period EMA.Check for Existing Orders:Before placing a new Buy order, the script checks if there is already an open Buy order to avoid multiple entries.Validation on M15 Timeframe:The script validates the conditions on the M15 (15-minute) timeframe:Classic Bullish Engulfing Pattern:The previous candle must be bearish (Close < Open).The current candle must be bullish (Close > Open), with its body "engulfing" the previous bearish candle's body (current Open < previous Close and current Close > previous Open).High Breakout Confirmation:Additionally, the current candle's Close price must break above the High of the previous candle.Stop Loss and Take Profit Calculation:Stop Loss: Calculated as the lowest Low between the current and previous candles on the M15 timeframe, with a small buffer of 5 points.Take Profit: Set at a 1:1 ratio with the Stop Loss distance.Order Execution:If all conditions are met, a Buy order is placed with the calculated Stop Loss and Take Profit.IsOrderOpen Function:This helper function checks if there is already an open Buy order for the current symbol to prevent multiple entries.Error Description Function:Provides descriptions for potential errors that may occur during order placement, improving debugging and error handling.Summary:The script executes a Buy order based on a re-entry strategy, validated by the Classic Bullish Engulfing pattern on the M15 timeframe and confirmed by the LWMA and EMA indicators on the H1 timeframe. The script includes safety checks to prevent multiple entries, and it calculates appropriate Stop Loss and Take Profit levels based on recent price action.

Con risposta

1
Sviluppatore 1
Valutazioni
(35)
Progetti
64
22%
Arbitraggio
10
0% / 60%
In ritardo
18
28%
Gratuito
2
Sviluppatore 2
Valutazioni
(1)
Progetti
1
100%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
The money maker 30+ USD
I want a robot that will make me a billion dollars in 4 months and make me rich. I want it to help me indicate the down and up trends and help me get better in trading
Trendline expert 40 - 200 USD
My project is to put my strategy on the VCrush indicator. I already have the indicator, I just need to add the entry methods, take and stop rules. There are 5 lines in total, when these lines are aligned, the robot makes the entry. Below are two images of what the buy and sell entries would look like with the lines aligned
I need an expert to help me with adding more features to my existing mt4 EA I think the addition I want added to this EA is fairly simple--but I don't really understand how programming works, Contact me for a long term work, This is not the only project, I will explain the features in the inbox, Let me know if you can do it
EA Robot 30 - 500 USD
I Shawn Mametsa wants to creat a robot that will help a lot of people to make money through trading and become successful through trading I want to help those who want to trade but don’t know how to analyse the market
1> EMA 12 crossing up EMA 24 buys lots (once per bar close) and when EMA 12 crossing down EMA 24 close the trade (as per bar close) and same time open a new sell trade (vice versa). 2> EMA 12 crossing down EMA 24 buys lots (once per bar close) and when EMA 12 crossing up EMA 24 close the trade (once per bar close) and same time open a new buy trade (vice versa). 3> Both EMA input can be change (ex. 12, 24, 50
Fx Kidds 80 - 120 USD
Can l have a EA that can run 24/5 on gold and GBPUSD and stocks. Trilling stop loss. No expireing date. Must make 5% minimum in returns. It can take losses but it must not blow the account minimum deposit must be 35usd
Hello All , Please Create API Bridge MT4 To Web Terminal on Priority basis. MT4 EA to below platform all details shared. https://trade.ivt-markets.com/trade/placeorder.php?type=market&amp ;bs=buy&lot=0.1&sl=111&target=222222&symbol=X:BTCUSD&token=XXXXXXXXXX&clicked=yes 1. MT4 To Web Terminal Api Needed
required a bot based on ict ,smc technique order blocks fvg liqidity voids liquidity sweep break of structure eqal low and equal high momentup setup trend recogonsation kkldnvksldnvksdnvlkdsnvlkdsnvlksndlkvnsdklvnlskdvnlksdnvsdvmsldkmv lksdnvlksnl knsdkl nsdlkv sdlkv mslkn vlskdm lksm ,v njdfnv lkjdfnvlkmfsn lfn kdfm vfmmvlkmvlksdmv
Develop a robot for Mac M3 chip which can: 1) Auto copy - take and close trades 2) Minise risk 3) Scale profits 4) Ideally be able to trade in multiple markets or whichever market can bring plenty of trading opportunities. 5) Can be used on mobile (iPhone) and Mac. You can implement it on MT4 or MT5 - whichever will integrate with the robot better. You can use any programming language so long as it serves the
I am looking for an experienced MQL5 programmer to create a custom Expert Advisor (EA) or utility that connects my MT5 signal provider to Telegram. The primary objective is to forward signals from the MT5 platform to a designated Telegram channel. Requirements: The EA or utility should automatically send signals from MT5 to the Telegram channel/group. Support for customization, such as filtering signals based on

Informazioni sul progetto

Budget
30+ USD

Cliente

Ordini effettuati1
Numero di arbitraggi0