MID price indicator for TOS - ThinkOrSwim | futures.io
futures.io futures trading


MID price indicator for TOS
Started: by smegey Views / Replies:337 / 3
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
 

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 27th, 2016 at 12:08 AM.
Reply With Quote
 
  #2 (permalink)
Trading Apprentice
Bedford, Texas
 
Futures Experience: Beginner
Platform: ToS
Broker/Data: OEC
Favorite Futures: /ES
 
Posts: 20 since Jun 2015
Thanks: 2 given, 12 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)

2016 True Edge Awards: Voting is open until Jan 21!

Now
 

Bookmap New Indicator Panel, Cumulative Delta, Order Flow demo

Jan 17
 

An Afternoon with FIO member Massive l

Elite only

Leo Murphy: Making sense of Technical Analysis and Random Walk

Elite only
 

FuturesTrader71: Ask Me Anything

Elite only
     

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


All times are GMT -4. The time now is 12:13 AM.

no new posts
Page generated 2017-01-17 in 0.09 seconds with 19 queries on phoenix via your IP 23.23.37.116