Script/Indicator for OnChartEvent clicks

Job finished

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

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
(269)
Projects
284
55%
Arbitration
0
Overdue
5
2%
Free
4
Developer 4
Rating
(461)
Projects
488
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: 5 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 unique grid trading system for XAUUSD that combines entry, controlled two-sided grid expansion, DCA (Dollar Cost Averaging) basket profit control, hedging. Unlike traditional grid EAs that only trade against price, this unique grid system should dynamically build positions in both directions based on market movement, allowing flexible adaptation to changing conditions ie the grid needs to dynamically move
I need an experienced MQL5 developer to create a fully automated MT5 Expert Advisor called Ayoub Gold EA , focused exclusively on XAUUSD (Gold) . Main requirements: Platform: MT5 / MQL5. Fully automated BUY and SELL trading on XAUUSD. Must support broker suffixes such as XAUUSD, XAUUSD.f and XAUUSDm. Trading strategy based mainly on Range Breakout with trend confirmation. EMA, ADX and ATR filters. London/New York
Mashiri 50 - 10000 USD
I need a custom MetaTrader 5 indicator designed specifically for XAUUSD gold trading. The indicator should identify potential buy and sell opportunities, display clear entry and exit signals on the chart, provide alerts, and help identify market trends and possible reversals
Looking for an experienced Sierra Chart ACSIL/C++ developer to customize an existing footprint chart. I need 3 things: 7-Day ATR – calculate and display a configurable 7-day ATR. Custom Footprint – modify my existing footprint chart to match my preferred layout/data display. Automatic LVN – detect and plot Low Volume Nodes automatically based on volume distribution. I already have a working footprint chart, so no
//———————————————————————————————————————————————————————————————————— struct S_MCAV { double matureSum; double totalSum; double value; void Init () { matureSum = 0.0; totalSum = 0.0; value = 0.5; } void AddContext (int ctx) { totalSum += 1.0; if (ctx == 1) matureSum += 1.0; } void ApplyDecay (double rate) { matureSum *= rate; totalSum *= rate; } void Update () {
1. Title Development of a Custom MQL5 Expert Advisor for XAUUSD (MetaTrader 5) 2. Requirements Specification Overview: I am looking for an experienced MQL5 developer to build a robust, fully custom Expert Advisor (EA) for MetaTrader 5 tailored for trading Gold (XAUUSD). Core Specifications & Features: Asset & Timeframe: Designed specifically for XAUUSD. Timeframe should be selectable directly from the EA inputs
Cerco uno sviluppatore MQL5 esperto per sviluppare da zero un Expert Advisor completamente nuovo per XAUUSD su MT5. Non desidero un semplice Expert Advisor basato su indicatori fissi. Desidero un sistema di trading dinamico e adattivo, in grado di adattare il proprio comportamento alle mutevoli condizioni di mercato di XAUUSD. Lo sviluppatore dovrebbe essere libero di combinare qualsiasi tecnica ritenuta opportuna
I am looking for a Senior MQL5 Developer to create a new MetaTrader 5 Expert Advisor from scratch. I will provide a complete Requirements Specification containing objective entry, exit and risk-management rules. This is not a request to copy or decompile an existing product. Project requirements: Clean and modular MQL5 source code. Exact implementation of the supplied strategy. One signal evaluation per configured
Composite robot 30 - 200 USD
Title: Multi-Timeframe Pure Price Action & Elliott Wave Execution Bot for XAUUSD 1. Project Overview I need a robust, automated trading bot (Expert Advisor) for MetaTrader 5 (MT5) to trade XAUUSD (Gold) exclusively. The strategy is built entirely on Top-Down Multi-Timeframe (MTF) market structure, pure price action, and Elliott Wave principles. It does not use traditional lagging technical indicators (like RSI or
Build a fully mechanical EA for XAUUSD on D1 timeframe. Trader spends 5-10 mins per day to run it. No discretion. EA calculates, places orders, and walks away. Timeframe Use the Daily (D1) timeframe . At the close of each completed daily candle, identify: Previous day's High (wick) Previous day's Low (wick) Previous day's Open

Project information

Budget
30+ USD