Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

Soultrader

TICK Coding Help

Recommended Posts

Hello all,

 

I would like to receive some help coding a paintbar tool for TS for this strategy here: http://www.traderslaboratory.com/forums/f34/tick-hooks-tick-candles-1662.html#post9884

 

Im interested in an automatic line that can plot the opening 90 minute high/low for the TICK. I would also like somekind of visual way to see when the TICK reach this opening 90min high/low and make a TICK hook. I have both a candlestick and line on close plotted on the same chart.

 

Any help would be appreciated :)

Share this post


Link to post
Share on other sites

James

 

I can help you out with the first one, where it plots a high and low for the first 90 minutes.

 

You'll have to adjust the start and end time as I'm based in England so start is 14:30 here. Also, if your using $TICK like your picture on the other thread, just format indicator and "base study on" data2.

 

Hope this helps

 

Blu-Ray

 

 

 

attachment.php?attachmentid=1316&stc=1&d=1177282152

Tick.bmp

OPENING RANGE.ELD

Share this post


Link to post
Share on other sites
James

 

I can help you out with the first one, where it plots a high and low for the first 90 minutes.

 

You'll have to adjust the start and end time as I'm based in England so start is 14:30 here. Also, if your using $TICK like your picture on the other thread, just format indicator and "base study on" data2.

 

Hope this helps

 

Blu-Ray

 

 

 

attachment.php?attachmentid=1316&stc=1&d=1177282152

 

Thank you very much Blu-Ray. I will try this one out. :)

Share this post


Link to post
Share on other sites
Who want it for trading send a donation of 125$ to my PayPal account under deltatrader@bluewin.ch together with your Tradestation CustomerID and you'll get the protected code without any expiration date.

 

-swisstrader

 

Do a little research on the TS forums and you'll be able to find this eld or be able to piece it together. Looks like swisstrader is taking a page from TTM and taking eld's from the TS forums and try to sell them.

Share this post


Link to post
Share on other sites
Guest cooter

Another piker in the wind, perhaps? Let's try to keep this forum a collaborative of traders helping traders ....

Share this post


Link to post
Share on other sites
trader273, before you write this you should research better!

I ever offer my own written code. And the FTP's on the current OR was my own idea in 2004!

 

 

I am no longer a TS client so I cant get to the forums. But to say that a pivot eld combined w/ an opening range eld is something special that someone should pay $125 or whatever you want is crazy. There are dozens of pivot elds (hell, even a couple on this site) and there are a bunch of open range indicators. This idea is far from original.

Share this post


Link to post
Share on other sites

Re: Nickm001 mod

 

When I use this - it only works for Regular Session and not my custom defined sessions... Am I doing something wrong here? I'd like it to post the x-minute range for any custom szession I have defined starting from the (csutom) session's 1st bar...

Share this post


Link to post
Share on other sites

Code is for regular session. Lines that needs to be changed is:

 

from ... "EndTime( CalcTime(SessionStartTime(1,1),EndTimeOffset))" to

 

EndTime( CalcTime(SessionStartTime(0,1),EndTimeOffset))

 

 

same for ... If time > EndTIme and time < SessionEndTIme(0,1) then

 

 

Here is the copy from TS guide that explains the difference...

____________________________________________

 

Usage

SessionStartTime(SessionType,SessionNum)

 

Parameters

SessionType

A numeric value. 0 = Auto Detect, 1 = Regular Session

 

SessionNum

A numeric value. Session Number to Reference

Share this post


Link to post
Share on other sites

EDIT:

 

Ignore previous post... Just modify the following lines..

 

inputs:

StartTime( SessionStartTime(0,1)),

EndTime( CalcTime(SessionStartTime(0,1),90)),

 

 

I was looking at different version of my code, not the code I posted in here.

 

Note to admin: For some reason I cannot edit my previous post

Share this post


Link to post
Share on other sites
EDIT:

 

Ignore previous post... Just modify the following lines..

 

inputs:

StartTime( SessionStartTime(0,1)),

EndTime( CalcTime(SessionStartTime(0,1),90)),

 

 

