Script/Indicator for OnChartEvent clicks

Job finished

Execution time 6 minutes
Feedback from employee
Great customer, clear specs, prompt communication, recommended+
Feedback from customer
Fast as bullet delivery. Attentive & efficient. Best ever!

Specification

To develop a script that upon pressing a shortcut key, and clicking on a specific candle, an object(rectangle) is to be drawn on the chart on that specific candle. 

I have the source code examples to aid in the development of this indicator as attached. You just need to use the onchartevent click and drawing of objects. No logic/validation is required.

**to use the example indicator attached, once loaded, press "Z" and click anywhere on the chart. it will plot rectanglse 200 bars to the left based on the place you've clicked. What i need is just plot the rectangle based on that Candle i have clicked. Strictly.


Detail Specifications

Part 1

- Assign 2 x hotkey "S" and "D" where S plots a rectangle on the upper wick(high to mathsMax value) and D plots a rectangle on the lower wick(mathsMin to low value)

- When i press S and click on a specific candle, a rectangle shall be drawn on the upper wick "zone" and extended to the right side of chart(source code provided on the object extension)

- When i press D and click on a specific candle, a rectangle shall be drawn on the lower wick "zone" and extended to the right side of chart(source code provided on the object extension)

- Assign 2 x hotkey "C" and "V" where C plots a rectangle on half of the upper wick((high-mathsMax/2) + mathsMax to mathsMax) and C plots a rectangle on the lower wick(mathsMin to (mathsmin-low/2)+low)

- When i press C and click on a specific candle, a rectangle shall be drawn on the upper wick "zone" and extended to the right side of chart(source code provided on the object extension)

- When i press V and click on a specific candle, a rectangle shall be drawn on the lower wick "zone" and extended to the right side of chart(source code provided on the object extension)



-Individually all 4 hotkeys shall have input parameters to determine color, style, line thickness

- a global input to choose if all rectangles created shall be unselectable or selectable

- a user input parameter to determine how long the extension of the rectangle is to the right

- a global delete hotkey "x" to delete all rectangles created using SDCV

- the indicator shall be able to "refresh" itself if i click it on the same candle again. For example, if a live candle is still running and have yet to close, and i clicked and plotted, the rectangle zone may not be the same as when the candle closed. 

Also, if a rectangle is drawn already, there should not be a duplicate rectangle plotted/overlapped if i clicked on the same candle again.



Files:

Responded

1
Developer 1
Rating
(31)
Projects
44
61%
Arbitration
0
Overdue
0
Free
2
Developer 2
Rating
(52)
Projects
66
41%
Arbitration
1
0% / 100%
Overdue
7
11%
Free
3
Developer 3
Rating
(270)
Projects
285
55%
Arbitration
0
Overdue
5
2%
Free
4
Developer 4
Rating
(464)
Projects
491
70%
Arbitration
6
67% / 0%
Overdue
2
0%
Free
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(20)
Projects
23
39%
Arbitration
4
25% / 50%
Overdue
1
4%
Free
Published: 6 codes
7
Developer 7
Rating
(69)
Projects
146
34%
Arbitration
13
8% / 62%
Overdue
26
18%
Free
Published: 6 codes
8
Developer 8
Rating
(279)
Projects
341
37%
Arbitration
6
50% / 17%
Overdue
7
2%
Free
Published: 5 codes
Similar orders
I need a robot that will grow small accounts to bigger amounts like this one in this link, https://youtu.be/d38pMbJihew?si=3NeIOVyrlwDr4X_o. Please click the link and watch how this EA grow small accounts. Then create a robot like that. I will test it on demo first then if it does what i want, i will take it. Please it must be simply to use. It must set targets, for example, once it reaches $500 profit, it must
I’m looking for an experienced MQL5 developer to build a custom MT5 Expert Advisor for gold scalping, based on clearly defined support/resistance levels and false breakouts. Before development, I would welcome your technical feedback on the proposed rules, their feasibility, and any improvements you recommend. Please explain the reasoning behind your suggestions rather than promising returns. Proposed strategy: 1
Here is a professional, detailed requirements specification draft for your MQL5 freelance order based on your prompt: ​ Strategy Objective: Develop an automated Expert Advisor (EA) featuring a 1:3 Risk-to-Reward ratio optimized for a small starting budget. ​ Core Trading Logic: ​Execute automatic Buy and Sell trades using high-probability entry signals. ​Target a strict 90% theoretical win-rate structure through
i want to fix my gold martingale bot MT5. RSI 14 ENTRY 30 BUY 70 SELL Lot 0.02 0.04 0.07 TP 150 for all SL 90 30 30 once total daily profit is 200$ stop trading stop trading once 2 consecutives total losses stop trading if spread exceeded 30 and between hour 15 & 17 PM Move SL to breakeven point once the profit exceeded 50 from from breakeven thanks
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical
The purpose of this order is ONLY to test and implement my H1 POI (Point of Interest) identification logic correctly. I am not requesting the complete EA at this stage. I will provide the exact rules for identifying the H1 POI after selecting the developer. The developer must convert those rules into clear, deterministic MQL5 logic. Requirements: Analyze H1 candles according to the rules I provide. Identify and mark
Title: Fully Automatic MT5 Trading Bot (Expert Advisor) with Risk Management I want a fully automated trading robot (Expert Advisor) for MetaTrader 5, written in MQL5. The bot must automatically analyse market data, identify trading opportunities, execute BUY and SELL orders, manage open positions, and close trades according to predefined rules without requiring manual confirmation for each trade. Requirements
Hello, I’m looking for an experienced developer to research, build, test, and install a fully automated MetaTrader 5 trading bot for gold, XAUUSD. My total development and installation budget is $300, including all agreed work and fees. My goal is to pass a $100,000 FTMO US Two-Step Standard evaluation and sustainably maintain the funded account. I need a day-trading strategy that can buy in bullish markets and sell
I have three indicators that operate independently. I want to combine them into one indicator with custom expert programming that automatically enters trades when a signal is generated by one of the indicators. I will pay for this service Thanks you
Existing EA: NEW_CORE_ORB_M5_v021 | MT5 | XAUUSD M5 Early-stage research prototype, not a new EA from scratch. Need an experienced MQL5 developer to audit, complete, repair, improve and test BOTH independent strategies equally: Opening Range Breakout (ORB) and Scalp. Keep code lightweight and preserve an untouched baseline. No unnecessary rewrite or complex filters. 1. ORB Strategy Verify opening-range construction

Project information

Budget
30+ USD