Joaquin Texas
Posts: 8 since May 2015
|
Hello my friend I think this is what you are asking for.
declare hide_on_daily;
#Select the Secondary Aggregation for the highest closing you wish to see.
input secondaryPeriod = AggregationPeriod.THIRTY_MIN;
def SecondaryPeriodHighestClose = HighestAll(close(period = secondaryPeriod));
Assert(secondaryPeriod >= GetAggregationPeriod( ), "Seccondary Aggregation cannot be greater than chart Aggregation ");
#This adds it to the price axis on the right
def onExpansion = if IsNaN(close) then yes else no;
plot HighestClose = if onExpansion then SecondaryPeriodHighestClose else double.NaN;
#This adds a chart bubble for the highest closing period you select as Secondary aggregation.
AddChartBubble(close == SecondaryPeriodHighestClose, SecondaryPeriodHighestClose, "Highest " + secondaryPeriod / 60000 + " Minute Close " + SecondaryPeriodHighestClose, Color.BLUE, yes);
copy and paste this and see if this is right. Let me know..
|