Hi
i want to plot yesterday daily Pivot , supports an resistances in 1 hour Chart
I installed all components as described :
1/ place the elcollections.dll in "C: \Program Files\TS Support\Multicharts\"
2/ imported and compiled ELCollections.eld
2/ install ADE in c:\
4/ imported and compiled AllDataEverywhere.ELD
I created an indicator that calculates daily Pivot , supports an resistances
Vars: Pivot(0), Resistance1(0), Resistance2(0), Resistance3(0), Support1(0), Support2(0), Support3(0),
Class("Pivot&Support1&Support2&Support3&Resistance1&Resistance2&Resistance3"),
InfoMap(MapSN.New); // used to pass data to ADE
Pivot = ( Low + High + Close ) / 3;
Resistance1 = ( Pivot * 2 ) - Low;
Resistance2 = Pivot + Range;
Resistance3 = Resistance1 + Range;
Support1 = ( Pivot * 2 ) - High;
Support2 = Pivot - Range;
Support3 = Support1 - Range;
// Put the information we want to store in our InfoMap
Value1 = MapSN.Put(InfoMap, "Pivot", Pivot);
Value1 = MapSN.Put(InfoMap, "Resistance1", Resistance1);
Value1 = MapSN.Put(InfoMap, "Resistance2", Resistance2);
Value1 = MapSN.Put(InfoMap, "Resistance3", Resistance3);
Value1 = MapSN.Put(InfoMap, "Support1", Support1);
Value1 = MapSN.Put(InfoMap, "Support2", Support2);
Value1 = MapSN.Put(InfoMap, "Support3", Support3);
// Tell ADE to store this info for the current symbol and bar interval
Value1 = ADE.PutBarInfo(Class, GetSymbolName, ADE.BarInterval, ADE.BarID, InfoMap);
Plot1( Pivot[1], "PP");
plot2( Resistance1[1], "R1");
Plot3( Resistance2[1], "R2");
Plot4( Resistance3[1], "R3");
Plot5( Support1[1], "S1");
Plot6( Support2[1], "S2");
Plot7( Support3[1], "S3");
i inserted the indicator below in 1 HOUR CHART to get values
Inputs:
Interval(60);
Vars:
Class("Pivot&Support1&Support2&Support3&Resistance1&Resistance2&Resistance3"), // identifies our metrics with a unique name
InfoMap(MapSN.New), // used to retrieve data from ADE
Pivot(0), Resistance1(0), Resistance2(0), Resistance3(0), Support1(0), Support2(0), Support3(0);
// Retrieve the info for the current symbol and bar interval into InfoMap
Value1 = ADE.GetBarInfo(Class, GetSymbolName, Interval, ADE.BarID, InfoMap);
// Fetch the values from the InfoMap into variables
Pivot = MapSN.Get(InfoMap, "Pivot");
Resistance1 = MapSN.Get(InfoMap, "Resistance1");
Resistance2 = MapSN.Get(InfoMap, "Resistance2");
Resistance3 = MapSN.Get(InfoMap, "Resistance3");
Support1 = MapSN.Get(InfoMap, "Support1");
Support2 = MapSN.Get(InfoMap, "Support2");
Support3 = MapSN.Get(InfoMap, "Support3");
// Plot them
Plot1( Pivot[1], "PP");
plot2( Resistance1[1], "R1");
Plot3( Resistance2[1], "R2");
Plot4( Resistance3[1], "R3");
Plot5( Support1[1], "S1");
Plot6( Support2[1], "S2");
Plot7( Support3[1], "S3");
I did apply the second indicator, but got the following messages:
Error in "ADE Plot MarketDelta"
Company: "Bamboo"
Error location : "ADE"
Error category : "ADE Error"
Short string : "ADE Error"
Source string : "No data available for Class('Pivot&Support1&Support2&Support3&Resistance1&Resistance2&Resistance3'), AC, 60min"
How can this work correctly?
Thanks