Hi
Anyone seen this? If you download the indicator pack there's the code inside it, can anyone get it to work, I tried with no luck..Maybe I'm doing something wrong?
Find attached the complete pack, it's WINRAR zipped for ease :O)
Use original mathematical methods in the trade on FOREX
Here's the code:
//+------------------------------------------------------------------+
//| Copyright © 2007, E WavesPRO

//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, Lemon"
#property link "exoticwaves@yandex.ru"
#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 Blue
//---- input parameters
extern int Bar=1900;
extern int LastBar=0;
extern int cnttik = 3 ;
double ExtMapBuffer1[];
// count tick
int tick = 0 ;
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
string sName="",ss1=" ",ss2=" ";
int file=0, NumBar=0, shift=0;
int Ye=0,Mo=0,Da=0,Ho=0,Mi=0,Se=0,Ti=0;
int counted_bars=IndicatorCounted();
//---- check for possible errors
if (counted_bars<0) return(-1);
//--count tick
tick++;
if ( tick <= cnttik )
{
Print(" Tick = ", tick);
Comment( tick ,"/", cnttik ," | " , Bars);
// !
return(0) ;
}
else
{
tick = 0 ;
}
//----
if ( 1 == 1)
{
sName=Symbol()+Period()+".csv";
FileDelete(sName);
file =FileOpen(sName,FILE_CSV|FILE_WRITE,",");
shift=Bar+LastBar-1;
while(shift>=0)
{
Ti=Time[shift];
Ye=TimeYear(Ti);
Mo=TimeMonth(Ti);
Da=TimeDay(Ti);
Ho=TimeHour(Ti);
Mi=TimeMinute(Ti);
if ( Ho == 0 && Mi == 0 ) Mi = 1 ;
Se=TimeSeconds(Ti);
ss1=Ye;
if (Mo<10) ss1=ss1+"0"+Mo; else ss1=ss1+Mo;
if (Da<10) ss1=ss1+"0"+Da; else ss1=ss1+Da;
if (Ho<10) ss2="0"+Ho; else ss2=Ho;
if (Mi<10) ss2=ss2+"0"+Mi; else ss2=ss2+Mi;
FileWrite(file,ss1,ss2,Open[shift],High[shift],Low[shift],Close[shift],Volume[shift]);
shift--;
}
Comment( " Save of "+ss1+" "+ss2+" is ok" , " === " , Bars);
NumBar=counted_bars;
FileClose(file);
Print(" Ready " , Bars);
}
//----
return(0);
}