Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 02-14-2010, 06:32 AM   #1

Join Date: Dec 2008
Location: athens
Posts: 54
Ignore this user

Thanks: 0
Thanked 4 Times in 3 Posts

2 Data Interaction

hi guys

this code ///

vars : xx(0),flag(0);

arrays : darr[20](0);

if BarNumber data2 > barnumber data2 [1] then
for xx = 0 to 19 begin
darr[xx] = close data2[xx] ;
end ;


if darr[0] <> darr[0][2] then
flag = darr[0] else flag = 0 ;

plot1(flag);

/////

is storing the closing values from a range compression (data2) symbol
the next bar on a time compression (data1) symbol..

is there a way to take the average N or the xaverage N value from data2 only when the flag variable > 0 ?

regards
Attached Thumbnails
2 Data Interaction-2-data-interaction.png  
andypap is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Will the YM Data Feed be included with the Globex E-mini Data Feed The Bear E-mini Futures Trading Laboratory 1 01-19-2008 01:05 PM

All times are GMT -4. The time now is 02:29 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.