TradingView
RicardoSantos
Dec 11, 2021 8:13 PM

FunctionPeakDetection 

Intel CorporationNASDAQ

Description

Library "FunctionPeakDetection"
Method used for peak detection, similar to MATLAB peakdet method

function(sample_x, sample_y, delta) Method for detecting peaks.
  Parameters:
    sample_x: float array, sample with indices.
    sample_y: float array, sample with data.
    delta: float, positive threshold value for detecting a peak.
  Returns: tuple with found max/min peak indices.

Release Notes

v2
fixed issue with example usage were it would crash in replay/large history buffer.
Comments
SBK16
Unable to find this indicator by typing "FunctionPeakDetection", can you once check and help.
RicardoSantos
@SBK16, this is a pinescript library, you can call it from any script.
tradingview.com/pine-script-reference/v5/
SBK16
@RicardoSantos, Thank You very much
GiriDeepAm
Hi! bro gud 1 for volatility management.
Is it possible to create an alert for eg. 50 scripts, like whenever there's an "A" or "V" TV pops an alert...
MauroValleF
Hey Ricardo. Just out of curiosity, are you Brazilian / Portuguese related? Cheers
GiriDeepAm
Hi! Ricardo had placed the script on an Index till 11:15AM there was no A or V on a 5M chart suddenly a V appeared @ 9:20AM & A appeared @ 9:35AM does the script Repaint, if so how do we fix the same..
RicardoSantos
@GiriDeepAm, the example uses the samples stdev for its threshold which changes with each bar, that is why the labels change.
GiriDeepAm
@RicardoSantos,
Sir,
So back testing would not be possible..
Can v create an alert whenever a label (A or V) is generated an alert pops up for a set of Stocks...
GiriDeepAm
@RicardoSantos, Sir again same script 15M Chart till 15:15Hrs there was no label created now @ 15:28Hrs label "A" is created with 20Dec21 @ 12:45, is it possible to fix the delay..
PowerIndicators
Hi Ricardo do you have a site or way to communicate with you ? for script and back end development ?
More