Drawing a line in another chart
-
Does someone know a way to draw a line (or any object) in a secondary chart? I:e using AUDUSD variables to draw a line in EURUSD within the same EA logic. There doesn't seem to be a "Symbol" option like in other blocks.

Thank you.
-
You select AUDUSD in the 'Symbol' option in all necessary condition blocks but run the EA on the EURUSD chart.
-
Hi @l-andorrà, thanks for the response, but if I do that I would be able to see the line on EURUSD (or whatever instrument the EA is attached to), but it would NOT draw and update on AUDUSD because there is no secondary "symbol" option in the "draw" block configuration. In other words, it only seems to be able to draw objects on the current symbol the EA is attached to.
I could use global variables and two EAs to synchronize these objects, but I would like to know if there is a simpler solution that can be executed from a single EA instead of using two.
This is the EA I try to use: https://fxdreema.com/shared/BUf6SjRVc . It is a scalping tool that uses horizontal level variables and objects (for visualization) to trade renko charts.
MT5 doesn't allow trading/execution on custom charts directly, but the EA can handle that already. I just need help to synchronize the objects in both charts using the same EA.
-
The problem here is for this to work you would need the two charts open, but then the EA would have to know the chart number, in case you have 2 or more charts of the same symbol open.
-
@jstap Yes! An example to clarify: Chart #1 is "EURUSD_Renko" which is a custom chart I create and attach the EA into. The EA plots different lines for entry, TP and SL of hypothetical pending orders, this helps me visualize the ranges before I put an order. But it is impossible to execute directly on custom charts (MT5), so the EA sends an order to the original live chart "EURUSD" (chart #2) to do this. I have no problem reading or executing on a second chart, the problem is that I cannot draw or update an object on the second chart because there doesn't seem to be an option for any "draw" blocks:

I want to be able to analyze/view these ranges/objects in both the custom chart (renko chart) and the execution chart (time bar chart).
-
This would be a lot of work and custom code.