MultiCharts 12 is here with the Super Hot Summer Offer! Take advantage of it!
+1 888 340 6572
MultiCharts Project Management
Go to the previous open issue
Go to the previous issue (open or closed)
Please log in to bookmark issues
Open Feature request MC-252

sell this bar on close

Go to the next issue (open or closed)
Go to the next open issue

see this thread

According to TJ "this bar on close" is for backtesting only.
My orders using this feature in the code always put in a marketorder 9 sec. to 4 min AFTER the market is closed and of course all of the orders are rejected.
It would be nice if you could enter a time in the property that exits position a certain time before close. eg. 5min or 30 sec before close or what time in min or seconds is entered in the strategy property prior close whenever the code "this bar on close" is used for live trading.

Steps to reproduce this issue

just use the code "sell this bar on close" on a daychart in live trading an see when it closes the position.

Comments (1)
user-offline.png  mady (Guest)
Apr 11, 2011 - 04:41
just as TJ wrote in the forum
Quote from TJ:
It would be good to enhance the keyword with the following options:
SetExitOnClose( SessionNumber, PreExitTime);

SessionNumber is the session that you want to exit,
PreExitTime is the time offset you want to post your exit order.

Issue basics
  • Type of issue
    Feature request
  • Category
  • Targeted for
    Not determined
  • Status
    Under Review
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (3)
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
  • Resolution
    Not determined
  • Severity
Attachments (0)
There is nothing attached to this issue
Commits (0)
There are no code checkins for this issue
Duplicate issues (0)
This issue does not have any duplicates