I am using ADE to transfer an indicator information from a daily chart to an intraday chart. That's ok for this
In my 5min Chart, i have the information (the value of my indicator) for the last daily bar closed.
Is it possible to have the information for this last bar even if the bar isn't closed?
for exemple, today (01 Oct 2012) i have the daily indicator value for the last bar closed (28 Setp 2012)
I would like to have the daily indicator value for the last bar even if this bar isn't closed (01 Oct 2012)
is it possible?
Do i have tu use IntrabarPersist? ... How ?
here is the indicator
// NR_ADE_Sender indicator
Code: Select all
Vars:
Class("DailyAvg") , AvgMap(MapSN.New), MA(0);
// CACULATE MOVING AVERAGE
MA = AverageFc(c,50);
//Store the data we are interested in into AvgMap
Value1 = MapSN.Put(AvgMap,"DailyAvg", MA);
//Use ADE to store for current symbol and bar interval
Value1 = ADE.PutBarinfo(class, GetsymbolName, ADE.Barinterval, ADE.BarID, AvgMap);
//Plot daily average on daily chart
Plot1(MA, "Av", DarkBlue);
Code: Select all
Vars:
Interval(0), Class("DailyAvg"), AvgMap(Mapsn.new),
value1(0), value2(0);
value1 = Ade.GetBarInfo(Class, GetSymbolName, Interval, Ade.BarID, AvgMap);
value2 = MapSN.Get(AvgMap, "DailyAvg");
Plot1(value2, "DailyAvg", Darkblue);
thank you for your help