View Single Post
  #15 (permalink)  
Old 11-23-2006, 02:45 PM
bluto's Avatar
bluto bluto is offline
Senior Member
 
Join Date: Sep 2006
Posts: 633
bluto is an unknown quantity at this point
Quote:
Originally Posted by Wackena
In reviewing the Turbo_JEVL Indicator code, another question. The indicator has this code.

Code:
if ((Symbol()=="USDJPYm") || (Symbol()=="EURJPYm") || (Symbol()=="JPGBPYm"))
        {
         series = ((High[shift]+Low[shift]+Close[shift])/3);
        } else {
         series = ((High[shift]*100 + Low[shift]*100 + Close[shift]*100)/3);
        }
Should the code be this for all JPY pairs and both Standard and Mini/Micro accounts. And there is a typo above, "JPGBPYm" should be "GBPJPYm"

Code:
if ((Symbol()=="USDJPY") || (Symbol()=="USDJPYm") || (Symbol()=="EURJPY")  || (Symbol()=="EURJPYm") || (Symbol()=="GBPJPY")  || (Symbol()=="GBPJPYm") || (Symbol()=="CHFJPY") || (Symbol()=="CHFJPYm") || (Symbol()=="NZDJPY") || (Symbol()=="NZDJPYm") )
        {
         series = ((High[shift]+Low[shift]+Close[shift])/3);
        } else {
         series = ((High[shift]*100 + Low[shift]*100 + Close[shift]*100)/3);
        }
Wackena
Well aren't you just the little code scrutinizer!! LOL.

Actually, that code really makes no difference for the purposes of the EA call. That was a small mod I stuck in there to make the bars on the histogram larger because due to time scaling, they're hard to read on larger TF's. The underlying slope values are unaffected which is what the EA depends upon. In any event, attached is a modified version of the indicator to take into account either mini or standard accounts.
Attached Files
File Type: mq4 Turbo_JVEL.mq4 (11.7 KB, 684 views)
Reply With Quote