NexusFi: Find Your Edge


Home Menu

 





Multi Timeframe - Call Functions with Data2


Discussion in TradeStation

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




 
Search this Thread

Multi Timeframe - Call Functions with Data2

  #1 (permalink)
x6taifun
BW / Germany
 
Posts: 7 since Jan 2018
Thanks Given: 4
Thanks Received: 1

Hi,

I am about to code a strategy which operates in the Daily and the 4h timeframe.

- Data1 is the 4h Timeframe (This is chosen as the main Datastream (data1) for the Strategy)
- Data2 is the Daily Timeframe

If I now call the function C_Doji( percentage ) it is applied to the 4h timeframe by default. I'd like it to be applied to the Daily Timeframe instead. Is that possible ?

For Moving Averages i know it is, because one could simply use Average( close of data2, length ), does this somehow also work if there is no param given as in my scenario ?

Thanks a lot

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
About a successful futures trader who didnt know anythin …
Psychology and Money Management
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

x6taifun,

yes, this possible. When working with multiple data streams you need to tie variables to the specific data streams
and also make sure to call the function on the desired data stream.
You can find a good example for the ADX here: https://community.tradestation.com/discussions/Topic_Archive.aspx?Topic_ID=28896

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #3 (permalink)
x6taifun
BW / Germany
 
Posts: 7 since Jan 2018
Thanks Given: 4
Thanks Received: 1


That did the job, thank you!

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

x6taifun,

you are welcome and thank you for the feedback.

Regards,

ABCTG

Follow me on Twitter Reply With Quote




Last Updated on January 29, 2018


© 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