Chart data

 

Hello,


Already tried to search for an answer but could find it. I've created a custom indicator with serval moving averages. The first time I open the chart from marketwatch it looks like there is no data. De second time I open it it works as expected.


Somebody who can help me out with this?


Kind regards,

Wotikar

 
Wotikar :


No one can help you without the source code.

 
Vladimir Karputov:

No one can help you without the source code.

int OnCalculate(const int rates_total,
                const int prev_calculated,
                const int begin,
                const double &price[])
  {

   if(rates_total<InpMAPeriod-1+begin)
      return(0);// not enough bars for calculation

   CalculateLWMA4(rates_total,prev_calculated,begin,price);
   CalculateLWMA64(rates_total,prev_calculated,begin, price);
}
 
Wotikar :

Your code won't compile. Your code contains many errors.