Forum

iBarShift returns Friday last bar

Hi -:D I use such an amazing function iBarShift made by Alain (Thank you Alain!) I've got a little problem. iBarShift( Symbol (), PERIOD_H1 , D'2014.10.13 00:00' ); This returns an accurate bar shift in most of symbols. But at the beginning of week with some symbols such as S&P500, it returns

Change colors from Input Variables & PlotIndexSetInteger

Hi ☀ I wanted to change the line color from Input Variables, but I couldn't. I could do that with #property indicator_color1, though. How should I do this from Input Variables and PlotIndexSetInteger( 0 , PLOT_LINE_COLOR , ~) ? #property indicator_chart_window #property indicator_buffers 2

How to manage Visualization of the indicators in MQL5 ?

Hi everyone! We can manage the visualization of the indicators manually like as blow. Then how can we do that in MQL5 ? I want to choose timeframes where indicators may be shown. I couldnt find any functions for that :( Thanks x

Wingdings Error

Hi, A HAPPY NEW YEAR! Guys :) I'm struggling with Wingdings input int Code = 221 ; void OnStart () { ObjectCreate ( 0 , "TEST" , OBJ_LABEL , 0 , 0 , 0 ); ObjectSetInteger ( 0 , "TEST" , OBJPROP_XDISTANCE , 200 ); ObjectSetInteger ( 0 , "TEST" , OBJPROP_YDISTANCE , 200 ); ObjectSetInteger (

Function Sleep() can't be called for Custom Indicator. Is there any workaround ?

Hi, The Sleep() function isn't allowed for a custom indicator. Is there any workaround ? I wrote the following code but it doesnt work fine when I change timeframes of charts. But when I did the same thing with Expert Adviser program, it works fine by using the Sleep() function. How can I do that

Can I move or change Expert Adviser Icon ?

Hi Everybody, Is it possible to move this icon to a different location ? And is it possible to change this icon image or hide it ? Thanks for your time =)

Cann't resize the height of subwindows

Hi everybody, You can adjust the height of subwindows by hand with mouse drag. But when once it set by using ChartSetInteger (chart_ID, CHART_HEIGHT_IN_PIXELS ,sub_window,value) it can't be resized with mouse. Is there any way to resize it again with mouse drag

How can I get the actual price of each Fibo level ?

Hi everyone, When we creat Fibonacci Retracement manually on chart , we can get its level value(50%, 100% etc) as below. Then how is it possilbe to get the actual price of each level value ? Thank you X :-) void OnChartEvent ( const int id, const long & lparam

How to change colors of bar and candle in chart object

Hi Guys I'm now learning about creating objects. How can I change colors of bar and candle in chart objects( OBJ_CHART ) ? I also wanted to know how to hide OHLC values in the upper left corner . Thanks

How to call OnCalculate() function at a specific timing

Hello Guys! The OnCalculate() function is called when a new tick is received. Is it possible to call it at a specific timing? Example: int OnCalculate ( const int rates_total, const int prev_calculated, const datetime &time[], const double &open[]