Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I am not sure if I correctly understand your request, but you could use a limit order and specify a limit price. However this doesn't guarantee you a fill of course.
you can't change the value for this reserved word, it only returns a value i.e. the EntryPrice of your current position.
By the way, you can show your appreciation for pots on NexusFi by clicking the "Thanks" button next to it.
ONBlimitvalue=High+4 points; {Replace with your own point values}
ONBstopvalue=High+2 points; {Replace with your own point values}
ONBlimit= Open of next Bar >= ONBlimitvalue;
ONBstop= Open of next Bar<= ONBstopvlaue;
ONBlimit2= Open of next Bar <= ONBlimitvalue;
ONBstop2= Open of next Bar>= ONBstopvlaue;
If ONBlimit then buy next bar at ONBlimitvalue limit
else If ONBstop then buy next bar at ONBstopvlaue stop
else if ONBlimit2 and ONBstop2 then buy next bar at market;
***********************************************
You can always reference a price point as a variable and add or subtract from it for a limit or stop order. It's just a matter of which side you are trying to be on, and, if you're trying to submit the order in advance of a bar close referencing the next bar close or price level reach, or at bar close with market level reached.
My point is i want to submit stop limit order instead of stop order. As I understand Tradestation 2000i only can submit stop or limit order. In order to submit stop limit order, we need to write a simple coding.
My other intention is, when i put stop order i always want to be certain point triggered a head. Ex: If my order is Buy Stop at 1500, I always need my strategy triggered my order at 1498 ( 2 points a head ) but triggered price need to be set at 1500. This is to protect some slippage issue when i proceed the back test.
if I recall correctly TS 2000i doesn't have intrabar order generation, so you could only issue your limit order at the end of the bar that triggered your "stop condition". I am not sure how many setups you'd miss that way, simply because price already moved away from you. As you work with 2000i, you might want to take a look at Multicharts, as it will feel quite familiar plus gives you stop limit orders natively.