Thread: Ask!
View Single Post
  #913 (permalink)  
Old 01-14-2008, 12:58 AM
ralph.ronnquist's Avatar
ralph.ronnquist ralph.ronnquist is offline
Senior Member
 
Join Date: Oct 2006
Posts: 297
ralph.ronnquist is on a distinguished road
Quote:
Originally Posted by MFM View Post
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( TimeHourTime[1] ) != TimeHourTime[0] ) );

Reply With Quote