I was looking at different version of my code, not the code I posted in here.

 

Note to admin: For some reason I cannot edit my previous post

 

There is a time limit for post edits. We do this mainly for spam protection purposes.

Share this post


Link to post
Share on other sites

I have added size and style option to this nice indicator

 

inputs: 
//	StartTime( 	0900	), 
//	EndTime( 	1030	),
StartTime( SessionStartTime(1,1)), 
EndTime( CalcTime(SessionStartTime(1,1),90)), 
HL.Size( 	1 	),
HL.Style( 	2 	),	
HighColor( green),  
LowColor( red) ; 

variables: 
HavePrevLines( false ),  
TLHigh( 0 ),  
TLLow( 0 ), 
	PeriodHigh( 0 ),  
PeriodLow( 999999 ) ; 

if BarType <= 1 then { ie, if minute or tick bars } 
begin 
//	if Date <> Date[1] then { ie, if new day } 	
if CurrentSession(0) <> CurrentSession(0)[1] then { ie, if new session } 
	begin 

	{ truncate the previous lines if they exist } 
	if HavePrevLines then 
		begin 
		TL_SetEnd( TLHigh, Date[1], Time[1], PeriodHigh ) ; 
		TL_SetEnd( TLLow, Date[1], Time[1], PeriodLow ) ; 
		TL_SetExtRight( TLHigh, false ) ; 
		TL_SetExtRight( TLLow, false ) ; 
		end ; 

	{ re-initialize PeriodHigh,PeriodLow for the new day } 
	PeriodHigh = 0 ; 
	PeriodLow = 999999 ; 

	{ insert the new H,L lines and set their colors/extents } 
	TLHigh = TL_New( Date, Time, PeriodHigh, Date, Time, PeriodHigh ) ; 
	TLLow = TL_New( Date, Time, PeriodLow, Date, Time, PeriodLow ) ; 
	TL_SetColor( TLHigh, HighColor ) ; 
	TL_SetColor( TLLow, LowColor ) ; 
	TL_SetSize(  TLHigh  , HL.Size	);
	TL_SetSize(  TLLow	, HL.Size	);				
	TL_SetStyle(  TLHigh , HL.Style	);
	TL_SetStyle(  TLLow  , HL.Style	);		

	TL_SetExtLeft( TLHigh, false ) ; 
	TL_SetExtLeft( TLLow,false ) ; 
	TL_SetExtRight( TLHigh, true ) ; 
	TL_SetExtRight( TLLow, true ) ; 

	{ set flag } 
	if HavePrevLines = false then 
		HavePrevLines = true ; 
	end ; 

if HavePrevLines = true then 
	begin 
	if StartTime <= Time and Time <= EndTime then  
		begin 
		if High > PeriodHigh then 
			begin 
			PeriodHigh = High ; 
			{ MUST reset TL end before resetting TL beginning in this case; if order  
			  reversed, begin will first be reset to right side of end, and become the  
			  new end; this will then again be reset by the subsequent statement; the  
			  original begin will not be reset at all. } 
			TL_SetEnd( TLHigh, Date, Time, PeriodHigh ) ; 
			TL_SetBegin( TLHigh, Date, Time, PeriodHigh ) ; 
			end ; 
		if Low < PeriodLow then 
			begin 
			PeriodLow = Low ; 
			{ MUST reset TL end before resetting TL beginning in this case; see  
			  above. } 
			TL_SetEnd( TLLow, Date, Time, PeriodLow ) ; 
			TL_SetBegin( TLLow, Date, Time, PeriodLow ) ; 
			end ; 
		end ; 
	end ; 
end ; 

Share this post


Link to post
Share on other sites

:cool:

Yes, We have good teachers here to help with this excellent trading software

But, It is only 2 tiny lines of Blue-Ray's script...

Anyway, Thanks for your compliment Tams.

Have a nice week trades.

