NexusFi: Find Your Edge


Home Menu

 





Multi Timeframe - Call Functions with Data2


Discussion in TradeStation

Updated
    1. trending_up 3,512 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?
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
Friday Update: Markets Now Pricing Fed Rate HIKES as Sta …
Traders Hideout
Thanks Mike. Godspeed.
The Elite Circle
El Clasico Draws $9.2M in Prediction Market Action -- Bi …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

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,642

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