NexusFi: Find Your Edge


Home Menu

 





Multi Timeframe - Call Functions with Data2


Discussion in TradeStation

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




 
Search this Thread
  #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?
Khamenei Vetoes Uranium Transfer as Peace Odds Surge to …
Prediction Markets & Event Contracts
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
ATFX Suspends Prop Trading Unit ATFunded -- Full Review …
Funded Trading Evaluation Firms
Second Night of US Strikes Crushes Iran June 15 to 3.6% …
Prediction Markets & Event Contracts
CFTC Rewrites the Rulebook -- Kalshi Cracks $1B Non-Spor …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

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 X 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,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

x6taifun,

you are welcome and thank you for the feedback.

Regards,

ABCTG


Follow me on X Reply With Quote




Last Updated on January 29, 2018


© 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