Expert Based on Prior Candle High, Prior Candle Low, and Current Candle Open

Job finished

Execution time 4 days
Feedback from customer
Very responsive and did an awesome job quickly! Highly recommend!

Specification

The idea of ​​the expert

Create an expert that allows for back-testing and live trading for forex based on the previous candle high, previous candle low, and current candle open.  If the close of the prior candle is closer to the high, then go long with the prior candle high as take profit.  If the close of the prior candle is closer to the low, then go short with the prior candle low as the take profit.  Please calculate the ratio of the current open to the high or low by using these formulas below.  Each value should be between 0-1. 

For long entry ratio: (current candle open price – prior candle low)/(prior candle high – prior candle low)

For short entry ratio: (prior candle high – current candle open price)/(prior candle high – prior candle low) 

  Inputs are:

·         Minimum ratio to enter trade:

o    Example: only take long trades if ratio is greater than 51

·         Maximum ratio to enter trade:

o    Example: only take long trades if ratio is less than 90

·         Profit target

o    For long trade, take profit is the high value of prior candle or close trade at the close of the candle.

o    For short trade, take profit is the low value of the prior candle or close trade at the close of the candle.

·         Stop loss

o    Allow the stop loss to be a multiple of the take profit range.

o    For example, for long trade the profit range is: prior candle close – current open

o    Allow a multiple of this range for stop.

o    Example: Enter 2 and the stop loss will be twice the size of the take profit.  Enter 1 and the stop loss distance will be the same as the take profit.

·         Risk

o    Be able to select risk % of total account balance

·         Lot Size

o    Based on the stop loss distance from entry and risk %, automatically calculate appropriate lot size

o    Round to nearest 0.01

o    For example, if risk is set to 1%, then automatically calculate lot size give the distance to stop loss, so that 1% is risked per trade.

o    Formula should be: Balance*Risk%/(entry price – stop loss price)/CurrentPipValue/100000

 


Responded

1
Developer 1
Rating
(173)
Projects
197
12%
Arbitration
38
37% / 34%
Overdue
5
3%
Loaded
Published: 2 codes
2
Developer 2
Rating
(213)
Projects
246
45%
Arbitration
42
10% / 57%
Overdue
5
2%
Free
3
Developer 3
Rating
(16)
Projects
19
11%
Arbitration
3
0% / 100%
Overdue
2
11%
Free
4
Developer 4
Rating
(71)
Projects
103
20%
Arbitration
6
0% / 83%
Overdue
3
3%
Free
5
Developer 5
Rating
(1)
Projects
2
0%
Arbitration
0
Overdue
1
50%
Free
6
Developer 6
Rating
(66)
Projects
95
28%
Arbitration
20
25% / 55%
Overdue
24
25%
Free
7
Developer 7
Rating
(17)
Projects
24
33%
Arbitration
5
20% / 40%
Overdue
8
33%
Free
8
Developer 8
Rating
(5)
Projects
9
0%
Arbitration
1
100% / 0%
Overdue
3
33%
Free
9
Developer 9
Rating
(96)
Projects
143
76%
Arbitration
0
Overdue
2
1%
Free
10
Developer 10
Rating
(281)
Projects
454
39%
Arbitration
93
42% / 18%
Overdue
73
16%
Busy
Published: 2 codes
11
Developer 11
Rating
(87)
Projects
114
26%
Arbitration
7
29% / 57%
Overdue
5
4%
Free
12
Developer 12
Rating
(69)
Projects
146
34%
Arbitration
11
9% / 55%
Overdue
26
18%
Free
Published: 6 codes
Similar orders
I am looking for an experienced and reliable MQL5 developer to complete an Expert Advisor (EA) project that is already partially developed. The previous coder abandoned the project close to completion, so I need someone who can step in, quickly understand the existing code, and professionally bring it across the finish line
Hello, I have a GUI that needs 2 adjustments. The first is to have it load up to the right of the screen. The other is to check the box "None" in the 3rd ticket window. I think I've located the error (rb 3 false). I don't know how to edit the Designer Generated Code. I also don't know how to move the GUI. I've gone in there and moved some lines around for aesthetic purposes and adjusted the font but that's as far as
Hi guys My grid EA has some bugs and I would like to figure out, what lead into my losses. I made a document with all the bugs I have found. It must be something with Global Variables and mathematical levels it ignores. The logic behind is very complex and the EA has approx. 4500 lines of code. Requirements: - Math understanding - Understands mql5 and clean coding What does the EA: - It continuously monitors the
i need an expert to converting trading view script called Renko chart into meta trader5 EA automated robot, i need an expert that can get it done in 5 days here is the link to the code /
I have a pine script from tradeview and I'd like you to convert it in js ECMAScript (ES6) so as to use in the trendspider, Please find a link to check which one is it. https://charts.trendspider.com/scripting/docs/#/scripting_language if you are an expert and you can do this work bid
All entry/exit conditions, signal filtering, EMA, ADX, and ATR calculations, as well as confirmation candles, must be implemented without any changes . Signals must appear exactly the same as they do in TradingView: On the same candles , in the same direction . Optimized for detecting spikes/drops in Boom and Crash indices on the M1 timeframe . User-friendly interface: Ability to configure the following parameters
Hello, I need an expert coder who can help me convert my tradingview pine script to mt5 EA expert advisor, This is the pine script https://ctxt.io/2/AAB4SyWXFQ Also I need for EA to enter trades exactly like this strategy on TradingView, i attach, please i need someone wo can do the work not time waster, Live market order should be placed on green and red indicator chart
I’m looking for a custom indicator that can scan for ICT Smart Money "Breaker Structures" and alert me when they form. What I Need: The indicator should analyze markets (Oil/Gold/ but mostly Crypto (BTC)) for Breaker Structures—where price breaks a swing high/low but gets rejected, signaling a potential reversal. I primarily use TradingView, so I'd appreciate it if the script is compatible with TradingView and can
Existing MQL5 EA uses MA and Smoothed Heiken Ashi for entry conditions. Architectural design is as follows: 1. Modified smoothed HA indicator to write/update global variable to indicate direction change which is picked up by the EA. 2. 21 period LWMA used to confirm trend direction for entry. After reading articles on MQL5 (see especially "Neural Networks for Algorithmic Trading" by Dmitriy Gizlyk ) I have included
Fast 1 30 - 150 USD
Job Title: MT5 Expert Advisor for ICT Strategy with Fair Value Gap and Risk Management Job Description: I’m looking for a skilled MQL5 developer to create an MT5 Expert Advisor (EA) based on an ICT-style strategy that trades XAUUSD using multi-timeframe market structure and Fair Value Gap detection. Key features: 4H market direction using BOS/CHOCH 2H/1H detection of FVGs (gap between candle 1’s high and candle 3’s

Project information

Budget
30 - 40 USD
For the developer
27 - 36 USD