Edited by aaa

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Topics

  • Posts

    • Date: 23rd February 2024. Market Recap – Global Rally Pushing Valuations To Record Highs Across the US, Europe & Japan. Economic Indicators & Central Banks:   It was all about Nvidia. Nvidia got a $277 billion 1-day boost to its market capitalization yesterday – the biggest single-session increase in value ever!(the previous record was a $197 billion gain by Meta Platforms Inc.) Treasuries continued to lose ground, hurt by the surge in risk appetite with yields cheapening to the highest levels since late last year. The solid jobless claims report, which followed on the heels of the hawkish bent in the FOMC minutes, added to expectations the FOMC will leave rates in restrictive territory into June at least. A weaker than expected S&P Global services headline saw rates dip briefly. Japanese markets are closed for a public holiday. Fed Governor Christopher Waller: ”interest rate cuts should be delayed at least two more months, but indications of healthy demand and concerns over supplies could boost prices in the coming days.” Today: Germany IFO business climate & GDP, ECB publishes 1- and 3-Year inflation expectations survey. Market Trends:   Massive global rally in risk that saw the NASDAQ(USA100) jump 2.96% to 16,041.6, falling just short of the historic peak of 16,057 from November 2021. The S&P500 (USA500) climbed 2.1% to 5100, and the Dow (USA30) was up 1.18% to 39,069, both marking new records. Asian stock markets today continued to move higher, with the global rally pushing valuations to record highs across the US, Europe and Japan. The Nikkei jumped a further 2.2%. Financial Markets Performance:   The USDIndex was little changed at 103.80, below 104 for the first time since February 2. The Yen has performed the worst so far this year, experiencing a 6.3% decrease against the Dollar, as investors sought higher yields in other currencies, anticipating that Japan’s interest rates would remain close to zero for the foreseeable future. The Yen weakened against the Euro, Sterling, and other currencies this week, marking its 4th consecutive weekly decline against the US Dollar. USOil slipped to $77.85 per barrel after Fed speeches indicated delay to rate cuts. Gold dipped to $2021 per ounce. Always trade with strict risk management. Your capital is the single most important aspect of your trading business. Please note that times displayed based on local time zone and are from time of writing this report. Click HERE to access the full HFM Economic calendar. Want to learn to trade and analyse the markets? Join our webinars and get analysis and trading ideas combined with better understanding on how markets work. Click HERE to register for FREE! Click HERE to READ more Market news. Andria Pichidi Market Analyst HFMarkets Disclaimer: This material is provided as a general marketing communication for information purposes only and does not constitute an independent investment research. Nothing in this communication contains, or should be considered as containing, an investment advice or an investment recommendation or a solicitation for the purpose of buying or selling of any financial instrument. All information provided is gathered from reputable sources and any information containing an indication of past performance is not a guarantee or reliable indicator of future performance. Users acknowledge that any investment in FX and CFDs products is characterized by a certain degree of uncertainty and that any investment of this nature involves a high level of risk for which the users are solely responsible and liable. We assume no liability for any loss arising from any investment made based on the information provided in this communication. This communication must not be reproduced or further distributed without our prior written permission.
    • $LAMR Lamar Advertising stock nice breakout, frpm Stocks To Watch , see https://stockconsultant.com/?LAMR
    • Elevate your dating game with the top site for hassle-free connections. Authentic Maidens Top-notch Сasual Dating Superlative Сasual Dating
    • Date: 22nd February 2024. In-Depth Analysis – AUDUSD – Investors Expect Fed to Cut First! AUDUSD – Economists Do Not Expect the RBA to Cut Until 2024’s Third Quarter.   The Aussie Dollar increases 0.67% and sees its strongest gain this week so far. The exchange rate trades at its highest price since February 2nd. The FOMC’s Meeting Minutes indicate the Federal Reserve is not yet willing to cut interest rates. FOMC Members are cautious about cutting rates too fast. Australia’s Wage Price Index for the latest quarter continues to read higher than where the RBA would like to see it. The Reserve Bank of Australia advise the regulator would not consider cutting interest rates until the second half of 2024. The Australian Economy weakens but not enough to pressure the RBA! Inflation remains moderately higher than the US! AUDUSD – Technical Analysis The AUDUSD is witnessing one of the lowest spreads amongst the major currency pairs and is seeing higher levels of volatility. The Australian Dollar has been rising against the USD for seven consecutive days, similar to the NZD and the Euro. However, the AUD is performing better than the GBP, JPY and CHF against the Dollar. However, investors should note that the bullish price movement is largely being driven by the weakness in the Dollar. The US Dollar Index has fallen 0.50% this week and trades at a 3-week low. The Australian Dollar on the other hand is witnessing mainly bullish price movements depending on the currency pair. The Australian Dollar is increasing against the GBP, Euro, Yen, and the CHF but is declining against the NZD. So here we can see there are no major conflicts between the two individual currencies. However, investors will need to continue monitoring the US Dollar Index and price condition of the AUD against other major currencies. The AUDUSD is trading above the 75-Bar Exponential Moving Average and above the “Neutral” level on the RSI as well as the Bollinger Bands. These three factors indicate a further bullish trend as the asset is yet to be read “overbought” on most oscillators. In addition to this, the asset has managed to break above the resistance level and the previous high, meaning the continuation of the traditional wave pattern. The only negative indication when evaluating technical analysis is the measurements of the previous 4 impulse waves. The average bullish wave size is 0.87% and the largest has been 0.92%. The current impulse wave reads 0.87%. Therefore, if the pattern is to continue the price may retrace soon, even if it is going to continue rising thereafter. However, this cannot be known for sure. AUDUSD – Fundamental Analysis In the Meeting Minutes, representatives stated more fear about the remaining risks of a premature decline in rates than about a persistent period of high interest rates. Against this background, markets are reconsidering the timing of a possible easing of the regulator’s position in May and June. According to the CME Groups FedWatch Tool, the likelihood of a May adjustment is currently anticipated at 30-35%. A strong possibility is considered anything above 70%. Next week’s Core PCE Price Index will be key for the Dollar as this will be the last inflation reading for the month and short-term future. If the PCE Price Index is also higher, this means all 5 inflation readings beat expectations. As a result, the Dollar may rise. However, the Dollar’s issue is that the market’s risk profile is high, and many expect the Fed to cut first. Therefore, the Dollar may continue to struggle unless other central banks become more dovish. Even though the Reserve Bank of Australia’s interest rate is lower than the Fed’s, analysts expect the Fed to cut first. Even though GDP Growth in Australia is weakening, the economy is still performing better than Europe and the UK. In addition to this, inflation is still above 4.00%, which is extremely high for the Aussie and the Unemployment Rate has risen to 4.1% which is still manageable according to analysts there. Therefore, most analysts believe the RBA will cut in the third quarter and after the Fed. Therefore, fundamental analysis is slightly in the Aussie’s favor here, but technical analysis will need to continue signalling a rise. Always trade with strict risk management. Your capital is the single most important aspect of your trading business. Please note that times displayed based on local time zone and are from time of writing this report. Click HERE to access the full HFM Economic calendar. Want to learn to trade and analyse the markets? Join our webinars and get analysis and trading ideas combined with better understanding on how markets work. Click HERE to register for FREE! Click HERE to READ more Market news. Michalis Efthymiou Market Analyst HFMarkets Disclaimer: This material is provided as a general marketing communication for information purposes only and does not constitute an independent investment research. Nothing in this communication contains, or should be considered as containing, an investment advice or an investment recommendation or a solicitation for the purpose of buying or selling of any financial instrument. All information provided is gathered from reputable sources and any information containing an indication of past performance is not a guarantee or reliable indicator of future performance. Users acknowledge that any investment in FX and CFDs products is characterized by a certain degree of uncertainty and that any investment of this nature involves a high level of risk for which the users are solely responsible and liable. We assume no liability for any loss arising from any investment made based on the information provided in this communication. This communication must not be reproduced or further distributed without our prior written permission.
    • $GOOG Alphabet stock back to 143.09 triple+ support area with bullish stats, $GOOGL , see https://stockconsultant.com/?GOOG
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.