Volume Breakdown / Cumulative Delta Momentum Print indicator - text float problem - EasyLanguage Programming | futures io social day trading
futures io futures trading


Volume Breakdown / Cumulative Delta Momentum Print indicator - text float problem
Updated: Views / Replies:4,341 / 17
Created: by treydog999 Attachments:2

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
 2  
 
Thread Tools Search this Thread
 

Volume Breakdown / Cumulative Delta Momentum Print indicator - text float problem

  #1 (permalink)
Elite Member
seoul, Korea
 
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: CQG, DTN IQfeed
Favorite Futures: YM 6E
 
treydog999's Avatar
 
Posts: 894 since Jul 2012
Thanks: 291 given, 1,006 received

Volume Breakdown / Cumulative Delta Momentum Print indicator - text float problem

Alright so I have created a VB style print that plots in text the cumulative delta momentum (single bar value) on the bottom of the chart. However there is a slight problem, the float only works for bars created real time. other wise it just puts it some displacement from the bar. I want it to float all the time. But none the less this indicator works, its only the aesthetics that are messed up.

Basically you put cumulative delta as data 1/2/3, use data select input to set that. then it will plot at the bottom of your candle chart the delta of that bar.

If someone could tell me how to float historical text objects so they all line up that would be awesome
 
Code
input: Upcolor(rgb(73, 120, 168)), downcolor(rgb(168, 73, 96)),
 NeutralColor(lightgray), TickDisplace( .0005 ), textsize(10), dataselect(3), screenpercent(5);
vars: Cvalue( 0 );

//data and calcs
if dataselect = 1 then
Cvalue = close of data1 - open of data1;

if dataselect = 2 then
Cvalue = close of data2 - open of data2;

if dataselect = 3 then
Cvalue = close of data3 - open of data3;

//Plot text
value1 = text_new(date,time,low - Tickdisplace, numtostr(Cvalue,0));

//stylize text
text_setstyle(value1,2,1);	
text_setsize(value1,textsize);

if cvalue > 0 then
	text_setcolor(value1,upcolor)
else
	text_setcolor(value1,downcolor);
	
value2 = text_Float(value1,0,screenpercent);
note:
if i do last bar and float them with a last bar flag. then it wont display historical values but all of them will be lined up as only bars the platform was here for are printed.

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)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,527 since Apr 2013
Thanks: 229 given, 853 received
Forum Reputation: Legendary


Hi treydog999,

this will probably take a little bit of programming.

