Forum

Getting data for different time periods

Hello, I want to get the chart data for, for example H1, M15 and M1 so that I can display something about them regardless of what time period is currently being displayed. (I am very new to MT4, but not programming) *blushes* I have seen an example where within OnCalculate, the flowing code is used

Displaying current Spread as a value in MT4

Hello, How do I display the current spread as a value in my custom indicator ? I use the following code, but it doesn't display. string displayStr = IntegerToString (spread[ 0 ]); ObjectCreate ( "ObjName" , OBJ_LABEL , 0 , 0 , 0 ); ObjectSetText( "ObjName" ,displayStr, 24 , "Verdana" , Red);