Thread: Ask!
View Single Post
  #1079 (permalink)  
Old 05-03-2008, 07:45 AM
yyc196's Avatar
yyc196 yyc196 is offline
Senior Member
 
Join Date: Dec 2006
Location: Earth
Posts: 197
yyc196 is on a distinguished road
Quote:
Originally Posted by Michel View Post
If needed, check first that you are later than 8 am:
PHP Code:
if(Hour() < 8) return; 
Then, find the max and min of the current day. (if its ok for you, its easier than from 8 am):
PHP Code:
double Max iHigh(Symbol(), PERIOD_D10);
double Min iLow(Symbol(), PERIOD_D10);
int Range = (Max Min) / Point;
if(
Range 90) return;
... 
Hi Michel:


I refer to your code:

if(Hour() < 8) return;

I modified the code as follow:

if(Hour()>12) hr_x=1;
.....
.....
.....
.....
if(hr_x==1) signal=50;

But I had all the histogram bar 50!!!!

If you look at the chart below, it seem that the "Hour" command does not recognise it!!!
FYI, I am using 30 min chart, will there be a different. I tried to switch to 1Hour chart but the problem still exist!
I also tried "if(Hour() < 8) return; " but all the bar gone!!!
I tried many things but still cannot get it works.

Possible to advise me again? Thanks
Attached Images
File Type: jpg untitled.JPG (114.4 KB, 86 views)

Last edited by yyc196; 05-03-2008 at 09:59 AM.
Reply With Quote