Determining high low time on multi timeframe data - futures io
futures io futures trading



Determining high low time on multi timeframe data


Discussion in EasyLanguage Programming

Updated
    1. trending_up 954 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Determining high low time on multi timeframe data

(login for full post details)
  #1 (permalink)
Munich Germany
 
Experience: Beginner
Platform: MultiCharts .NET,MultiCharts,Amibroker
Broker: Interactive Brokers IQFeed
Trading: Stocks,Index CFDs
 
Posts: 149 since Aug 2012
Thanks: 81 given, 82 received

I want to display the time of the high and low on a daily bar based indicator.
Therefore, a 1 minute data was added to the daily data, which can be referenced in the indicator.
My idea was to realize it with a while loop starting when the end of the session is reached on data2.
Counting till the start of the session. However, I was not able to count back more than 150 bars i was noticed that the end of available bars was reached with 203 bars. But I am using 200days back for the minute and 200days back for the daily dataset. Therefore, this should be not the problem. It would be nice if somebody can help me out.

 
Code
Inputs:
SessionStart(900),SessionEnd(1630);
	
Vars:
	tHigh(0),tlow(0),counter(0),lnow(0),hnow(0);

if Time data2 = sessionendtime(0,1) data2 then
begin
	counter=0;
	hnow  =high data2;
	lnow  =low data2;
	while  counter < 150 begin
		if hnow < high[counter] data2  then begin 
			hnow = high[counter] data2;
			tHigh=Time[counter] data2;
		end;
		if lnow > low[counter] data2 then begin
			lnow = low[counter] data2;
			tlow= Time[counter] data2;		
		end;
		counter=counter +1;
	end;
end;

plot1(tlow);

Visit my futures io Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
Work with historical tcks data on MUltichart NET PowerLa …
MultiCharts
If ES tracks SPX, why do support/resistance, Level 2, vo …
Emini and Emicro Index
COTbase for quant trading?
Elite Algorithmic NinjaTrader Trading
Cross border fund flows / fx correlations
Treasury Notes and Bonds
NT8 indicator to simulate a Funding Evaluation where to …
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Selling Options on Futures?
109 thanks
Battlestations: Show us your trading desks!
108 thanks
Rank your Futures vs Stocks trading priority
55 thanks
Want your NinjaTrader indicator created, free?
27 thanks
Whats this confusion with margins?
21 thanks
 
(login for full post details)
  #3 (permalink)
Munich Germany
 
Experience: Beginner
Platform: MultiCharts .NET,MultiCharts,Amibroker
Broker: Interactive Brokers IQFeed
Trading: Stocks,Index CFDs
 
Posts: 149 since Aug 2012
Thanks: 81 given, 82 received


Ok even if it is not following my first idea, the following code solved my problem.
However, in this implementation there is no backward looking loop and it only uses the incoming data stream order.
Therefore, I am still convinced that it should be possible to look back more bars on the minute data stream than can be referenced on the daily data stream. I would consider that error as a bug or a feature request within Multicharts.

 
Code
Inputs:
	sessionStart(931),sessionEnd(1600);
Vars:
	tlow(0,data1),thigh(0,data1),
	tlow2(0,data2),thigh2(0,data2),
	hnow(0,data2),lnow(0,data2);
	
if Time of data2 = sessionStart then 
begin
	
	hnow = high of data2;
	lnow = low of data2;
	tlow2 = Time of data2;
	thigh2 = Time of data2;
end
else
begin
	print(lnow);
	if high of data2 > hnow[1] then 
	begin
	 	hnow = high of data2;
	 	thigh2 = Time of data2;
	end
	else
	begin
		hnow = hnow[1];
		thigh2= thigh2[0];
	end;
	if low of data2 < lnow[1] then 
	begin 
		lnow = low of data2;
		tlow2 = Time of data2;
	end
	else
	begin 
		lnow = lnow[1];
		tlow2 = tlow2[1];
	end;
end;

if time of data2 = sessionendtime(0,1) then 
begin
tlow = tlow2;
thigh = thigh2;
end;

plot1(thigh);
plot2(tlow);
Having implemented this with much less effort than I have used for the .NET variant, I am absolutly impressed about the ease of use of the easylanguage version. The concept of multiple data streams is just awesome.

Visit my futures io Trade Journal Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Determining high low time on multi timeframe data


Last Updated on December 25, 2013


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 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