Forum

Master Candle's Trendlines until it's broken

Hello all, i am writing a "Master Candle" indicator (on H1). Master candles are highlighted, but now, i need to draw high and low trend lines until the price break these high or low. Then the trendline are stopped to be drawn on the (H1) candle breakout. How can i do that please ? Here is my code

Each day High and Low Values of Index indicator.

Hello, I am working on an index indicator based from this one : https://www.mql5.com/ru/code/9780 I really need to get the HIGH and LOW's values (from the subwindow) of each day then i will be able to draw boxes (with OBJ_RECTANGLE). I know how to get it from the price's chart to draw boxes on the

Colored DRAW_HISTOGRAM according Bull or Bear Candle

Hello every one, I am working on a indicator based on this one : https://www.mql5.com/ru/code/9780 I am modifying it in histogram version by changing : " DRAW_LINE " with " DRAW_HISTOGRAM " . My problem is that my code, drawing all histogram bars in one color dependig on the current candle's color

Changing width scale according zoom scale

Hello everyone, I desire to auto scale the width of an histogram buffer according the zoom scale's candle. My problem is it only works when i change the time frame. I want it to be directly after zooming in/out. I have put the function in : OnInit + OnCalculate + OnChartEvent ... but, it doesn't

Manually CreateObject with custom predifined name.

Hello there, I have created an indicator wich dysplays oscillators : What I desire to do : When I create a trend line manually by clicking the mt4 button I need the trend line to have a custom predifined name like : "My_Predefined_Name" . Is it possible ? And can you lead me on the simpler way to

Stop / kill calculating a function.

Hello again, I need to stop calculating a function because of CPU. I created a BUTTON. TRUE state => I call + dysplay my_function. FALSE state => I hide the dysplayed grapical objects and indications. (but the function is still there and take CPU ressources). How can I stop / kill the function's

un-needed lines on Stochastic

Hello there, I am working on a indicator in which i could switch between oscillators indicators ; and i am implementing the indicators but i have a problem with the stochastic . Undesired lines are drawn ; i need them not to be drawn BUT with no level set in #property // I don't want to set levels

Hide Object by name

Hello all, I have an idea : - hide/show (not delete) objects on the graph (channels, rectangles, lines...etc) with a same prefix (My_Prefix_Object1, My_Prefix_Object2, My_Prefix_Object3...etc). My question : Is it possible to do it ? Maybe with "ObjectFind" (?) And how hide/show ? .... "ALL_PERIOD"

Alert only work on mouse move.

Hi there, I have created this simple alert function : double Alert_Higher_Level = ObjectGet ( "Alert_Lines_Higher" , OBJPROP_PRICE1 ); if ( Bid > Alert_Higher_Level && Alert_Higher_Level> 0 ) { PlaySound (Alert_Higher_Sound);

CHART_AUTOSCROLL according the mouse wheel

Hello all, I am trying to put the "CHART_AUTOSCROL" parameter false...when i use the wheel of the mouse. I succed with a simple click if (id== CHARTEVENT_CLICK ) // if (id==CHART_MOUSE_SCROLL) { bool My_Button_Auto_Scroll_State=