Hi all,
Please forgive me for this newbie-to-programming questions. I started learning MQL4 language few months ago and I learn a lot by reading codes someone else had written. Today I want to learn how I can draw boxes in main chart window, based on indicators in subwindow. Some sort of "zones" to simply describe it.
In this example, I load a stock RSI(14) in my subwindow, and I want to draw a 'blue zone' whenever RSI(14) is above level 50 and 'red zone' whenever RSI(14) is below level 50. I am not interested in the RSI, I just want to learn how to draw 'zones' when certain conditions are met (like RSI above/below 50 in this case). From what I learned so far, we need to keep records of the current state/trend of the RSI - whenever RSI > 50, trend = 1 and when RSI =< 50, trend = -1. Then based on that info, we draw the rectangle boxes. I hope someone willing to code this and make the sourcecode available for me to study.
-
-
Any help is much appreciated.
-RedEye-