MID price indicator for TOS - ThinkOrSwim | futures io social day trading
futures io futures trading


MID price indicator for TOS
Updated: Views / Replies:611 / 3
Created: by smegey Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you dont need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

MID price indicator for TOS

  #1 (permalink)
Elite Member
Sydney
 
Futures Experience: None
Platform: TOS
Favorite Futures: Futures
 
Posts: 4 since Jun 2011
Thanks: 1 given, 0 received

MID price indicator for TOS

Hi,

Futurestrader71 talks about the 'mid' alot. I have been trying to implement this level on my TOS charts but cant figure it out. I tried to create a simple moving average with a look back of 78 periods (5 min chart) with a calculation of (H+L)/2. Doesnt seem right.

FT71 did tweet and say "it charts the average of the high & low throughout whatever session I have selected. Generally pit only" - This is in relation to E-Mini S&P500 futures.

Anyone know how to calculate this in a script or define it in a study in TOS. Thanks in advance.


Last edited by smegey; July 26th, 2016 at 11:08 PM.
Reply With Quote
 
  #2 (permalink)
Trading Apprentice
Dallas, Texas
 
Futures Experience: Intermediate
Platform: TOS and GAIN Capital
Broker/Data: TD Ameritrade and Gain Capital
Favorite Futures: ES and CL
 
Posts: 31 since Jun 2015
Thanks: 2 given, 13 received


smegey View Post
Hi,

Futurestrader71 talks about the 'mid' alot. I have been trying to implement this level on my TOS charts but cant figure it out. I tried to create a simple moving average with a look back of 78 periods (5 min chart) with a calculation of (H+L)/2. Doesnt seem right.

FT71 did tweet and say "it charts the average of the high & low throughout whatever session I have selected. Generally pit only" - This is in relation to E-Mini S&P500 futures.

Anyone know how to calculate this in a script or define it in a study in TOS. Thanks in advance.

You need to first define the period in which you want the mid price.
Then, once you've established a starting point, you want the highest high and lowest low.

This will give you the mid point during RTH's....

Here's the code I have to do this:

input CapturePeriodStart = 0930;
input CapturePeriodEnd = 1615;

input StartPlotTime = 0930;
input EndPlotTime = 2359;

def CapturePeriodHasBegun = secondsFromTime(CapturePeriodStart) > 0;
def FirstBarOfCapturePeriod = !CapturePeriodHasBegun[1] and CapturePeriodHasBegun;
def PriorPeriod = secondsFromTime(CapturePeriodStart) > 0 or secondsFromTime(CapturePeriodEnd) < 0;
def PlotPeriod = secondsFromTime(StartPlotTime) > 0 && secondsTillTime(EndPlotTime) > 0;
rec PriorPeriodHigh = if IsNaN(PriorPeriodHigh[1]) or PriorPeriodHigh[1] < 2 then high
else if FirstBarOfCapturePeriod then high else if PriorPeriod && high > PriorPeriodHigh[1] then
high else PriorPeriodHigh[1];

rec PriorPeriodLow = if IsNaN(PriorPeriodLow[1]) or PriorPeriodLow[1] < 2 then low else
if FirstBarOfCapturePeriod then low else if PriorPeriod && low < PriorPeriodLow[1] then low else
PriorPeriodLow[1];

def TheHigh = if PlotPeriod && PriorPeriodHigh > 2 then PriorPeriodHigh else
double.nan;

def TheLow = if PlotPeriod && PriorPeriodLow > 2 then PriorPeriodLow else
double.nan;

plot midpoint = (thehigh + thelow) / 2;
midpoint.setdefaultColor(color.yellow);
midpoint.setlineWeight(3);

Reply With Quote
The following user says Thank You to devildriver6 for this post:
 
  #3 (permalink)
Elite Member
Sydney
 
Futures Experience: None
Platform: TOS
Favorite Futures: Futures
 
Posts: 4 since Jun 2011
Thanks: 1 given, 0 received


Thank you very much. Ill give this a try and see how it goes!

Reply With Quote
 
  #4 (permalink)
Elite Member
Sydney
 
Futures Experience: None
Platform: TOS
Favorite Futures: Futures
 
Posts: 4 since Jun 2011
Thanks: 1 given, 0 received

Devildriver6 - Have you compared your script to FT71 charts? On his traderbites it seems very close but not the same. Just wondering if its me or indeed its a tad different. Perhaps its user error on my part....

Any thoughts? Tyvm again for this

Reply With Quote

Reply



futures io > > > > MID price indicator for TOS

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

July Journal Challenge w/$1100 in prizes from TopstepTrader

July
 

An Afternoon with FIO member Softsoap

Elite only

Battlestations: Show us your trading desks and win $750 in prizes

August
 

Extended Ask Me Anything w/Brett Steenbarger

Elite only

Prototyping Python Strategies (part 3) w/Ran Aroussi

Elite only

Brannigan Barrett w/Axia Futures

Elite only

Introduction to Phillip Capital futures brokerage services

Aug TBD

How Monte Carlo Analysis Can Help Your Trading w/Kevin Davey

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
HORISONTAL PRICE LINE for TOS vit007 ThinkOrSwim 7 February 16th, 2017 12:02 PM
Need Daily Mid line indicator for Multiple Time frames traderbuddy NinjaTrader Programming 8 January 23rd, 2017 10:17 AM
TOS Draw Horizontal Line at Current Price Indicator needed ceramictilepro ThinkOrSwim 1 August 23rd, 2016 05:18 PM
Using Bid&Ask Prices vs Only Mid-Price in Backtest fintrabuji Platforms and Indicators 1 July 1st, 2015 03:13 PM
GREAT PIVOT(All level-mid-floor-camarilla) INDICATOR astrading NinjaTrader Programming 4 June 20th, 2010 08:10 AM


All times are GMT -4. The time now is 04:47 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@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 2017-07-25 in 0.09 seconds with 19 queries on phoenix via your IP 54.158.7.152