Quote:
Originally Posted by MFM
Hi there,
I created my first indicator and really happy about it. What I have is a 2map (1hour and daily) for trading only with the major trend.
On the 1hour chart it works perfectly, but if I lower the TF the signals change....can anybody tell me how to make the signal appear on the close of the 1hour candle even on a lower TF chart ? Is that possible ?
|
As usual, you can only discover bar opening, i.e. that it is the first tick on a new bar, and then you can use a predicate like the following:
PHP Code:
bool atHourBarOpen()
{
if ( TimeCurrent() != Time[0] )
return( false ); // Not the first tick of the bar
return( TimeHour( Time[1] ) != TimeHour( Time[0] ) );
}