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


Multiple time frames in one indicator
Started: by Donovan2580 Views / Replies:201 / 2
Last Reply: Attachments:0

Welcome to futures io.

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

Reply
 
Thread Tools Search this Thread
 

Multiple time frames in one indicator

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

Donovan

Below is the indicator & the associated function.




Indicator:

Inputs: TCLen(10), MA1(23), MA2(50);
plot1(_SchaffTC(TCLen,MA1,MA2),"Schaff_TLC");
plot2(25);
plot3(75);


Function:

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
 
  #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.

 
  #3 (permalink)
Elite Member
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,260 since Apr 2013
Thanks: 201 given, 709 received


Donovan2580,

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).

Regards,

ABCTG

Reply With Quote

Reply



futures io > > > > > 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)

PTMC Protrader Platform First Look w/Sergey Sokolov

Elite only

Spring Grains Outlook w/Sean Lusk @ Walsh Trading

Elite only

FIO Video Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

April

Process above all else w/Anthony Crudele @ Futures Radio Show

Elite only

Machine Learning - Quantitative Trading w/Martin Froehler @ Quantiacs

Elite only

Market Dynamics w/Peter Davies @ Jigsaw Trading

Elite only

Ask Me Anything w/Patrick Rooney @ Trading Technologies

Apr 18

Ask Me Anything w/FuturesTrader71

Apr 19

Machine Learning w/Kris Longmore

Elite only

Market Analysis w/Dave Forss

Apr 25

Introducing iSystems with Stage 5 Trading

Apr 27
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Daily Mid line indicator for Multiple Time frames traderbuddy NinjaTrader Programming 8 January 23rd, 2017 10:17 AM
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


All times are GMT -4. The time now is 09:23 AM.

no new posts
Page generated 2017-03-26 in 0.07 seconds with 19 queries on phoenix via your IP 54.145.183.43