İş Gereklilikleri
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.
Yanıtlandı
1
Derecelendirme
Projeler
64
22%
Arabuluculuk
10
0%
/
60%
Süresi dolmuş
18
28%
Serbest
2
Derecelendirme
Projeler
1
100%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
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
Total lots traded
31+ USD
I want to make a robot can count total lots traded from history tab and print on chart. ex: when i choose history tab "today", ea will print on chart " Total lot traded: 5 lots", when I change to "week", ea auto-update print on chart: "Total lot traded: 12 lots"
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
I have an indicator with two lines | want an EA the buy when the fast line crosses the slow line from below one important thing> the slow line must at least a specific distance below the last cross through the fast line from above take profit is between 1 or 3 times more than stoploss the stop loss is the last low the sell order is the opposite for buy Thanks
An expert advisor based on indicators
30 - 200 USD
**Project Title:** Development of a Complex High-Performance EA for Step Index **Project Overview:** I need an advanced Expert Advisor (EA) for trading the Step Index on MetaTrader 5. The EA should use multiple indicators and advanced risk management techniques to enhance profitability and manage risks effectively. **Trading Strategy Details:** Indicators: - 50-period EMA - 200-period EMA - RSI with 14 periods - MACD
NEED IT WITHIN ONE HOUR Adding a counter for open trades. When closed counter gets to 0 and starts runs till the input again. Also a option to just let it run once a day or for the whole day non stops My past developer wasn't able to get the close function end of the day working. The function works as follow: MONDAY TUESDAY etc.... TRUE OR FALSE When trades have been opened on MONDAY TRUE it lets them run on TUESDAY
Request for Ready-Made Trading Strategy for AUXUSD
30 - 100 USD
Hi, I am looking to purchase a pre-built trading strategy specifically tailored for trading AUXUSD. Before committing to the purchase, I require the following detailed information: 1. **Type of Trading**: - Clearly define the trading style this strategy is designed for (e.g., scalping, swing trading, day trading, position trading, etc.). - Provide an explanation of why this trading style is suitable for AUXUSD
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
200 pip EA
100 - 200 USD
I require an EA that can deliver on a consistent basis 200 pips per month. The EA must do this with the money management setting where 1 pip = 1 USD
Proje bilgisi
Bütçe
30+ USD
Müşteri
Verilmiş siparişler1
Arabuluculuk sayısı0