Determining high low time on multi timeframe data - EasyLanguage Programming | futures io social day trading
futures io futures trading


Determining high low time on multi timeframe data
Updated: Views / Replies:580 / 2
Created: by FB2012 Attachments:0

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Determining high low time on multi timeframe data

  #1 (permalink)
Elite Member
Munich Germany
 
Futures Experience: Beginner
Platform: MultiCharts .NET,MultiCharts,Amibroker
Broker/Data: Interactive Brokers IQFeed
Favorite Futures: Stocks,Index CFDs
 
Posts: 149 since Aug 2012
Thanks: 81 given, 77 received

Determining high low time on multi timeframe data

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);

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Munich Germany
 
Futures Experience: Beginner
Platform: MultiCharts .NET,MultiCharts,Amibroker
Broker/Data: Interactive Brokers IQFeed
Favorite Futures: Stocks,Index CFDs
 
Posts: 149 since Aug 2012
Thanks: 81 given, 77 received

Solved it by work around


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.

Reply With Quote

Reply



futures io > > > > > Determining high low time on multi timeframe data

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Zone Time Box w/high, low? Joseph689 NinjaTrader 0 December 1st, 2012 02:49 PM
Time zone - open/high/low TrendTraderBH Traders Hideout 11 April 23rd, 2012 01:25 PM
NT Multi Timeframe and multi indicator review eurostoxx NinjaTrader 3 August 29th, 2011 01:07 PM
Historical high/low data for advanced bar types RM99 Commodities Futures Trading 9 June 21st, 2011 09:53 AM
sensitivity multi-timeframe trick (small timeframe on bigger one) SARdynamite NinjaTrader Programming 4 July 15th, 2010 03:57 PM


All times are GMT -4. The time now is 11:41 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-12-11 in 0.07 seconds with 19 queries on phoenix via your IP 54.82.81.154