Quote:
Originally Posted by Michel
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_D1, 0); double Min = iLow(Symbol(), PERIOD_D1, 0); 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