Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
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 -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Updated September 16, 2021
trending_up
2,239 views
thumb_up
0 thanks given
group
2 followers
forum
6 posts
attach_file
1 attachments
September 16th, 2021, 04:00 AM
Vienna and Austria
Posts: 36 since Jul 2021
Thanks Given: 21
Thanks Received: 7
Hey guys!
is it possible for tradestation to execute an order as the price cuts one of the bollinger bands, or if Bollinger %B is under 0 or over 1?
It need to be an insidebar order, because Bollinger %B will be under/over 1/0 if the candle closes inside of the bollinger band.
And I want the order to be excecuted out immediately ans outside of the band, not at the next open.
Thank you for your answers!
600
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
September 16th, 2021, 05:40 AM
Posts: 2,439 since Apr 2013
Thanks Given: 486
Thanks Received: 1,631
sixhundread,
yes, Tradestation is capable of executing orders intrabar when you set the IntrabarOrderGeneration = true in the code or enable it in the strategy settings.
If this is enabled "next bar" statements in orders will be evaluated as "next tick".
Regards,
ABCTG
sixhundread
Hey guys!
is it possible for tradestation to execute an order as the price cuts one of the bollinger bands, or if Bollinger %B is under 0 or over 1?
It need to be an insidebar order, because Bollinger %B will be under/over 1/0 if the candle closes inside of the bollinger band.
And I want the order to be excecuted out immediately ans outside of the band, not at the next open.
Thank you for your answers!
600
September 16th, 2021, 07:36 AM
Vienna and Austria
Posts: 36 since Jul 2021
Thanks Given: 21
Thanks Received: 7
ABCTG
sixhundread,
yes, Tradestation is capable of executing orders intrabar when you set the IntrabarOrderGeneration = true in the code or enable it in the strategy settings.
If this is enabled "next bar" statements in orders will be evaluated as "next tick".
Regards,
ABCTG
thank you!
can u explain why it gives me an error verifying the system?
Intrabarordergeneration = true
Inputs: BandLen(20);
Vars: UpBand(0), LoBand(0), MidBand(0);
UpBand = Average(High, BandLen) + 2 * StdDev(High, BandLen);
LoBand = Average(Low, BandLen) - 2 * StdDev(Low, Bandlen);
MidBAnd = average(Close, BandLen);
If Marketposition <= 0 and close < LoBand Then
buy at Market;
if Marketposition = 1 and Close > MidBand Then
sell at Market;
if marketposition >= 0 and close > UpBand Then
sell short at market;
if Marketposition =-1 and close < MidBand Then
buy to cover at market;
September 16th, 2021, 09:20 AM
Posts: 2,439 since Apr 2013
Thanks Given: 486
Thanks Received: 1,631
sixhundread,
it might be helpful if you could include the exact error message. Based on the code you posted you are at least missing brackets around the Intrabarordergeneration attribute.
Regards,
ABCTG
sixhundread
thank you!
can u explain why it gives me an error verifying the system?
Intrabarordergeneration = true
Inputs: BandLen(20);
Vars: UpBand(0), LoBand(0), MidBand(0);
UpBand = Average(High, BandLen) + 2 * StdDev(High, BandLen);
LoBand = Average(Low, BandLen) - 2 * StdDev(Low, Bandlen);
MidBAnd = average(Close, BandLen);
If Marketposition <= 0 and close < LoBand Then
buy at Market;
if Marketposition = 1 and Close > MidBand Then
sell at Market;
if marketposition >= 0 and close > UpBand Then
sell short at market;
if Marketposition =-1 and close < MidBand Then
buy to cover at market;
September 16th, 2021, 09:48 AM
Vienna and Austria
Posts: 36 since Jul 2021
Thanks Given: 21
Thanks Received: 7
ABCTG
sixhundread,
it might be helpful if you could include the exact error message. Based on the code you posted you are at least missing brackets around the Intrabarordergeneration attribute.
Regards,
ABCTG
September 16th, 2021, 09:53 AM
Posts: 2,439 since Apr 2013
Thanks Given: 486
Thanks Received: 1,631
sixhundread,
take a look at the online help file for the proper order syntax by highlighting the "Buy" command and pressing F1. This should steer you in the right direction.
Regards,
ABCTG
sixhundread
September 16th, 2021, 10:17 AM
Vienna and Austria
Posts: 36 since Jul 2021
Thanks Given: 21
Thanks Received: 7
it runs thank you! do you know how i aktivate the cumulation of orders?
ABCTG
sixhundread,
take a look at the online help file for the proper order syntax by highlighting the "Buy" command and pressing F1. This should steer you in the right direction.
Regards,
ABCTG
Last Updated on September 16, 2021