NexusFi: Find Your Edge


Home Menu

 





strategies on data2?


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one ShadowFox with 4 posts (1 thanks)
    2. looks_two Sinatra Fan with 4 posts (0 thanks)
    3. looks_3 edgefirst with 1 posts (0 thanks)
    4. looks_4 Captain135 with 1 posts (0 thanks)
    1. trending_up 15,487 views
    2. thumb_up 3 thanks given
    3. group 5 followers
    1. forum 10 posts
    2. attach_file 0 attachments




 
Search this Thread
  #11 (permalink)
 
ShadowFox's Avatar
 ShadowFox 
CO/USA
 
Experience: Intermediate
Platform: TradeStation, Multicharts
Trading: Stocks, Futures
Posts: 129 since Jun 2020
Thanks Given: 70
Thanks Received: 159


Sinatra Fan View Post
Fox,

This is the first I've heard or seen the reserve word "SetExitOnClose". I just looked it up. According to MC's Keyword Reference, it says...
Closes out the current position at the Close tick of the last bar of the trading session on an intra-day chart; generates the appropriate Market exit order depending on whether the position is long or short.

SetExitOnClose function uses the session closing time specified in the session settings for the symbol in the QuoteManager.
So I'm wondering... if I set the session closing time to be the time I want all open positions to be closed at 4:05 PM EST, according to MC, this function should in fact close out any open positions, right???

That is correct, as soon as the last bar closes in the session it will generate a close market order. It only works in reality with a custom session as by the time the final bar closes under a regular session, the market is closed.


Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on October 25, 2021


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts