Benji Posted February 8, 2023 Report Share Posted February 8, 2023 (edited) I noticed that when using TD Ameritrade as the datasource in the websocket API, the current day's historical candles display after-hours data. Is there a way to disable this and use the regular market close? I know the actual TD Ameritrade API has a "needExtendedHoursData" field which is unfortunately enabled by default. Any way to toggle this in MT in settings or the API? Thanks. Edited February 8, 2023 by Benji typo Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted February 9, 2023 Report Share Posted February 9, 2023 by default MT is set for Real-time updates for historical data, in which case the last candle is built from intraday OPEN, HIGH, LOW and last data, (as shown in portfolio, NOT chart related). API gets the same thing. If you turn off the real-time stuff, then you will get just what is returned from Hist Backfill.. SETTINGS / CHARTS / GENERAL screen . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.