/*
   Generated by EX4-TO-MQ4 decompiler V4.0.220.2c []
   Website: http://purebeam.biz
   E-mail : purebeam@gmail.com
*/
#property copyright "Copyright © 2008, TradeWays"
#property link      "http://www.tradeways.org"

#property indicator_chart_window

extern bool SoundON = FALSE;
bool gi_unused_80 = FALSE;
bool gi_unused_84 = FALSE;

int init() {
   return (0);
}

int deinit() {
   Comment("");
   return (0);
}

void start() 
{
   /*
   if (TimeCurrent() > StrToTime("2009.04.20")) {
      Alert("New version available! Download it using re-activated link from Plimus");
      return;
   }
   */
   int li_unused_0 = 0;
   double l_icci_4 = iCCI(NULL, 0, 39, PRICE_TYPICAL, 0);
   double l_icci_12 = iCCI(NULL, 0, 39, PRICE_TYPICAL, 1);
   double l_icci_20 = iCCI(NULL, PERIOD_H1, 19, PRICE_TYPICAL, 0);
   double l_icci_28 = iCCI(NULL, PERIOD_H1, 19, PRICE_TYPICAL, 1);
   double l_icci_36 = iCCI(NULL, 0, 39, PRICE_TYPICAL, 0);
   double l_icci_44 = iCCI(NULL, PERIOD_H1, 19, PRICE_TYPICAL, 0);
   string ls_52 = " CI:                         ";
   string ls_60 = "Unknown  ";
   if (l_icci_36 > 0.0 && l_icci_20 > 0.0) ls_60 = "UP    ";
   if (l_icci_36 < 0.0 && l_icci_44 < 0.0) ls_60 = "DOWN    ";
   ls_52 = ls_52 + ls_60;
   double l_iwpr_68 = iWPR(NULL, 0, 38, 0);
   double l_iwpr_76 = iWPR(NULL, PERIOD_H1, 25, 0);
   string ls_84 = " WPRSTO:               ";
   string ls_92 = "Unknown  ";
   if (l_iwpr_68 < -50.0 && l_iwpr_76 < -50.0) ls_92 = "DOWN    ";
   if (l_iwpr_68 > -50.0 && l_iwpr_76 > -50.0) ls_92 = "UP    ";
   ls_84 = ls_84 + ls_92;
   double l_iforce_100 = iForce(NULL, 0, 33, MODE_EMA, PRICE_TYPICAL, 0);
   string ls_108 = " Velosity:                 ";
   string ls_116 = "Unknown  ";
   if (l_iforce_100 > 0.0) ls_116 = "UP    ";
   if (l_iforce_100 < 0.0) ls_116 = "DOWN    ";
   ls_108 = ls_108 + ls_116;
   double l_icustom_124 = iCustom(NULL, 0, "#Pallada_VQI", 30, 6, 1, 1, 2, 1, 1, 65280, 255, 300, 0, 0, 0, 0, 0, 2, 0);
   double l_icustom_132 = iCustom(NULL, 0, "#Pallada_VQI", 30, 6, 1, 1, 2, 1, 1, 65280, 255, 300, 0, 0, 0, 0, 0, 2, 1);
   string ls_140 = " VQI:                      ";
   string ls_148 = "Unknown ";
   if (l_icustom_124 > l_icustom_132) ls_148 = "UP";
   if (l_icustom_124 < l_icustom_132) ls_148 = "DOWN";
   ls_140 = ls_140 + ls_148;
   double ld_156 = Time[4] - Time[5] - MathMod(TimeCurrent(), Time[4] - Time[5]);
   double ld_164 = ld_156 / 60.0;
   ld_156 = 60.0 * (ld_164 - MathFloor(ld_164));
   ld_164 = MathFloor(ld_164);
   double l_iclose_172 = iClose(NULL, 0, 1);
   double l_iclose_180 = iClose(NULL, 0, 0);
   double l_iclose_188 = iClose(NULL, PERIOD_D1, 1);
   double l_iclose_196 = iClose(NULL, PERIOD_D1, 0);
   double ld_204 = 100.0 * ((l_iclose_180 - l_iclose_172) / l_iclose_172);
   double ld_212 = 100.0 * ((l_iclose_196 - l_iclose_188) / l_iclose_188);
   string l_dbl2str_220 = DoubleToStr(ld_204, 3);
   string l_dbl2str_228 = DoubleToStr(ld_212, 3);
   double l_spread_236 = MarketInfo(Symbol(), MODE_SPREAD);
   double l_swaplong_244 = MarketInfo(Symbol(), MODE_SWAPLONG);
   double l_swapshort_252 = MarketInfo(Symbol(), MODE_SWAPSHORT);
   string l_dbl2str_260 = DoubleToStr(l_spread_236, 0);
   string l_dbl2str_268 = DoubleToStr(l_swaplong_244, 2);
   string l_dbl2str_276 = DoubleToStr(l_swapshort_252, 2);
   double l_ihigh_284 = iHigh(NULL, PERIOD_D1, 0);
   double l_ilow_292 = iLow(NULL, PERIOD_D1, 0);
   double ld_300 = l_ihigh_284 - l_ilow_292;
   string l_dbl2str_308 = DoubleToStr(ld_300, 4);
   Comment("\n" 
      + " Time for next bar: ", ld_164, " min ", ld_156, " sec" 
      + "\n" 
      + " Spread: ", l_dbl2str_260 
      + "\n");
}