Easy ADE Problem - Traders Laboratory

Go Back   Traders Laboratory > Trading Resources > Trading Indicators > Coding Forum

Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2008, 12:24 PM
bigboy has no status.

 
Join Date: Sep 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Easy ADE Problem

Hello,

I'm thinking this is an easy answer for someone more familiar with Elcollections and ADE than I am. Anyway, I have this written to a file by an external dll.

Date,Time,mdindex,mdbidvo l,mdaskvol,mdopen,mdhigh, mdlow
02/04/2008,1744,499,1,0,13780.0 00000,13785.000000,13775. 000000
02/04/2008,1744,500,0,2,13780.0 00000,13785.000000,13775. 000000
02/04/2008,1744,501,25,0,13780. 000000,13785.000000,13775 .000000
02/04/2008,1745,499,1,1,13795.0 00000,13805.000000,13790. 000000
02/04/2008,1745,500,34,11,13795 .000000,13805.000000,1379 0.000000
02/04/2008,1745,501,11,167,1379 5.000000,13805.000000,137 90.000000
02/04/2008,1745,502,0,3,13795.0 00000,13805.000000,13790. 000000
02/04/2008,1746,497,41,0,13795. 000000,13795.000000,13780 .000000
02/04/2008,1746,498,20,107,1379 5.000000,13795.000000,137 80.000000
02/04/2008,1746,499,23,18,13795 .000000,13795.000000,1378 0.000000
02/04/2008,1746,500,68,0,13795. 000000,13795.000000,13780 .000000

I'm trying to make a map of a map I guess so that I can read in the values but there is not a one to one correspondence with the bar. Instead each bar has variable amount of data depending upon the number of price movemements in the bar. I need to somehow read this in from a file and store it in a map or list to operate on and print out. I need a map or list that is created from this that has variable number of members keyed by the minute bar id somehow.

Here's the contents of what I have in my ADC.GetMDELTA function
Inputs:
Sym(StringSimple),
Interval(NumericSimple),
BarID(NumericSimple),
vmdeltaindexlist(NumericR ef),
vbidList(NumericRef),
vaskList(NumericRef),
vmdopenList(NumericRef),
vmdhighList(NumericRef),
vmdlowList(NumericRef);

Vars:
LastSym(""),
LastInterval(-1),
Index(0),
DataMap(0),
BarList(0),
mdeltaindexlist(0),
bidList(0),
askList(0),
mdopenList(0),
mdhighList(0),
mdlowList(0);

if Sym <> LastSym or Interval <> LastInterval then begin
LastSym = Sym;
LastInterval = Interval;

DataMap = ADE.GetRequiredMap("MDELT A", Sym, Interval);
BarList = MapSC.Get(DataMap, ":Bar");

mdeltaindexlist = MapSC.Get(DataMap, "mdindex");
bidList = MapSC.Get(DataMap, "mdbidvol");
askList = MapSC.Get(DataMap, "mdaskvol");
mdopenList = MapSC.Get(DataMap, "mdopen");
mdhighList = MapSC.Get(DataMap, "mdhigh");
mdlowList = MapSC.Get(DataMap, "mdlow");



end;

if ListN.IsSorted(BarList) = false then
Value1 = ADE.SortDataMap(DataMap);

if ListN.Lookup(BarList, BarID, Index) = false then
Index = Index - 1;

if Index <> 0 then begin
vmdeltaindexlist = ListN.Get(mdeltaindexlist , Index);
vbidList = ListN.Get(bidList, Index);
vaskList = ListN.Get(askList, Index);
vmdopenList = ListN.Get(mdopenList, Index);
vmdhighList = ListN.Get(mdhighList, Index);
vmdlowList = ListN.Get(mdlowList, Index);
end;

ADC.GetMDELTA = Index;

Since these do not match up with individual ticks either, the zerobar stuff doesn't work for this.

Any help appreciated.
Bigboy

Reply With Quote
  #2 (permalink)  
Old 02-08-2008, 06:59 PM
bigboy has no status.

 
Join Date: Sep 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Easy ADE Problem

Hmmm, guess I've got the pros stumped here!
bigboy

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Attachment Problem Soultrader Support Center 3 02-07-2008 01:02 PM
Accessing Market Indices in Easy Language goldspot Technical Analysis 3 12-26-2007 11:01 PM
Easy Language - Help with Simple System gatrader E-mini Futures 8 12-17-2007 06:40 PM
Temporary problem with attachments Soultrader Support Center 3 11-20-2007 08:27 AM
Problem with overtrading.... kyle Beginners Forum 14 11-06-2006 02:33 AM


All times are GMT -4. The time now is 06:46 PM.

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70