[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Separate MA for normal and after hours trading


  • Date: Thu, 25 Feb 2010 17:06:07 -0000
  • From: "Barry" <razzbarry@xxxxxxxxxxxx>
  • Subject: [amibroker] Separate MA for normal and after hours trading

PureBytes Links

Trading Reference Links

I am trying to create two moving averages, one for normal trading hours volume and the other for the off hours volume.  When futures are trading during the day the volume is much higher than off hours.  Using an MA of say 50 bars gives an incorrect look at the volume until 50 bars into the new time period.  However, if one were using hour or 15 minute charts the MA could span days. It would be clearer or more accurate if one could only use the applicable volume when calculating the MA for normal hours vs off hours trading.  

Has this been done in AFL?  Can it be done in AFL?  Is there an AFL function that can separate the day and night session data?  Can it be done in the context of AFL or would one have to use a DLL to build separate arrays that only contain values from the two time periods?

I have tried a number of methods in AFL but none work correctly.  Managing the arrays in AFL and trying to ignore spans of bars is blowing my mind.

Thanks,
Barry



------------------------------------

**** 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:
    amibroker-digest@xxxxxxxxxxxxxxx 
    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/