Just change your Title code to:
Title = WriteIf(Lastvalue(PDI(range) > MDI(range)),"BULLISH","BEARISH");
This will override your bar selection and will always give you the last value for the formula.
Best regards,
herman
For tips on developing Real-Time Auto-Trading systems visit:
http://www.amibroker.org/userkb/
Monday, October 15, 2007, 8:08:23 AM, you wrote:
> Hi Herman -
> I have an indicator pane with PDI and MDI plotted. I also have a
> custom pane title which says Bullish or Bearish depending on the DMI
> direction:
> Title = WriteIf(PDI(range) > MDI(range),"BULLISH","BEARISH");
> On a realtime chart, keeping the selector bar at the far RHS allows
> the pane title to be updated with the most recent DMI status of the
> most recent candle - so if the indicator changes from BEARISH to
> BULLISH, I buy.
> In short, I would like the title to always reflect the most recent
> candle.
> AC
> Please note that this group is for discussion between users only.
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
> <*> To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
> <*> Your email settings:
> Individual Email | Traditional
> <*> To change settings online go to:
> http://groups.yahoo.com/group/amibroker/join
> (Yahoo! ID required)
> <*> To change settings via email:
> mailto:amibroker-digest@xxxxxxxxxxxxxxx
> mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
> <*> To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <*> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
__._,_.___
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
__,_._,___
|