NexusFi: Find Your Edge


Home Menu

 





data series (timeframe) optimization


Discussion in TradeStation

Updated
      Top Posters
    1. looks_one GuppyDRV with 7 posts (0 thanks)
    2. looks_two ABCTG with 4 posts (1 thanks)
    3. looks_3 tpredictor with 2 posts (0 thanks)
    4. looks_4 balucang with 1 posts (0 thanks)
    1. trending_up 4,410 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 13 posts
    2. attach_file 0 attachments




 
Search this Thread

data series (timeframe) optimization

  #11 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

GuppyDRV,

legacy EasyLanguage orders will (and can) only be executed on Data1. If your data1 is a one minute chart, you'd get fills on the one minute data, too.

These links can provide a start (even though some of them are for Multicharts, the logic dealt with in these links applies to TS, too):

https://www.multicharts.com/trading-software/index.php/Variable



Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
Futures True Range Report
The Elite Circle
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
27 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #12 (permalink)
 GuppyDRV 
Seattle
 
Experience: Intermediate
Platform: MultiCharts 10
Broker: InteractiveBrokers, IQFeed
Trading: ES
Posts: 58 since Nov 2015
Thanks Given: 19
Thanks Received: 7

@ABCTG

Thanks for the heads up reply. I'll take a look tomorrow after morning trading, I'm Pacific time. Looks like some homework for me.

GuppyDRV

Reply With Quote
  #13 (permalink)
 GuppyDRV 
Seattle
 
Experience: Intermediate
Platform: MultiCharts 10
Broker: InteractiveBrokers, IQFeed
Trading: ES
Posts: 58 since Nov 2015
Thanks Given: 19
Thanks Received: 7


@ABCTG

O.K. so I think I get the idea of assigning the DataStream but am still not sure if I'm on the right track. This is my stab at it so far. It compiles but I'm still seeing trades all over the place. Data1 is still a I minute chart so I'm guessing I have not set the streams correctly. I took a look at the page with the code for FundValue (Function) etc.... but am still not completely certain of how. Once I get this ironed out I'm guessing that I can just sub an Input into the formula......... LTradeET (0, data(Input 1)) in order to have the ability of optimizing different time periods.

Inputs:
LongSide (10),
ShortSide (10);

Vars:
LTradeET (0, data3),
LTradeEX (0, data5),
STradeET (0, data3),
STradeEX (0, data5);

LTradeET = //Place logic here(close, LongSide) data3;
LTradeEX = //Place logic here(close, LongSide) data5;
STradeET = //Place logic here(close, ShortSide) data3;
STradeEX = //Place logic here(close, ShortSide) data5;

Thanks again and any help is always appreciated. I enjoy the learning process.

GuppyDRV

Reply With Quote
  #14 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

GuppyDRV,

you can't trade on any other stream as Data 1 with legacy EasyLanguage. This is outside of your control. What you can control is when you issue signals (at the end of a bar for a respective datastream for example), but the order will always be executed on Data 1.

I can't see the results you get, nor would the code snippet compile so I can't test things and only give you some pointers. From your snippet it appears you are using the Data 1 close in all your computations - not sure if this is what you intend and I can't say/see it if matters.

I would suggest that you start adding print statements to your code and that you turn it into an indicator to plot the values you compute. This will give you the chance to compare the values that your code comes up with versus the values that you expect (which you'd also compute and plot/print via an indicator).
Then you can investigate it further.

Regards,

ABCTG

Follow me on Twitter Reply With Quote




Last Updated on February 2, 2017


© 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