15 min and 60 min MA on 5 min chart - ThinkOrSwim | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim

15 min and 60 min MA on 5 min chart
Started:December 11th, 2015 (08:59 AM) by SanSan Views / Replies:493 / 2
Last Reply:January 20th, 2016 (01:13 PM) Attachments:1

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

Thread Tools Search this Thread

15 min and 60 min MA on 5 min chart

Old December 11th, 2015, 08:59 AM   #1 (permalink)
Trading Apprentice
Futures Experience: Intermediate
Platform: Thinkorswim
Favorite Futures: Emini ES
Posts: 1 since Dec 2015
Thanks: 0 given, 0 received

15 min and 60 min MA on 5 min chart

Hi, I am looking for a thinkorswim study for 60 min 20 bar EMA on 5 min chart.
In tradestation, the coding is as below;

Inputs: length(20);
If CurrentBar = 240 then Value1 = xaverage(C,240);
If CurrentBar >240 then begin
If Fracportion((time- -30)/100)= =0 or time =1315 then begin
value1 = =value1[1] + (2 / (Length+ 1))*( C - value1[1]);
Value2 = value1;
Plot1(value1, "60min 20EMA");
else begin
Value2 = value1 + (2 / (Length + 1 )) * ( C - value1[1]);
Plot1(value2, "60 min 20EMA");


Reply With Quote

Old December 11th, 2015, 09:12 AM   #2 (permalink)
1.Fibs 2.??? 3.Profit
Puerto Rico
Futures Experience: Intermediate
Platform: thinkorswim
Broker/Data: TD Ameritrade
Favorite Futures: CL & ES
rmejia's Avatar
Posts: 378 since Oct 2010
Thanks: 3,519 given, 404 received

There is a built in study "DailySMA" that does this but only SMA. I edited that one to EMA; attached is the study.

input price = FundamentalType.CLOSE;
input aggregationPeriod = AggregationPeriod.DAY;
input length = 9;
input displace = 0;
input showOnlyLastPeriod = no;

plot DailyEMA;

if showOnlyLastPeriod and !IsNaN(close(period = aggregationPeriod)[-1]) {
    DailyEMA = Double.NaN;
} else {
    DailyEMA = ExpAverage(fundamental(price, period = aggregationPeriod)[-displace], length);


Attached Files
Register to download File Type: ts _DailyEMASTUDY.ts (528 Bytes, 12 views)
Reply With Quote

Old January 20th, 2016, 01:13 PM   #3 (permalink)
Trading Apprentice
Futures Experience: Intermediate
Platform: Thinkorswim
Favorite Futures: Options
Posts: 5 since Jan 2016
Thanks: 0 given, 0 received

input price = close;
input displace = 0;
input length = 21;
input period = AggregationPeriod.FIFTEEN_MIN;
input averageType = AverageType.Simple;

plot MA = MovingAverage(averageType, close(period = period) [-displace], length = length);

Reply With Quote


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim > 15 min and 60 min MA on 5 min chart

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
Missing Data on 60 min chart? sudhirc NinjaTrader 1 February 24th, 2015 05:06 AM
Creating a 20 period EMA of a 60 min chart in a 5 min chart. CapeDR NinjaTrader 7 May 23rd, 2014 03:37 AM
Murrey Math in 60 min sam028 NinjaTrader 7 September 18th, 2012 01:41 PM
how can a lay a 5 min prc chart on 1 min chart for ninjatrader 7 optimus prime NinjaTrader 2 May 18th, 2011 06:14 PM
alert works on 1-min, but not on 60-min epictetus EasyLanguage Programming 2 May 9th, 2011 02:06 PM

All times are GMT -4. The time now is 12:45 PM.

Copyright © 2016 by futures.io. 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.06 seconds with 20 queries on phoenix via your IP