GET Values for MT4 Theme chart options

 

Hi all,

Hope all still well.


Is it possible to GET the value of the fields in MT4 chart options for Script or EA building at all please?

pls find att.

Much appreciated.

Files:
 
Look at Chart Operations, specifically ChartGetxxx and ChartSetxxx functions.
 
Drazen Penic:
Look at Chart Operations, specifically ChartGetxxx and ChartSetxxx functions.

Hello Drazen,

Thanks for taking the time.

The links you gave are for Indicators.

I need the variables inside MT4 F8 chart options please.

ChartGetxxx does not have anything that seems correct, eg "Bull Candle"


Rgds.

 
5084971: The links you gave are for Indicators. I need the variables inside MT4 F8 chart options please. ChartGetxxx does not have anything that seems correct, eg "Bull Candle"

No, it is not for Indicators. It is for getting the colours of the Chart Properties (F8). Please read the documentation again!

For example, to get the colour for the "bull candlestick", use:

(color) ChartGetInteger(chart_ID,CHART_COLOR_CANDLE_BULL,0)
ChartGetInteger - Chart Operations - MQL4 Reference
ChartGetInteger - Chart Operations - MQL4 Reference
  • docs.mql4.com
ChartGetInteger - Chart Operations - MQL4 Reference
 
5084971:

Hello Drazen,

Thanks for taking the time.

The links you gave are for Indicators.

I need the variables inside MT4 F8 chart options please.

ChartGetxxx does not have anything that seems correct, eg "Bull Candle"


Rgds.

Really? Where did you get information that those functions are indicators only?

You should read the documentation a bit more carefully. ChartGetInteger can get you color of the bull candle. And many more details.

Simple search in help file or in the documentation web site will give you a huge number of samples including those you are looking for: Examples of Working with the Chart

Examples of Working with the Chart - Chart Constants - Constants, Enumerations and Structures - MQL4 Reference
Examples of Working with the Chart - Chart Constants - Constants, Enumerations and Structures - MQL4 Reference
  • docs.mql4.com
Examples of Working with the Chart - Chart Constants - Constants, Enumerations and Structures - MQL4 Reference