Thank you.
(p.s. big thanks to damageboy for the overview and Economic Events indicator that I've been using as a guide)
Code: Select all
// this is a test indicator to store and retrieve an ADE map
variables:
test_map(MapSC.Share("TestMap")), test_map2(MapSC.New),
test_list(ListS.New), test_list2(ListS.New)
;
if barnumber=1 then begin
print("symbol is: "+ symbol+", barinterval is: "+ NumToStr(ADE.BarInterval,2));
//add some values to the list and map
value1=ListS.Resize(test_list, 3);
value1=ListS.Insert(test_list, 1, "A");
value1=ListS.Insert(test_list, 2, "B");
value1=ListS.Insert(test_list, 3, "C");
value1=MapSC.Put(test_map, "TestList", test_list);
print("2nd val is: "+ ListS.Get(test_list, 2));
print("test map/list created");
//retrieve the values from the map (locally)
test_map2=ADE.GetRequiredMap("TestMap", symbol, ADE.BarInterval);
//test_list2=MapSC.Get(test_map2, "TestList");
//print("2nd val retrieved: "+ ListS.Get(test_list2, 2));
end;