NexusFi: Find Your Edge


Home Menu

 





Insidebar Backtesting/Order Bollinger Bands/Bollinger %B


Discussion in TradeStation

Updated
    1. trending_up 2,856 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 6 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
sixhundread
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


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
TradingView Deploys AI to Monitor SEC Filings in Real Ti …
TradingView
MyForexFunds Begins Returning Frozen Funds After CFTC Ca …
Funded Trading Evaluation Firms
Election Sunday Resolves: Peru Heads to Runoff at 42pct, …
Prediction Markets & Event Contracts
Irans Dual Probability: Guns Quiet at 99.95% While Forma …
Prediction Markets & Event Contracts
MegaETH Proves the Crowd Right: Prediction Markets Calle …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

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 View Post
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


Follow me on X Reply With Quote
  #3 (permalink)
sixhundread
Vienna and Austria
 
Posts: 36 since Jul 2021
Thanks Given: 21
Thanks Received: 7



ABCTG View Post
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;


Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

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 View Post
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;


Follow me on X Reply With Quote
  #5 (permalink)
sixhundread
Vienna and Austria
 
Posts: 36 since Jul 2021
Thanks Given: 21
Thanks Received: 7


ABCTG View Post
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


Reply With Quote
  #6 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

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 View Post


Follow me on X Reply With Quote
  #7 (permalink)
sixhundread
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 View Post
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


Reply With Quote




Last Updated on September 16, 2021


© 2026 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 - Downloads - Top
no new posts