An Expert Advisor based on Price Action Needed

指定

write me an MQL code that will work on mt4 and mt5 and follow these specific instructions...

 

This code is for forex trading EA and will work in any time frame, using the candle sticks formed on that time frame to make its trading decisions. it should work with all forex pairs, indices and commodities. The instructions are as follows:

 

Entry Condition: when there are two or more consecutive bearish close (price opens higher and closes lower) candle, then followed by a bullish close (price opens lower and closes higher) candle stick on the time frame to be traded, set a stop order(sell-stop) at the opening price of the first bullish candle. this should be set only at the close of the bullish candle. Also, when there are two or more consecutive bullish close candles, and followed by a bearish close candle, set a buy stop order at the opening price of the first bearish close candle. This should also be set at the close of the bearish candle.

 

Risk Management conditions: for the sell stop order, set stop loss at the opening price of the most recent previous bearish candle opening price that is higher than the highest price of the candle which the opening price was used to set the pending/stop order. for the buy stop order, set stop loss at the opening price of the most recent bullish candle which is lower than the lowest price of the candle which its opening price was used to set the pending /stop order...

 

Number of Trades to be Opened: Always set two pending orders at a time (as soon as the conditions for setting the orders are met). for one of the trades, set a R;R of 1:2, and set the R:R for the second trade to 1:5.

 

Trade will be managed as follows: If the stop order is triggered, and the price hits the 1:2 target, the remaining open trade should move its stop loss to BE, and secure 0.5%R. This strategy does not require any indicators.

NB

All parameters should be adjustable.

 

Lot size: lot size should be calculated from the account balance, so that the risk on each of the trades should be 0.25%.  the default lot size for entry to be 0.01 lots.

 

 the EA is not allowed to open any other trade until the first 2 trades opened have been closed in profit or loss.

 

 All trades ( Opened pending orders) opened, but not executed should be closed after 1 hour, and then the search for a new trade setup should begin.


反馈

1
开发者 1
等级
(190)
项目
311
15%
仲裁
20
40% / 35%
逾期
16
5%
繁忙
2
开发者 2
等级
(141)
项目
166
22%
仲裁
7
29% / 43%
逾期
4
2%
工作中
3
开发者 3
等级
(50)
项目
71
15%
仲裁
2
50% / 0%
逾期
7
10%
已载入
4
开发者 4
等级
(22)
项目
28
11%
仲裁
6
33% / 50%
逾期
4
14%
已载入
5
开发者 5
等级
(157)
项目
222
22%
仲裁
15
60% / 20%
逾期
1
0%
繁忙
6
开发者 6
等级
(10)
项目
25
28%
仲裁
1
0% / 0%
逾期
1
4%
已载入
7
开发者 7
等级
(349)
项目
548
32%
仲裁
24
67% / 8%
逾期
16
3%
工作中
8
开发者 8
等级
(68)
项目
76
32%
仲裁
2
0% / 0%
逾期
1
1%
工作中
9
开发者 9
等级
(338)
项目
357
71%
仲裁
4
100% / 0%
逾期
0
工作中
10
开发者 10
等级
项目
0
0%
仲裁
0
逾期
0
空闲
11
开发者 11
等级
项目
0
0%
仲裁
0
逾期
0
空闲
12
开发者 12
等级
(241)
项目
424
34%
仲裁
54
37% / 39%
逾期
155
37%
工作中
相似订单
hi. I hv a strategy on tradingview need to convert to MT4/MT5 expert advisor for algo trading. would like to add some tradingview strategy setting to the EA(not included in my tradingview code): recalculate after order is filled, order size: xx% of equity
Hello great developer i need a great developer that can help me to do the modification on Ninjatrader https://forum.ninjatrader.com/forum/ninjatrader-7/general-development/44785-real-time-data-feed-from-excel-sheet Need a simple tool to connect rt data from excel to Ninjatrader- Already a free tool available which extracts data from trading software called- Nest Trader - to Ninjatrader- Its possible to modify it to
1. Combination of Market Profiles on daily basis a) this should be combined if the bell curve is similar to the previous day. Rotational day (volume - standard deviation). b) If breakout, new range should be drawn Conclusion: Market profile should be combined on daily after the market is closed 2. Use Vwap indicator, with 0.5 - slow trend, 1.0 - normal trend, 1.5 fast trend. The stop loss should be under the trend
Mt4 EA Copy trades from octafx copytrading master trader trades 1-i need a bot which will copy trades from Octafx Copytrading Master Trader trades to Metatrader 4 account. 2-bot will copy exactly same trade with same lotsize 3-Bot should open exactly same time when master open and close exactly same time when master close 4-provide complete source code Guide Completely how to Run*
"I am looking to automate my Delta Divergence trading strategy for NinjaTrader 8. The strategy is thoroughly detailed in the accompanying script, and I need it to be implemented effectively in the platform."
I’m looking for a developer that has understanding of scalping and HFT strategies that can make an algo that works for all brokers and prop firm LIVE accounts (like STP, ECN, DMA, Money Makers, NDD, Fast Server etc.,). I want someone that has understanding and insight in different scalping and HFT strategies, preferably something like momentum based strategies. The EA has to work on all Brokers and Prop firms like
I'm looking for professional developer for my project.I'm having indicators source code , i want to convert it into MT4 EA .it is having some basic inputs such as lot size,TP,SL,B.E,trailing,News filter features along with some special inputs.detailed strategy will be discussed in chat room.i prefer Indian developers who speaks hindi
The strategy uses a grid trading system where trades are placed at set intervals (grid levels) and are managed using Bollinger Bands for entry and exit signals. A fixed lot size, trades are managed to comply with maximum spread conditions and specific trading hours, with the possibility of closing trades based on Bollinger Bands signals. The use of Bollinger Bands indicates a focus on volatility-based trading, while
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
I believe in Robotics as a major artificial intellect to function of growth of business.Therefore if you script there is a likelihood of bringing economies of scale.The retrospective of the dynamics of indulgence of work can be economics of scale

项目信息

预算
30 - 50 USD
截止日期
 30  365 天

客户

所下订单1
仲裁计数0