NexusFi: Find Your Edge


Home Menu

 





Max Bars Back Changing Results Drastically


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one kevinkdog with 2 posts (1 thanks)
    2. looks_two djvie11 with 2 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 ABCTG with 1 posts (1 thanks)
    1. trending_up 3,754 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

Max Bars Back Changing Results Drastically

  #1 (permalink)
djvie11
Chicago, IL
 
Posts: 52 since Jul 2013
Thanks Given: 29
Thanks Received: 1

So this is bugging the heck out of me!

I'm running a strategy with 3 data streams. It only references the previous bar of all 3 data streams with a stochastic (normal settings on the stochastic; 14,3,3).

The thing that's getting me is the "max bars back setting." All I need is 14. But, if I go higher the results get better. This past week I traded live alongside my paper account with the same strategy - but one had a max bars back setting of 105 & the other, 200. The one with the 200 setting doubled the profit of the other. Same strategy though!

I would understand if it was an average of sorts or the strategy indeed called upon a bar deep in the past, but it does not. It's also worth mentioning that I have IntraBarOrderGeneration enabled.

I would very much appreciate any insight you guys might have on this!

thanks!
Brandon

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
 
  #3 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360


Are you using an exponential average? That could certainly cause it.

Multiple datastreams can be a challenge to get working correctly - are you sure everything is declared and aliased properly?

IntraBarOrderGeneration is another advanced feature that is easy to get squirrelly results with.

Unless you have been working with Tradestation for at least a few years, I'd personally recommend avoiding both of these features. Heck, I've been using Tradestation for 10 years, and I still never use IBOG.

You can always post your code here - take out secret stuff - and someone can help you.

Follow me on Twitter Reply With Quote
  #4 (permalink)
djvie11
Chicago, IL
 
Posts: 52 since Jul 2013
Thanks Given: 29
Thanks Received: 1


kevinkdog View Post
Are you using an exponential average? That could certainly cause it.

Multiple datastreams can be a challenge to get working correctly - are you sure everything is declared and aliased properly?

IntraBarOrderGeneration is another advanced feature that is easy to get squirrelly results with.

Unless you have been working with Tradestation for at least a few years, I'd personally recommend avoiding both of these features. Heck, I've been using Tradestation for 10 years, and I still never use IBOG.

You can always post your code here - take out secret stuff - and someone can help you.

Hey Kevin, thanks for the reply!

No exponential averages, just a simple stochastic and references to highs/lows of previous bars. And this is with Multicharts as Tradestation can't handle IBOG with multiple data streams ... but in the end they both work basically the same with EasyLanguage.

I would love to work with a single data stream but there's always small nuances that get lost in translation when converting a multiple data stream strategy into a single data one.

Reply With Quote
  #5 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360


djvie11 View Post
Hey Kevin, thanks for the reply!

No exponential averages, just a simple stochastic and references to highs/lows of previous bars. And this is with Multicharts as Tradestation can't handle IBOG with multiple data streams ... but in the end they both work basically the same with EasyLanguage.

I would love to work with a single data stream but there's always small nuances that get lost in translation when converting a multiple data stream strategy into a single data one.

Make sure the stochastics does not reference a series type (infinitely backward looking) function. You can print out values with a single datastream with IBOG off, and at least eliminate that as a cause.

Follow me on Twitter Reply With Quote
Thanked by:
  #6 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

djvie11,

there is a possibility that the Stochastic is using exponential smoothing in case you are using SmothingType 2 for any of the build in Stochastics.

Assuming you are past the MaxBars back setting on the current bar for both strategies and they still behave differently, I'd assume that there are values different in them and there might be something in your code that is somehow affected by the max bars back settings. You will most likely have to print your values and compare them, if you want to track the issue down.

Regards,
ABCTG

Follow me on Twitter Reply With Quote
Thanked by:




Last Updated on December 12, 2015


© 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