Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

5 min rotation on 1 min chart Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
zachlindgren
Posted : Saturday, November 24, 2012 9:07:35 AM
Registered User
Joined: 10/4/2010
Posts: 11

I am looking to write a condition that will show me a breakout of the 5 min rotation peak high on a 1 min chart. Also I want this condition to look at only stocks that have a gap up open of > 2%. This is so much more clear in my head then it is to write out for you.

 

Thanks, Zach

Bruce_L
Posted : Monday, November 26, 2012 11:16:14 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

I really don't know what "a breakout of the 5 min rotation peak high" might be to help you create a Condition to identify it.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
zachlindgren
Posted : Tuesday, November 27, 2012 11:36:56 AM
Registered User
Joined: 10/4/2010
Posts: 11

O.K let me try to explain my thought.... What I want is to wirte a condition that looks at the 1 min chart and takes the first 5 bars and sets a range....the range being the highest high reading (the peak high) and the lowest low reading (the range low), and the breakout being a move in price above the highest high (the peak high) of the established range. I guess a good starting point would be for the breakout to occur within 10 bars after the 5 bar range is set. Hope this is a better explanation.

 

Thanks, Zach

Bruce_L
Posted : Tuesday, November 27, 2012 12:03:55 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

I'm still not quite sure about exactly what you want. Maybe something similar to the following RealCode Condition?

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com 
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Breakout of Gap Up Opening Range
'|******************************************************************
'# OpeningBars = UserInput.Integer = 5
'# BreakOutLimit = UserInput.Integer = 10
'# GapUpPerc = UserInput.Single = 2
Static RangeHigh As Single
Static BarOfDay As Single
Static LastTest As Integer
Static OpenGap As Boolean
Static BrokeOut As Boolean
If isFirstBar Then
	RangeHigh = Single.NaN
	BarOfDay = Single.NaN
	LastTest = OpeningBars + BreakOutLimit
	OpenGap = False
	BrokeOut = False
Else If Price.DateValue.DayOfYear <> Price.DateValue(1).DayOfYear Then
	RangeHigh = Price.High
	BarOfDay = 1
	If Price.Open >= (1 + GapUpPerc / 100) * Price.Last Then
		OpenGap = True
	Else
		OpenGap = False
	End If
	BrokeOut = False
Else
	BarOfDay += 1	
End If
If OpenGap = True AndAlso _
	BarOfDay <= LastTest Then
	If BarOfDay <= OpeningBars Then
		RangeHigh = System.Math.Max(RangeHigh, Price.High)
	Else
		If Price.High > RangeHigh Then
			BrokeOut = True
		End If
	End If
End If
If Single.IsNaN(BarOfDay) Then
	SetIndexInvalid
Else If BrokeOut = True Then
	Pass
End If


-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.