Hi,
I have a question to experts that can we create button to open a new chart, like a market watch of selected pairs ?
So if click on dashboard let's say EURUSD it open EURUSD chart.
I don't either it is possible on fxdreema or not.
Hi,
I have a question to experts that can we create button to open a new chart, like a market watch of selected pairs ?
So if click on dashboard let's say EURUSD it open EURUSD chart.
I don't either it is possible on fxdreema or not.
I would say it is not possible with fxDreema alone. Probably you will need some custom code.
I saw something the other week from @roar about doing this, it was with custom code but I am unsure how.
Basically you can just use the ChartOpen function: https://www.mql5.com/en/docs/chart_operations/chartopen
Hi, can someone please help with the custom code for MT4 to open a chart?
It is in roars post, what are you struggling with?
Hi, I checked the @roar link but didn't see any reference to it. This is the MQL5 example in the original post, but I'm for this in MQL4:
Is more a less the same add this to a custom code block with a block above to activate:
ChartOpen(NULL,15);
Change NULL to the chart you want to open like "GBPUSD", NULL = current chart
change 15 to the minutes of the chart you want to open, 1, 5, 15, 30, 60, 240, 1440, 10080, 43200
Hi, thank you. Do I just put a "Mouse clicked on object" block above the custom MQL4 code block you gave above? I'm trying to add the open chart button to the array in the tutorial, but am struggling with getting it to link with pairs in the array. I'm new to FXdreema so I don't quite understand what to put where (incl what should go on chart, on init, on timer etc for this button to work), but I am learning.
Would you be able to give me an example of how to do this (link the button to the array) in the tutorial project file link below?
If you could help me here it would be greatly appreciated.
https://fxdreema.com/forum/uploads/files/1488659045285-tutorial_arrays.mq4
Add a shared link not the MQ file, mouse clicked on chart only works on chart, so live/demo charts not backtest
Hi, thanks for the reply.
shared/BcA4wMSac
I can make a button manually and was able to link a constant to the pair name to open a chart for the specific row, but will have to place a manual button set of blocks for each row. Please can you help with linking it to the array so I don't need to create a separate set of blocks for each row.
Thank you in advance
You have many things on many tabs which ones are not working?
Everything in the project works, except the blocks in Area #9 under the "On Chart" section. The blocks in Area 10 under the "On Chart" works to create one button linked to the "instr0" constant which is a definable currency pair used in the array for the first line of the array. This set of blocks also appears under the "On Timer" section as the only way I could get the button to work is to have the same block set on both sections. I can accomplish what I want by having n-times these block sets but that is cumbersome and many blocks.
The blocks in Area#9 are blocks I copied from other suggestions but most of them are MQL5, and I have no idea how to compile and link a set to be part of the array.
These blocks are not connected?