[amibroker] static chart vs live feed vs bar replay

 

Hello

I want to have an automatic way of determining if the script runs on a historical static chart, or I have live data feed or if I am simulating through bar replay.

One function to use is GetPlaybackDateTime().

This will tell me if it is BAR Replay or not.  But how can I know if I have live feed or static chart? 

Maybe I could use something like GetRTData(''Ask').  If it returns any value, it means I am in LIVE mode.  Otherwise I am either in Static chart or Bar replay?

__._,_.___

Posted by: "B. Pitatzidis" <bobptz@gmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
**** 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/


.

__,_._,___

Related Posts


EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng
:lv