NexusFi: Find Your Edge


Home Menu

 





Insidebar Backtesting/Order Bollinger Bands/Bollinger %B


Discussion in TradeStation

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




 
Search this Thread

Insidebar Backtesting/Order Bollinger Bands/Bollinger %B

  #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?
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
77 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
37 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
17 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

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 Twitter 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,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

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 Twitter 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,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

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 Twitter 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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts