381
|
can you please create me an expert advisor that trades gold? it should have tp of 130 and sl of 360ex price is: 2124.57, tp: 2125.87 sl: 2120.97it should be one entry per strategy, once trade is closed, can open a new onealso can you also add a 7-step martingale system?if first trade closes in loss, it will double the lot....and so on, 7 timesfor example, initial lot 0.01 closed in loss, next one is 0.02...then 0.04...till 0.64, no matter the last one is loss or win, the next trades resets to initial step 0.01the strategy consists of "chase trends with precision", it should trigger the signals to place trades based on:Calculate the 200-day Exponential Moving Average (EMA200) as a trend filter.Calculate the MACD indicator, including the MACD line, signal line, and histogram, to determine market trends.Calculate the Average True Range (ATR) and Average Directional Index (ADX) to confirm trend strength.Long entry condition: Close price above EMA200, MACD line above signal line and below 0, ADX greater than or equal to 25.Short entry condition: Close price below EMA200, MACD line below signal line and above 0, ADX greater than or equal to 25.Use ATR to calculate stop loss and take profit distances, with stop loss set at 1% and take profit set at 1.5%.When long conditions are met, enter long positions using stop and limit orders; when short conditions are met, enter short positions using stop and limit orders.Test the strategy across different timeframes, such as 15-minute, 30-minute, 1-hour, etc., to find the optimal trading timeframe.
|
|
26th March 2024
|
382
|
Mql4 breakeven funkcija, kai veikia sell stop ir buy stop orderiai
|
|
25th March 2024
|
383
|
sell signal when double top with close past half way of bar following by inside bar and close below low of prior bar
|
|
25th March 2024
|
384
|
open position with rsi value. rsi period 60; sell when value of overbought 70 is reached; buy when value of oversold 30 is reached.
|
|
25th March 2024
|
385
|
bolinger mql
|
|
25th March 2024
|
386
|
can you convert a pine indicator into a mql4?
|
|
24th March 2024
|
387
|
ciao, ho realizzato un indicatore per mt4. Purtroppo ha degli orrori. In pratica non traccia correttamente la linea orizzontale e non traccia l linee verticali. Riscrivo tutte le caratteristiche e ti allego il codice realizzato, ma con gli errori. L'obiettivo è stampare sul grafico delle linee orizzontali e verticali a partire da una data e ora. le linee creeranno un ciclo diviso in inizio, fine e 3 steps intermedi. Le informazione di input in property are: 1. Serial number; 2. orario di inizio e fine conteggio. ad esempio dalle 8:00 alle 22:00. Quindi se gli orari sono come nell'esempio significa che dopo le 22.00 si ferma il conteggio e riparte alle 8:00 del giorno successivo. 3. colore e spesso linee. 4. descrizione del ciclo; 5. timeframe di conteggio delle candele; 6. data e ora di inizio del conteggio; 7. numero di candele dei diversi steps intermedi. Essi sono B1, AC e B2. B1 e B2 sono linee verticali da tracciare in alto nella pagina, quindi sopra le candele. Esse deve avere il testo B1 e B2 sopra la linea. La linea AC è una linea verticale che dovrà essere stampa nel pagina in basso, quindi sotto le candele. Deve avere il testo AC sotto la linea. La linea B1 verticale va calcolata partendo dalla data e ora di inizio dalla data e ora e aggiungendo il numero di candele inserite in property. Ad esempio se la data di inizio è il 20/03/24 alle 8:00, il time frame di calcolo è candela ad 1 ora e il numero di candele da inizio a B1 è 4, la linea verticale sarà tracciata sopra la candela delle 12:00. La linea Ac sarà tracciata aggiungendo al tempo delle linea b1 (vedi esempio ore 12:00 in numero di candele da b1 a Ac, ad esempio 5 candele. In questo caso la la linea Ac sarà tracciata alle 17:00. quindi la linea b2 sarà calcolata a partire dalla ac.
|
|
24th March 2024
|
388
|
Macd crossover indicator for mt4
|
|
24th March 2024
|
389
|
Macd crossover indicator
|
|
24th March 2024
|
390
|
Objective: Develop an MQL4 script to create a customizable Hull Moving Average (HMA) indicator.Requirements:Input Parameters:Price Input Value: Allow the user to select the price input value for calculation (options: open, close, high, low, Heiken ashi high, Heiken ashi low, Heiken ashi close, Heiken ashi open).HMA Method: Offer options for selecting the method of calculating the moving average (options: Simple Moving Average (SMA), Exponential Moving Average (EMA), Smoothed Moving Average (SMMA), Linear Weighted Moving Average (LWMA)).HMA Period: Allow the user to set the period for the Hull Moving Average.Functionality:Calculate the Hull Moving Average based on the selected parameters.Plot the HMA line on the chart.Allow for customization of line color, thickness, and style.Additional Features (optional, if feasible):Display HMA values in a separate window or as a label on the chart.Allow for alerts based on HMA crossover or other conditions.Considerations:Ensure efficient performance to handle large datasets without causing lag.Implement error handling for invalid inputs or unexpected situations.Optimize the code for readability, efficiency, and maintainability.Deliverables:MQL4 script file (.mq4) containing the code for the customizable Hull Moving Average indicator.Detailed documentation explaining the usage of the script and its input parameters.Example Usage:User selects "close" as the price input value, "EMA" as the method, and sets the period to 20.The script calculates the Hull Moving Average based on these inputs and plots the HMA line on the chart.
|
|
24th March 2024
|
391
|
Create code to write ema in mql5
|
|
23rd March 2024
|
392
|
strategy is based on identifying key support and resistance levels, trendlines, and candlestick patterns to time entries on pullbacks after a breakout. Risk is managed through stop losses and profit targets.1. Identifying Support/Resistance and Trendlines - Use higher timeframe charts (4H, Daily) to identify major support and resistance levels - Plot trendlines on the charts connecting major swing highs and lows - Look for price to respect these levels and trendlines2. Breakouts and Pullbacks - Monitor for price breaking above resistance or below support levels - Wait for a pullback towards the broken level to look for entries - Pullbacks should ideally retrace 30-50% of the prior move3. Entry Signals - Look for candlestick patterns like engulfing bars or pin bars on the pullback - An engulfing bar should engulf the previous bar's range - A pin bar has a long wick and small body near the pullback level4. Stop Loss and Take Profit - Set a stop loss just below/above the pullback level, giving some buffer - Target take profit at the next major support/resistance level - Aim for a risk:reward ratio of at least 1:2 or higher5. Risk Management - Use a fixed risk per trade, risking 1-2% of account balance - Adjust position sizes based on the stop loss distance - Consider adding to winning positions as new signals arise6. Trade Management - Set alerts at key levels to monitor price action - Consider taking partial profits at resistance levels - Be prepared to adjust stop losses or targets as needed7. Timeframes and Pairs - This strategy can be applied across various timeframes and pairs - Major pairs like EUR/USD, GBP/USD tend to be more liquid - Pay attention to economic news and volatility for each pairdrawing on the chart the support, resistance, trend lines, entry price and stop losses and take profit.Add FiltersUse additional filters like volume, momentum indicators (RSI, Stochastics), or
|
|
23rd March 2024
|
393
|
帮我写一个mql5指标,如果MA5金叉MA10,且M10增大,且MACD值增大,则发送买入信号
|
|
23rd March 2024
|
394
|
close all open orders older then 2 bars
|
|
23rd March 2024
|
395
|
open buy: bar close > Bollinger band upperadx >= 20 leve
|
|
23rd March 2024
|
396
|
Create a expert advisor based on moving average crossover of 20 and 50 EMA and also signal from RSI indicator if rsi lower then 20 buy condition and is rsi upper 80 sell condition. Stop loss 50 points and take profit 150 points
|
|
22nd March 2024
|
397
|
Create a expert advisor mql5 based Exponential moving average 8(fast moving average), Simple moving average 20(slow moving average), Volume indicator, and relative strength index (period 11) and MACD(Fast EMA 12, Slow EMA 26, MACD SMA 9)The EA is expected to trade in the direction of the trend using the parameter below.A buy trade is to be executed if all the following criteria are fulfilled The fast moving average is above the slow moving average on M15. The fast moving average is above the slow moving average on M5 . The relative strength index is above 55 on M5 The most recent histogram of the volume is higher than the previous histogram on M5.The price action shows bullish dominance (i.e. Bullish engulfing, hammer, piercing pattern, morning star, three white soldiers, bullish harami, bullish marubozu) on H1.The price is trading above the support level on M5.MACD signal line is above 0.000144 A sell trade is to be executed if all the following criteria are fulfilledThe fast moving average is below the slow moving average on M15.The relative strength index is below 45 on M5.The most recent histogram of the volume is higher than the previous histogram M5.The price action shows bearish dominance (i.e. Bearish engulfing, dark cloud cover, shooting star, evening star, three black crows, bearish harami, bearish marubozu) M5.The price is trading below the resistance level on M5.MACD signal line is below -0.000144 on M5 Risk managementRisk allocation should be in percentage. The trader should be able to define his risk before running the EA. The maximum risk allowed per trade session is 5% and the overall allowed draw down should be 15%.The risk to reward should be 1:2.2Stop loss should be set 40 pipsThere should be 2 take profits to achieve 2.2 risk to rewardTP1 @ 44% TP distance at X 1.3TP2 @ 56% TP distance at X 2.6SL @ 2% of the accountNews trading should be allowed
|
|
22nd March 2024
|
398
|
Create a expert advisor based Exponential moving average 8(fast moving average), Simple moving average 20(slow moving average), Volume indicator, and relative strength index (period 11) and MACD(Fast EMA 12, Slow EMA 26, MACD SMA 9)The EA is expected to trade in the direction of the trend using the parameter below.A buy trade is to be executed if all the following criteria are fulfilled The fast moving average is above the slow moving average on M15. The fast moving average is above the slow moving average on M5 . The relative strength index is above 55 on M5 The most recent histogram of the volume is higher than the previous histogram on M5.The price action shows bullish dominance (i.e. Bullish engulfing, hammer, piercing pattern, morning star, three white soldiers, bullish harami, bullish marubozu) on H1.The price is trading above the support level on M5.MACD signal line is above 0.000144 A sell trade is to be executed if all the following criteria are fulfilledThe fast moving average is below the slow moving average on M15.The relative strength index is below 45 on M5.The most recent histogram of the volume is higher than the previous histogram M5.The price action shows bearish dominance (i.e. Bearish engulfing, dark cloud cover, shooting star, evening star, three black crows, bearish harami, bearish marubozu) M5.The price is trading below the resistance level on M5.MACD signal line is below -0.000144 on M5 Risk managementRisk allocation should be in percentage. The trader should be able to define his risk before running the EA. The maximum risk allowed per trade session is 5% and the overall allowed draw down should be 15%.The risk to reward should be 1:2.2Stop loss should be set 40 pipsThere should be 2 take profits to achieve 2.2 risk to rewardTP1 @ 44% TP distance at X 1.3TP2 @ 56% TP distance at X 2.6SL @ 2% of the accountNews trading should be allowed
|
|
22nd March 2024
|
399
|
adx system with zone recovery algorithm based on 30 pip recovery zone and 60 pip profit target
|
|
22nd March 2024
|
400
|
adx system
|
|
22nd March 2024
|