When you use RecalcLastBarAfter, aiHighestDispValue and aiLowestDispValue that are used within the Text_Float function to return the highest and
lowest value for the currently displayed screen, will work on historical bars, too.
This alone doesn't help you of course, as you'd need to access all text IDs on the currently visible chart screen. This probably needs two steps, first store the barnumber for each bar
in a map (or array) using the datetime as map key and store each text ID within a map (or an array, but I'd suggest using a map and the ELCollections.DLL) and using the barnumber as the map key.

In a next step you'd have to get the datetime for the bar most left on the screen using aiLeftDispDateTime and the one on the right using aiRightDispDateTime. Use these two values to retrieve the barnumber
for the most left and most right bars and with these loop through the first map, retrieve each text ID and change the text location to the value of your choice.

Unfortunately I am not sure if there is something simpler, but the above should work. Although it might be too much work just for the aesthetics.

Regards,
ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #4 (permalink)
Elite Member
GER
 
Futures Experience: Advanced
Platform: MC
Favorite Futures: ES
 
Posts: 144 since May 2011
Thanks: 11 given, 211 received

The easiest way is it to spilt the text into a realtime part and a history part:

 
Code
input: Upcolor(rgb(73, 120, 168)), downcolor(rgb(168, 73, 96)),
 NeutralColor(lightgray), TickDisplace( .0005 ), textsize(10), dataselect(3), screenpercent(5);
vars: Cvalue( 0 ),RTDELTA_Text(0),HistDelta_Text(0);
{
//data and calcs
if dataselect = 1 then
Cvalue = close of data1 - open of data1;

if dataselect = 2 then
Cvalue = close of data2 - open of data2;

if dataselect = 3 then
Cvalue = close of data3 - open of data3;}

//data and calcs
if dataselect = 1 then
Cvalue = close of data1 - Close[1] of data1;

if dataselect = 2 then
Cvalue = close of data2 - Close[1] of data2;

if dataselect = 3 then
Cvalue = close of data3 - Close[1] of data3;

Once 
begin
		RTDELTA_Text = text_new_S (DATE, Time_S, 0, "") ;
		text_SetStyle 		(RTDELTA_Text, 2, 1) ;
   		 
end;

if barstatus (dataselect ) = 2 then 
begin
	//Plot text
	HistDelta_Text = text_new_S(date,time_S,GetAppInfo( aiLowestDispValue ) + 0.01 * screenpercent*
		 ( GetAppInfo( aiHighestDispValue ) - GetAppInfo( aiLowestDispValue ) )  , numtostr(Cvalue,0));

	//stylize text
	text_setstyle(HistDelta_Text,2,1);	
	text_setsize(HistDelta_Text,textsize);

	if cvalue > 0 then
		text_setcolor(HistDelta_Text,upcolor)
	else if cvalue = 0 then
		text_setcolor(HistDelta_Text,NeutralColor)	
	else 
		text_setcolor(HistDelta_Text,downcolor);

	value1 = GetAppInfo( aiLowestDispValue ) ;
	value2 = GetAppInfo( aiHighestDispValue ) ;
end;

if LastBarOnChart_s then 
begin
	Text_SetString (RTDELTA_Text, numtostr(Cvalue,0));
	if cvalue > 0 then
		text_setcolor(RTDELTA_Text,upcolor)
	else if cvalue = 0 then
		text_setcolor(RTDELTA_Text,NeutralColor)	
	else
		text_setcolor(RTDELTA_Text,downcolor);
	text_SetStyle 		(RTDELTA_Text, 2, 1) ;
	Text_SetLocation_s 	(RTDELTA_Text,date, time_s, GetAppInfo( aiLowestDispValue ) + 0.01 * screenpercent*
		 ( GetAppInfo( aiHighestDispValue ) - GetAppInfo( aiLowestDispValue ) )  );
	text_setsize(RTDELTA_Text,textsize);

end;

if barstatus (dataselect ) = 2 and LastBarOnChart_s then 
begin
	if value1 <> value1 [1] or value2 <> value2 [1] then recalculate;
	
end;


Last edited by SPMC; May 13th, 2013 at 12:40 PM.
Reply With Quote
The following user says Thank You to SPMC for this post:
 
  #5 (permalink)
Elite Member
seoul, Korea
 
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: CQG, DTN IQfeed
Favorite Futures: YM 6E
 
treydog999's Avatar
 
Posts: 894 since Jul 2012
Thanks: 291 given, 1,006 received

@SPMC

Thanks for the indi. however I am having problems with the switch from historical to real time. You can see here that there is a gap of values. They appear on the real time candle but then gap until the historical time series.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #6 (permalink)
Elite Member
GER
 
Futures Experience: Advanced
Platform: MC
Favorite Futures: ES
 
Posts: 144 since May 2011
Thanks: 11 given, 211 received

Could you post a complete chart with the data2/3 not hidden? Could it be that you have different settings in data1 and data2 (resolution, sessions, time zone)?

Reply With Quote
 
  #7 (permalink)
Elite Member
seoul, Korea
 
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: CQG, DTN IQfeed
Favorite Futures: YM 6E
 
treydog999's Avatar
 
Posts: 894 since Jul 2012
Thanks: 291 given, 1,006 received


SPMC View Post
Could you post a complete chart with the data2/3 not hidden? Could it be that you have different settings in data1 and data2 (resolution, sessions, time zone)?

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


i double checked all sessions are the same and time zones.

Reply With Quote
 
  #8 (permalink)
Elite Member
GER
 
Futures Experience: Advanced
Platform: MC
Favorite Futures: ES
 
Posts: 144 since May 2011
Thanks: 11 given, 211 received

As i have IQFeed and the code works, it seems that one problem is that at CQG the charts are not fully synchronized. Your upper chart shows a timestamp of 14:04:06.050 and both on the bottom a timestamp
of 14:05:21.093.
So barstatus (1) = 2 could be different to barstatus (3) = 2 .

Try to change the both lines with

if barstatus (dataselect ) = 2 then

to

if barstatus (1 ) = 2 then

Reply With Quote
The following user says Thank You to SPMC for this post:
 
  #9 (permalink)
Elite Member
seoul, Korea
 
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: CQG, DTN IQfeed
Favorite Futures: YM 6E
 
treydog999's Avatar
 
Posts: 894 since Jul 2012
Thanks: 291 given, 1,006 received


SPMC View Post
As i have IQFeed and the code works, it seems that one problem is that at CQG the charts are not fully synchronized. Your upper chart shows a timestamp of 14:04:06.050 and both on the bottom a timestamp
of 14:05:21.093.
So barstatus (1) = 2 could be different to barstatus (3) = 2 .

Try to change the both lines with

if barstatus (dataselect ) = 2 then

to

if barstatus (1 ) = 2 then

You're dead on, its because data 1 is M6E so there is a slight mismatch in time stamps.

Reply With Quote
 
  #10 (permalink)
Elite Member
West Branch, Mi, USA
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: TradePro/TransAct
Favorite Futures: NQ, CL
 
Posts: 59 since Nov 2012
Thanks: 10 given, 10 received


Hi,
I'm saving this in Tradestation as an .ELD, and when I do I'm getting this error:

Unknown Identifier, Line 27.
RTDELTA_Text = text_new_S (DATE, Time_S, 0, "") ;

(Also, I added the change made by SPMC in his last post).

Should it be FOR VOLUME USE: "Trade Volume" or "Tick Count" ?

I'm not coder. If someone could help me out, I'd really appreciate it.

Thanks,
Rockford

Reply With Quote

Reply



futures io > > > > > Volume Breakdown / Cumulative Delta Momentum Print indicator - text float problem

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
Cumulative Delta Volume Trading Big Mike The Elite Circle 980 December 10th, 2017 07:17 AM
Gom Cumulative Delta Volume for MultiCharts proton242 The Elite Circle 291 November 13th, 2017 07:31 AM
Volume Breakdown and Cumulative Delta cleon EasyLanguage Programming 8 November 9th, 2014 06:12 AM
Is cumulative delta tick and volume reliable when using IB data? skilluminati Reviews of Brokers and Data Feeds 5 November 28th, 2012 05:48 AM
Volume breakdown indicator mysthars The Elite Circle 107 December 13th, 2010 03:16 PM


All times are GMT -4. The time now is 04:38 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-12 in 0.14 seconds with 20 queries on phoenix via your IP 54.82.112.193