[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] "European Close" Ribbon



PureBytes Links

Trading Reference Links

Hello Group   
  I plot a ribbon for the European trading session.
  Because I am based in Perth this closes around 24h00 or midnight.
   
  Now that DST has ended in Europe I need to modify the code below to allow me to plot the ribbon beyond midnight. I have tried Ref() function inside the Param function but to no avail.
 
 _SECTION_BEGIN("Europe");
  Europeswitch = ParamToggle("Europe Time","Off|On",1);
  EuropeOpen = Param("Europe Open", 150000, 130000, 170000,010000);
  Europeclose = Param("Europe Close", 230000,220000, 240000, 010000);// how to plot the ribbon beyond midnight, ie to 010000 ??
  Europetime = TimeNum() > EuropeOpen AND TimeNum() < EuropeClose;
  EuropeColor = IIf( EuropeTime,ParamColor("Europe Time Zone",colorLightBlue), colorWhite);
  _SECTION_END();
 
 I have also tried 
   
  Europetime = Timenum() > EuropeOpen AND Timenum() < ref(EuropeClose,1);
   
  but still do not get it to work.
   
  What would be a better approach here?
   
  Regards
   
  ChrisB
  

 
---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited Try it today.
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.27/517 - Release Date: 11/3/2006