double Super_0_M5_0 = iCustom(NULL, PERIOD_M5, "SoeHoeCom_Super Signal v3d", 0, 0);//shift 0=bar sekarang
double Super_1_M5_0 = iCustom(NULL, PERIOD_M5, "SoeHoeCom_Super Signal v3d", 1, 0);
double Super_2_M5_0 = iCustom(NULL, PERIOD_M5, "SoeHoeCom_Super Signal v3d", 2, 0);
double Super_3_M5_0 = iCustom(NULL, PERIOD_M5, "SoeHoeCom_Super Signal v3d", 3, 0);
//Super_1_M5_0 == Super_3_M5_0 && -> buy 1=3 bar sekarang
//Super_0_M5_0 == Super_2_M5_0 && -> sell 0=2 bar sekarang
double Super_0_M5_1 = iCustom(NULL, PERIOD_M5, "SoeHoeCom_Super Signal v3d", 0, 1);//shift 1=bar sebelumnya
double Super_1_M5_1 = iCustom(NULL, PERIOD_M5, "SoeHoeCom_Super Signal v3d", 1, 1);
double Super_2_M5_1 = iCustom(NULL, PERIOD_M5, "SoeHoeCom_Super Signal v3d", 2, 1);
double Super_3_M5_1 = iCustom(NULL, PERIOD_M5, "SoeHoeCom_Super Signal v3d", 3, 1);
//Super_0_M5_1 == Super_3_M5_0 && ->tidak buy 0=3 bar sebelumnya
//Super_1_M5_1 == Super_2_M5_0 && ->tidak sell 1=2 bar sebelumnya
double Super_0_H1_0 = iCustom(NULL, PERIOD_H1, "SoeHoeCom_Super Signal v3d", 0, 0);//shift 0=bar sekarang
double Super_1_H1_0 = iCustom(NULL, PERIOD_H1, "SoeHoeCom_Super Signal v3d", 1, 0);
double Super_2_H1_0 = iCustom(NULL, PERIOD_H1, "SoeHoeCom_Super Signal v3d", 2, 0);
double Super_3_H1_0 = iCustom(NULL, PERIOD_H1, "SoeHoeCom_Super Signal v3d", 3, 0);
//Super_1_H1_0 == Super_3_H1_0 && -> buy 1=3 bar sekarang
//Super_0_H1_0 == Super_2_H1_0 && -> sell 0=2 bar sekarang
if (Super_0_M5_1 == Super_3_M5_0 && Super_1_M5_0 == Super_3_M5_0 && Super_1_H1_0 == Super_3_H1_0) myOrderType = "Buy";
if (Super_1_M5_1 == Super_2_M5_0 && Super_0_M5_0 == Super_2_M5_0 && Super_0_H1_0 == Super_2_H1_0) myOrderType = "Sell";
Moga membantu.