NexusFi: Find Your Edge


Home Menu

 





strategies on data2?


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Sinatra Fan with 4 posts (0 thanks)
    2. looks_two ShadowFox with 4 posts (1 thanks)
    3. looks_3 ABCTG with 1 posts (2 thanks)
    4. looks_4 edgefirst with 1 posts (0 thanks)
    1. trending_up 15,298 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:

Can you help answer these questions
from other members on NexusFi?
The Backwardation Signal: How the CL Futures Curve Tells …
Commodities
Double Deadlock: Rubio Calls Hormuz Tolls "Unfeasib …
Traders Hideout
CFTC Advances Prediction Markets Regulation -- Chairman …
Prediction Markets & Event Contracts
GDP Day: The First Economic Reckoning -- Pahlavi at 6.55 …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Trying to learn Volume and price action correlation
5 thanks




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