Multiple time frames in one indicator - EasyLanguage Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming

Multiple time frames in one indicator
Started:October 1st, 2016 (03:05 PM) by Donovan2580 Views / Replies:63 / 2
Last Reply:October 4th, 2016 (05:27 AM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Multiple time frames in one indicator

Old October 1st, 2016, 03:05 PM   #1 (permalink)
Trading Apprentice
Port St. Lucie, FL
Futures Experience: Advanced
Platform: Tradestation 9.5
Favorite Futures: Emini
Posts: 3 since Jul 2016
Thanks: 1 given, 1 received

Multiple time frames in one indicator

Hello everyone,

I am hoping someone could help me out.

Is there a way to display multiple time frames of an indicator on 1 chart, with 1 indicator?

IE. I would like the indicator to plot the results of a 500 tick bar, 1500 tick bar & 4500 tick bar chart. Same symbol of course.

What I am hoping for is that the indicator would plot 3 lines (one for each time-frame) if I were viewing a 500 tick bar chart for example. I am trying to do this on the Emini.

Any suggestions would be greatly appreciated.

Thanks in advance,


Below is the indicator & the associated function.


Inputs: TCLen(10), MA1(23), MA2(50);


Inputs: TCLen(NumericSimple), MA1(NumericSimple), MA2(NumericSimple);
Variables: XMac(0), Frac1(0), PF(0), PFF(0), Frac2(0), Factor(.5);
{Calculate a MACD Line}
XMac = MACD(c,MA1,MA2) ;
{1st Stochastic: Calculate Stochastic of a MACD}
Value1 = Lowest(XMac, TCLen);
Value2 = Highest(XMac, TCLen) - Value1;
{%FastK of MACD}
Frac1 = IFF(Value2 > 0, ((XMac - Value1) / Value2) * 100, Frac1[1]);
{Smoothed calculation for %FastD of MACD}
PF = IFF(CurrentBar<=1, Frac1, PF[1] + (Factor * (Frac1 - PF[1])));
{2nd Stochastic: Calculate Stochastic of Smoothed Percent FastD, �PF�, above.}
Value3 = Lowest(PF, TCLen);
Value4 = Highest(PF, TCLen) - Value3;
{%FastK of PF}
Frac2 = IFF(Value4 > 0, ((PF - Value3) / Value4) * 100, Frac2[1]);
{Smoothed calculation for %FastD of PF}
PFF = IFF(CurrentBar<=1, Frac2, PFF[1] + (Factor * (Frac2 - PFF[1])));
{The STC function is the %FastD of PF}
_SchaffTC= PFF;

Reply With Quote

Old October 1st, 2016, 03:05 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Old October 4th, 2016, 05:27 AM   #3 (permalink)
Hamburg Germany
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
Posts: 1,103 since Apr 2013
Thanks: 186 given, 622 received


you could accomplish what you have in mind using price series providers that load the additional datastreams, but this will most require modifications to your indicator code, too (besides the additional code for the providers).



Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming > Multiple time frames in one indicator

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Ninja indicator that highlights multiple time frames at once jkirwin NinjaTrader 2 July 23rd, 2016 10:29 AM
Multiple Time Frames jkinneberg NinjaTrader Programming 17 March 21st, 2015 07:42 PM
Trading using multiple time frames in Multicharts bondstrader MultiCharts 5 September 26th, 2014 08:22 AM
multiple time frames shanemcdonald28 NinjaTrader Programming 2 March 2nd, 2014 06:20 PM
Need Daily Mid line indicator for Multiple Time frames traderbuddy NinjaTrader Programming 7 March 4th, 2013 07:31 PM

All times are GMT -4. The time now is 08:03 PM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-21 in 0.07 seconds with 19 queries on phoenix via your IP