Page 1 of 1

This indicator it has somehow corrupted should be cycles

Posted: Thu Feb 23, 2017 3:39 am
by m.baddeley
please, Mr. Mladen could you look at this indicator for me when installed on chart shows as a straight line instead of cycle with dots it was working fine but seems to have corrupted itself thanks in advance. 

Code: Select all

//+------------------------------------------------------------------+//|                                 cyclekroufrextremums 2.0.mq4.mq4 |//|                        Copyright 2016, MetaQuotes Software Corp. |//|                                              |//+------------------------------------------------------------------+#property copyright "Copyright 2016, MetaQuotes Software Corp."#property link      ""#property version   "1.00"#property strict#property indicator_chart_window//+------------------------------------------------------------------+//| Custom indicator initialization function                         |//+------------------------------------------------------------------+int OnInit()  {//--- indicator buffers mapping   //---   return(INIT_SUCCEEDED);  }//+------------------------------------------------------------------+//| Custom indicator iteration function                              |//+------------------------------------------------------------------+int OnCalculate(const int rates_total,                const int prev_calculated,                const datetime &time[],                const double &open[],                const double &high[],                const double &low[],                const double &close[],                const long &tick_volume[],                const long &volume[],                const int &spread[])  {//---   //--- return value of prev_calculated for next call   return(rates_total);  }//+------------------------------------------------------------------+//| ChartEvent function                                              |//+------------------------------------------------------------------+void OnChartEvent(const int id,                  const long &lparam,                  const double &dparam,                  const string &sparam)  {//---     }//+------------------------------------------------------------------+

Re: This indicator it has somehow corrupted should be cycles

Posted: Thu Feb 23, 2017 4:24 am
by mntiwana
m.baddeley wrote:please, Mr. Mladen could you look at this indicator for me when installed on chart shows as a straight line instead of cycle with dots it was working fine but seems to have corrupted itself thanks in advance.
HI
m.baddelay
You are Welcome here,thanks for joining us
then we like advise our users/visitors plz always try to make you queries/request in the belonging threads so that you can have early response,we frequently checking any requests/coding matters threads.

Re: This indicator it has somehow corrupted should be cycles

Posted: Thu Feb 23, 2017 4:34 am
by mladen
m.baddeley wrote:please, Mr. Mladen could you look at this indicator for me when installed on chart shows as a straight line instead of cycle with dots it was working fine but seems to have corrupted itself thanks in advance. 


m.baddeley

That code does nothing
What exact code did you test?

Re: This indicator it has somehow corrupted should be cycles

Posted: Thu Feb 23, 2017 4:38 am
by m.baddeley
This indicator worked so well and yesterday when i opened the platform the cycles and the dots all formed a line ...would you like to see what the correct indicator looks like ?

Re: This indicator it has somehow corrupted should be cycles

Posted: Thu Feb 23, 2017 5:22 am
by mladen
m.baddeley wrote:This indicator worked so well and yesterday when i opened the platform the cycles and the dots all formed a line ...would you like to see what the correct indicator looks like ?
That code is just an empty functions declaration. That could have not done anything. Please post the indicator that you were using/testing. Otherwise I can not help