Get chart type from code
soso-xx:
Nope, sorry.
Hi,
Is it possible to get the active chart type (line, bar, candle) from code?
Thanks!
may i know y it matters ?
qjol:
may i know y it matters ?
may i know y it matters ?
I have some code that colors bars based on a custom condition, and it does it right on bars only. Couldn't find a way to change candles colors individually because of their bodies.
i still don't get it, y u need to know, just change it 2 bars, end of story
int hTerminal = GetAncestor(WindowHandle(Symbol(), Period()), 2); PostMessageA(hTerminal, WM_COMMAND, 33018, 0); //Bar Chart //PostMessageA(hTerminal, WM_COMMAND, 33019, 0); //Candlesticks Chart //PostMessageA(hTerminal, WM_COMMAND, 33022, 0); // Line Chart
ho, & don't forget 2 import & define necessary things
#import "user32.dll" int GetAncestor(int hWnd, int gaFlags); int PostMessageA(int hWnd, int Msg, int wParam, int lParam); #import #define WM_COMMAND 0x0111
Hi,
Is it possible to get the active chart type (line, bar, candle) from code?
Thanks!