Karena kita semua dalam tahap belajar dan bukan untuk memeriksa pekerjaan

, maka silahkan coding di tulis dalam komen pada forum ini agar semua bisa belajar dari yang lain
Pesan Errornya apa? coba cek dibagian bawah setelah file di compile.
[HASHTAG]#property[/HASHTAG] indicator_separate_window
[HASHTAG]#property[/HASHTAG] indicator_buffers 2
[HASHTAG]#property[/HASHTAG] indicator_color1 Blue
[HASHTAG]#property[/HASHTAG] indicator_color2 Red
//Input Paramete
/*
PERIOD_M1 1
PERIOD_M5 5
PERIOD_M15 15
PERIOD_M30 30
PERIOD_H1 60
PERIOD_H4 240
PERIOD_D1 1440
PERIOD_W1 10080
PERIOD_MN1 43200
*/
extern int TimeFrame = 0;
extern int SSP = 7;
extern double Kmax = 50.6;
extern int CountBars = 300;
double G_ibuf_92[];
double G_ibuf_96[];
double G_ibuf_100[];
double G_ibuf_104[];
int init() {
IndicatorBuffers(4);
SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID, 5);
SetIndexBuffer(0, G_ibuf_100);
SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID, 5);
SetIndexBuffer(1, G_ibuf_104);
SetIndexBuffer(2, G_ibuf_92);
SetIndexBuffer(3, G_ibuf_96);
switch(TimeFrame)
{
case 1 : string TimeFrameStr="Period_M1";break;
case 5 : string TimeFrameStr="Period_M5";break;
case 15 : string TimeFrameStr="Period_M15";break;
case 30 : string TimeFrameStr="Period_M30";break;
case 60 : string TimeFrameStr="Period_H1";break;
case 240 : string TimeFrameStr="Period_H4";break;
case 1440 : string TimeFrameStr="Period_D1";break;
case 10080 : string TimeFrameStr="Period_W1";break;
case 43200 : string TimeFrameStr="Period_MN1";break;
default: TimeFrameStr="CurrentTimeFrame";
}
IndicatorShortName("SS2009_C MTF("+TimeFrameStr + SSP + ")");
return (0);
}
int deinit() {
return (0);
}
int start() {
datetime TimeArray[];
int i,limit,y=0,counted_bars=IndicatorCounted();
ArrayCopySeries(TimeArray,MODE_TIME,Symbol(),TimeFrame);
limit= Bars-1;
for(i=0,y=0;i<limit;i++)
{
if (Time
<TimeArray[y])y++;
double Ld_8;
double Ld_16;
double Ld_32;
if (CountBars >= Bars) CountBars = Bars;
SetIndexDrawBegin(0, Bars - CountBars + SSP);
SetIndexDrawBegin(1, Bars - CountBars + SSP);
int ind_counted_4 = IndicatorCounted();
if (Bars <= SSP + 1) return (0);
if (ind_counted_4 < SSP + 1) {
for (int Li_0 = 1; Li_0 <= SSP; Li_0++) G_ibuf_92[CountBars - Li_0] = 0.0;
for (Li_0 = 1; Li_0 <= SSP; Li_0++) G_ibuf_96[CountBars - Li_0] = 0.0;
}
for (Li_0 = CountBars - SSP; Li_0 >= 0; Li_0--) {
Ld_8 = High[iHighest(NULL, TimeFrame, MODE_HIGH, SSP, Li_0 - SSP + 1)];
Ld_16 = Low[iLowest(NULL, TimeFrame, MODE_LOW, SSP, Li_0 - SSP + 1)];
Ld_32 = Ld_8 - (Ld_8 - Ld_16) * Kmax / 100.0;
G_ibuf_92[Li_0 - SSP + 6] = Ld_32;
G_ibuf_96[Li_0 - SSP - 1] = Ld_32;
}
for (int Li_40 = CountBars - SSP; Li_40 >= 0; Li_40--) {
if (G_ibuf_92[Li_40] > G_ibuf_96[Li_40]) {
G_ibuf_100[Li_40] = 1;
G_ibuf_104[Li_40] = 0;
} else {
G_ibuf_100[Li_40] = 0;
G_ibuf_104[Li_40] = 1;
}
}
}
return (0);
}
Pesan error nya saya sertakan dalam foto master. Terimakasih atas tanggapannya