PureBytes Links
Trading Reference Links
|
I might be missing something in your question but if you want to know if a new bar has arrived, you could just check the value of barindex?
LastBar = LastValue(BarIndex());
prevLastBar = StaticVarGet("prevlastbar");
// Initialise
if (IsNull(prevLastBar)){
prevLastBar = LastBar;
StaticVarSet("prevlastbar", prevLastBar);
}
if (LastBar > prevLastBar){
_TRACE("New Bar");
StaticVarSet("prevlastbar", LastBar);
}
Regards,
Jules.
--- In amibroker@xxxxxxxxxxxxxxx, "scourt2000" <stevehite@xxx> wrote:
>
>
> Would it be of value to any other real-time traders here (besides me, of course) to have Amibroker automatically notify a script when the 1st tick of a new bar is coming into the script? This way, you don't have to know what kind of bar you're dealing with (minute-based, tick-based, volume-based) and try to do the calc yourself.
>
> I guess it would be something like a toggle trigger that you check in a simple IF condition and that toggle is only entered into on the 1st tick of each new bar.
>
> Just wanted to get an idea of the interest before going through the formal procedure of entering it into the Amibroker wish list area.
>
> Thanks.
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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/
|