Friends

Add friends via their profile or user search and you will be able to see if they are online

sd59
Added topic Object delete in chart event
Hi guys, I have an indicator that duplicates horizontal lines across multiple charts on different timeframes. The code to place and move the lines works fine but the code that deletes the lines does not work. #property strict #property
sd59
Added topic ChartOpen() problem
hi all, I am closing all open charts and then opening a defined set of charts afterwards. void OnStart () { long nextChart = ChartNext ( ChartID ()); //closes all open charts while (nextChart > 0 || ChartFirst () != ChartID ()) {
sd59
Added topic VWAP Indicator
Hi guys, I'm trying to produce a VWAP indicator over a daily time period using the 'OnCalculate' event handler as most still use the 'start()' version. After many hours of struggling with this it works about 90%. The indicator does draw on the chart
sd59
Added topic Problem with chart ID
Hi guys, Have run into a small problem regarding chart ID 's. I have this code in a script: long chart_id; chart_id = ChartOpen ( "GBPUSD" , PERIOD_D1
sd59
Added topic RadioButton Group control
I am creating a radio button group in a separate indicator window on my charts but having difficulty with some of the settings. My code so far: #property indicator_chart_window #include <stderror.mqh> #include <stdlib.mqh> #include
sd59
Added topic RadioButtons Confusion
I am trying to create some simple radiobuttons and below is my code to create either a single radiobutton using CRadioButton class and comparing to a single creation using CRadioGroup class. #include <Controls\RadioButton.mqh> #include
sd59
Added topic Adding rectanglelabel to a panel
hello guys, I have created a panel with several controls and labels on (code not shown but working) - for aesthetic reasons I wanted to add some separator lines at various places and I am trying to do this with a rectanglelabel purely for ease of
sd59
Added topic Problems with FileIsEnding()
I am reading data from a csv file but not all of the data is being read. The code I am using is below: #property strict #include <stderror.mqh> #include <stdlib.mqh> datetime    open_time; string      symb;
sd59
Added topic Unresolved import function call
HI guys, Has anyone else experienced this recently? I have an indicator which I was using perfectly well this morning - I have changed nothing and tonight I get this error while trying to run it: I have enabled dll imports . This has occurred before
sd59
Added topic Another iMAOnArray problem
Hi Guys, I am trying to extract MA values (with iMAOnArray) when I attach a 13 SMA to the OBV indicator by drag and drop using the First Indicator option: My code is below and the param2 values are all zero. I have read many of the other posts about
sd59
Added topic Zero divide time frame dependent
Hello all, I was puzzled why the indicator below did not update on the M1 time frame - the error message was ' zero divide '. However the print statement showed the variable 'volume' to have a positive value. I then watched the M5 time frame which
sd59
Added topic Custom Fibonacci Problem
HI guys, I can display the default fib on charts no problem but if I want a custom set of levels I run into problems. I read the documentation here  https://docs.mql4.com/constants/objectconstants/enum_object/obj_fibo  which shows the code
sd59
Added topic Rectangle to fill or not to fill?
I would like to draw a rectangle in the background of the chart but with no colour fill. It looks like I need to set the 'back' property to FALSE in order to do this but I would like the 'back' property to be TRUE if possible so that the border lines
sd59
Added topic Problem with ChartSetSymbolPeriod()
This is a little script that closes all open charts but one in the terminal. I then try to change the time period but it gives an error saying it cannot find the chart. Any ideas please? void OnStart () { long currChart, prevchart = ChartFirst ();
sd59
Added topic Trouble with OnTimer()
I am running a 1 second timer function but getting strange results - please see code and output. int OnInit () { EventSetTimer ( 1 );    return ( INIT_SUCCEEDED ); } void OnTimer () { Print (TimeSeconds( TimeCurrent ())); } Print results
sd59
Added topic Write to File Syntax
Please can someone spot the deliberate mistake!? I want to write headers to a file in the first instance the subsequently write data. I check to see if file exists first - if it doesn't I write the headers, if it does I just continue to write the
sd59
Added topic Text label cut short!?
I have an indicator shown in a separate window and I want to place a text label in the window. The code I have is: void CreateTradeLabel() { string name = "tradelabel" ; int chart_ID = 0 ; if ( ObjectFind ( 0 ,name) != 0 ) { if (! ObjectCreate
sd59
Added topic Array Resize????
struct data { datetime    open; string      symb; string      type; double      lots; double      price; double      stoploss; }; data
sd59
Added topic Baffled by ArrayResize!!
void OnStart () {    int n = 0 ; double fup[]; for ( int i=0;i< 1000 ;i++) {    double f = iFractals ( NULL , 0 , MODE_UPPER ,i)    if (f > 0 ){fup[n] = f; Print (fup[n]); n++; ArrayResize (fup,n, 1000 )} } } This
sd59
Added topic Integer division
int x = 3 , y = 6 ; double z; z = y/x  ------  z = 2 z = x/y  ------ z = 0 z = ( double )x/y ------ z = 0 MQL4 documentation identifies this problem but the trouble is it doesn't say the correct way to get the right