+1 888 340 6572
MultiCharts Project Management
previous_open_issue.png
Go to the previous open issue
previous_issue.png
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
feature_request_small.png
Open Feature request MC-252

sell this bar on close

action_vote_minus_faded.png
7
Votes
action_vote_plus_faded.png
next_issue.png
Go to the next issue (open or closed)
next_open_issue.png
Go to the next open issue
Description

see this thread

http://www.multicharts.com/discussion/viewtopic.php?f=1&t=8414

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)
#0
user-offline.png  Daenerys (Guest)
Apr 11, 2011 - 11:41

http://www.multicharts.com/discussion/viewtopic.php?f=1&t=8414&sid=6ed88468912285bea53f79da603b6e10
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);

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

History
Issue basics
  • Type of issue
    Feature request
  • Category
    Usability
  • 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
    Normal
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