Mid Point Indicator

mc01439

Well-known member
2019 Donor
VIP
Found this on another site some may find useful.

from the author;

"This will reset daily, regardless of timeframe (as long as the timeframe is lower than the midpoint you're tracking), as well as provides Daily, Weekly, and Monthly midpoints, as desired.
Lastly, this gives you the option to see the High and Low it's using or hide it, as needed, and rounds the Mid Point to the nearest tick value.
Here's what it looks like (showing the high and low, which you can hide): "

uxdhulX.jpg


https://tos.mx/PYYVMuQ
 

Attachments

  • uxdhulX.jpg
    uxdhulX.jpg
    84.3 KB · Views: 135
Last edited by a moderator:

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Can you show the same thing for each Daily Weekly Monthly for each on same chart so as to see what overlaps kind of like a Frank Dilernia type of thing.
 
Can you show the same thing for each Daily Weekly Monthly for each on same chart so as to see what overlaps kind of like a Frank Dilernia type of thing.

Sure it can be done. I do not have the time to work on now but will look at over the weekend. Someone may already have if they do may post before then.
 
@Hguru @mc01439 let me introduce you to each other. You're both /CL traders and Tick chart folks.
mc, hguru is someone I know of from ThinkScript Lounge and one day, it would be nice if one or both of you could write a tutorial on how to trade /CL without getting killed. :)😉 ---that was a joke,,,
 
Last edited:
@Hguru - after working with the code you asked about I would still use my original suggestion (shown above). Seems to show the moves the best. When I coded a new script to show Day, Week and Month in one code the lines do not show enough gap. But - I am not a ThinkScript expert just a hack....


 
Last edited:
sorry for the late response just found some time to get back in here to look through things again, Thanks for the effort. I was thinking the same thing just to use the study multiple times with the Daily Weekly and Monthly settings to see where the overlaps occur. thx
 
@Hguru @mc01439 let me introduce you to each other. You're both /CL traders and Tick chart folks.
mc, hguru is someone I know of from ThinkScript Lounge and one day, it would be nice if one or both of you could write a tutorial on how to trade /CL without getting killed. :)😉

i am also trading /cl but having consecutive losses :( Looking forward to the tutorial if there is any....
 
i am also trading /cl but having consecutive losses :( Looking forward to the tutorial if there is any....
I will write something on my experienced on how I am trading (Scalping ) CL when I get a chance within the next week. I also trade ES a little these days as well but I like the CL movement better. I will just say I have a trading plan with built in rules and I trade that plan and follow those rules as best I can. Also something to remember and something I say to other traders when in a CL trade each tick is worth $10 and commissions are about 1/2 a tick or $5 so any thing above 1 tick is money in your pocket and those ticks add up. More later...
 
I will write something on my experienced on how I am trading (Scalping ) CL when I get a chance within the next week. I also trade ES a little these days as well but I like the CL movement better. I will just say I have a trading plan with built in rules and I trade that plan and follow those rules as best I can. Also something to remember and something I say to other traders when in a CL trade each tick is worth $10 and commissions are about 1/2 a tick or $5 so any thing above 1 tick is money in your pocket and those ticks add up. More later...
Fantastic....appreciate your effort as i think i lost more than 5k this year trading /cl. After having found this website a week ago from youtube, it truly helps as it offers scripts that is not found in default thinkorswim indicators. Will work hard to improve my trading with all the "weapons" invented in this website. Thanks to all the great scriptwriter and mentor in this website.
 
Fantastic....appreciate your effort as i think i lost more than 5k this year trading /cl. After having found this website a week ago from youtube, it truly helps as it offers scripts that is not found in default thinkorswim indicators. Will work hard to improve my trading with all the "weapons" invented in this website. Thanks to all the great scriptwriter and mentor in this website.
Yami....in the mean time if you could explain how you are trading CL currently ...do you have a system or trading style your using ? What indicators are you using and how are you using them ? Give us an overall of what your doing and what you think is the biggest reason your losing. Are you scalping or trading for the bigger home run moves. What is the avg amount of ticks in your trades ? Etc etc the more info the better. Also if you have some chart pics post those as well...Thx
 
@Hguru I was just joking about you and anyone else writing a tutorial. I would appreciate it, for those of us that are unfamiliar...
If you do, place it in the Tutorial section and be sure to put a simple disclaimer in there about it not necessarily being actionable information but as a tool for learnin', etc. Markos
 
Last edited:
Yami....in the mean time if you could explain how you are trading CL currently ...do you have a system or trading style your using ? What indicators are you using and how are you using them ? Give us an overall of what your doing and what you think is the biggest reason your losing. Are you scalping or trading for the bigger home run moves. What is the avg amount of ticks in your trades ? Etc etc the more info the better. Also if you have some chart pics post those as well...Thx
Sorry for late reply as i am busy with other stuffs. I do not have a system, just trade based on price action and EMA. my trading style is scalping and my stop lost usually will be 15 ticks. Very often it will hit my stop loss and rebound, which is very frustrating at times. If you have any good system / strategy, i would be grateful if you could share it with me. Thanks.
 
Sorry for late reply as i am busy with other stuffs. I do not have a system, just trade based on price action and EMA. my trading style is scalping and my stop lost usually will be 15 ticks. Very often it will hit my stop loss and rebound, which is very frustrating at times. If you have any good system / strategy, i would be grateful if you could share it with me. Thanks.
@yamiyugi - A few thoughts to do with as you want.

1) A 15 tick stop for /CL is very tight from my view. The average ATR for the 5 min bar over the past week or so is 9 ticks. It is not that surprising that you are being stopped out and then the market moves in your favor. Traders are always fishing for tight stops.

2) The number one issue I see with people trading /CL is they do not have enough capitol. At this time one contract is equal to $53640.00 so a 15 tick stop = .27%. You need to have a reserve of the the contract value for each contract you trade. The reserves could be in other instruments as long as they are very liquid.

