Open Buy when bar closes lower, Open Sell when bar closes higher

MQL4 エキスパート

仕事が完了した

実行時間4 日
依頼者からのフィードバック
The programmer communicated very well, asked questions and worked with me to make sure he understood what I wanted; and delivered the EA in a professional, courteous and timely manner. Thank you.
開発者からのフィードバック
A good customer who helped with the job and nicely answered my questions. Gently cooperated with the process. Happy trading buddy.

指定

Need a simple EA to Open a Buy order at the start of a new bar if the previous bar closes down.  Open a Sell order if the previous bar closes up.


I'd like to automate a simple counter-trend EA to do the following.

1.  Open a Buy order IF the Previous bar Opens above X.XXXX (price set via input) and Previous bar closes lower.

2.  Open a Sell Order IF the Previous bar Opens below X.XXXX (Price set via input) and Previous bar closes higher.

I'll manager close orders manually.

There is only two Inputs:

Price Level: 1.10900 (example)

Lots: .20 (example)


The order would execute on the first tick of each new bar.  Multiple order could be open.   I'll only be running this on one chart, so no magic number is required for me, unless programming requires it.

Example using above Input samples.

If the previous candle opened at 1.1120 (which is above the Price Level input), and the candle closes at 1.1105 (which would be a down candle), a BUY order for .20 lots would be open.   If the candle would have closed at 1.1125 (an up candle), then no action is taken.  Only buys on down candles.

If the previous candle opened at 1.1070 (which is below the Price Level input), and the candle closes at 1.1095 (an up candle), a SELL order for .20 lots would be opened.  If the candle would have closed at 1.1060 (a down candle), no action would be taken. Only sells on up candles.


It would need to check for currently open orders and only allow trades in the same direction as any open orders.  Only buy when there are 0 orders, or there are currently open buy positions.  Same for sell orders, only sell when no open orders, or currently open sell positions.


I think that covers it clearly, but if you need clarification, please let me know.

Needs to operate on 5 decimal broker.  Open code for editing.





応答済み

1
開発者 1
評価
(627)
プロジェクト
989
47%
仲裁
33
36% / 36%
期限切れ
98
10%
仕事中
パブリッシュした人: 6 codes
2
開発者 2
評価
(772)
プロジェクト
1039
44%
仲裁
50
8% / 50%
期限切れ
116
11%
3
開発者 3
評価
(4)
プロジェクト
6
33%
仲裁
3
0% / 100%
期限切れ
0
4
開発者 4
評価
(2317)
プロジェクト
2916
63%
仲裁
124
44% / 25%
期限切れ
429
15%
仕事中
5
開発者 5
評価
(4)
プロジェクト
5
0%
仲裁
2
0% / 100%
期限切れ
0
6
開発者 6
評価
(71)
プロジェクト
103
20%
仲裁
6
0% / 83%
期限切れ
3
3%
類似した注文
SMC ORDER BLOCK 30 - 60 USD
I want already build FULLY AUTOMATED order block MT5 XAUUSD HTF H4 ENTRY LTF M15 - Show result on live account. m15 ob entry in the direction of h4 ob bias the developper to provide source code in the end
I need an MT5 Expert Advisor built as a high-precision volumizer for Forex. Its core purpose is to generate controlled trading volume for rebates, while still maintaining low-risk account growth. I am not looking for aggressive profit chasing. I am looking for a stable, intelligent EA that can produce volume in a disciplined way without damaging the account. The ideal system should trade major currency pairs, avoid
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot
I need a high frequency trading robot for gold in one or 5 minute timeframe the robot should have spread filter where it should only open trades below a set spread should have news filter to allow trading during fundal news or not the robot should have input in number of minutes to close all open trades and remove pending orders before fundamental news as part of news filter. It should also have the number of minutes
Hello! I want to programm EA that uses volume profile indicator, but I am not sure if this is possible. Only experienced programmers please, I will not select a programmer who did only few jobs. Before starting I need to make sure you understand everything and that this is for sure technically possible
Hello, I am looking for a professional trading system including: 1- Trading Bot (Expert Advisor): - Good profit performance - High security and strong risk management - Works efficiently during high market volatility (news and strong movements) - Works on all pairs (Forex + Gold) 2- Signal Indicator: - Provides clear Buy and Sell signals - Includes Take Profit and Stop Loss - No repaint (signals must not change or
Hi, I’m looking for a top-tier, profit-optimized EA that has the potential to scale trading returns significantly. My goal is to maximize growth over time. Can you help develop a bespoke EA that could potentially scale to high six or seven figures
Max amount grid 30+ USD
max amount grid step for magic number do keep deleting .only when it is in negative floating .but when it is profit allow to go over the max and replays to grid step
Apply with a screen of your work . Symbol Specific Logic . Live Chart Optimization Check the Core logic . [back tests as well] Change points to pips . Create buffer for the zone

プロジェクト情報

予算
30+ USD
締め切り
最低 1 最高 2 日