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


MID price indicator for TOS
Updated: Views / Replies:534 / 3
Created: by smegey 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 26th, 2016 at 11:08 PM.
Reply With Quote
 
  #2 (permalink)
Trading Apprentice
Bedford, Texas
 
Futures Experience: Beginner
Platform: ToS
Broker/Data: OEC
Favorite Futures: /ES
 
Posts: 28 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)

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

May

An overview of volumetric analytical tools w/Sergey Sokolov @ PTMC

Elite only

John Hoagland (TBA)

Elite only

FuturesTrader71 Extended Ask Me Anything (AMA)

Elite only

Pete @ Jigsaw Trading (TBA)

Elite only

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

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 03:08 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-05-28 in 0.09 seconds with 19 queries on phoenix via your IP 23.20.157.174