3) You must have a system (rules) or you will be killed by a thousand paper cuts if you are lucky. Most without a system will be taken out quickly.

4) Most can not trade another's system - main reason they do not follow the rules. That was a hard and costly lesson for me many years ago.
 
hey everyone, here is a code for theMid that plots the overnight mid and then switches during regular trading hours

Code:
#coded by bmont

declare once_per_bar;

def na = double.NaN ;

def yyyyMmDd = GetYYYYMMDD() ;
def periodIndx = yyyyMmDd;
def isPeriodRolled = CompoundValue(1, periodIndx != periodIndx[1], yes) ;

def HI ;
def LO ;

if (isPeriodRolled) {
HI = high ;
LO = low ;
} else {
HI = if high > HI[1] then high else HI[1] ;
LO = if low < LO[1] then low else LO[1] ;
}

def openingTime = 0400;
def closingTime = 0930;
def isOpen = SecondsFromTime(openingTime) >= 0 and SecondsTillTime(closingTime) > 0;
def isClose = SecondsFromTime(closingTime) >= 27000 or SecondsTillTime(openingTime) > 0;
def isRegHours = isOpen and !isClose;
plot ETHmid = if !isclose and !isopen then na else round(((HI + LO) / 2) / ticksize(), 0) * ticksize();
ETHmid.setdefaultColor(createcolor(169,140,8));

def Begin = 0930;
def End = 1800;
def active = if SecondsTillTime(End) > 0 and SecondsFromTime(Begin) >= 0 then yes else no;
def highest= if highest[1] == 0 or active[1] == 0 and active == 1 then high else if active and high > highest[1] then high else highest[1];
def lowest= if lowest[1] == 0 or active[1] == 0 and active == 1 then low else if active and low < lowest[1] then low else lowest[1];
def midline =  ((highest - lowest) / 2) + lowest;

def openingTimeRTH = 0930;
def closingTimeRTH = 1800;
def isOpenRTH = SecondsFromTime(openingTimeRTH) >= 0 and SecondsTillTime(closingTimeRTH) > 0;
def isCloseRTH = SecondsFromTime(closingTimeRTH) >= 0 or SecondsTillTime(openingTimeRTH) > 0;
def isRegHoursRTH = isOpenRTH and !isCloseRTH;

plot RTHmid = if !isRegHoursRTH then na else if SecondsTillTime(Begin) > 0 then Double.NaN else midline;
RTHmid.setdefaultColor(createcolor(169,140,8));
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
330 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top