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 10,517 views
    2. thumb_up 3 thanks given
    3. group 5 followers
    1. forum 10 posts
    2. attach_file 0 attachments




 
Search this Thread

strategies on data2?

  #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: 157


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?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
What broker to use for trading palladium futures
Commodities
Strategy stop orders partially filled
EasyLanguage Programming
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
24 thanks
What is Markets Chat (markets.chat) real-time trading ro …
19 thanks
ApexTraderFunding.com experience and review
16 thanks
GFIs1 1 DAX trade per day journal
12 thanks
EG Indicators
11 thanks




Last Updated on October 25, 2021


© 2024 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 - Privacy Policy - Downloads - Top
no new posts