SamaaraDas

AoDivergenceLibrary_

SamaaraDas Uppdaterad   
Library "AoDivergenceLibrary_"
this has functions which calculate and plot divergences which are used for ao divergences. essentially, this finds divergences by using the ao divergence logic. this logic has been used in "AO Hid & Reg Div with LC & Kernel".

regBullDivergence(swingLow, osc, colour)
  Parameters:
    swingLow (bool)
    osc (float)
    colour (color)

regBearDivergence(swingHigh, osc, colour)
  Parameters:
    swingHigh (bool)
    osc (float)
    colour (color)

hidBullDivergence(swingHigh, osc, colour)
  Parameters:
    swingHigh (bool)
    osc (float)
    colour (color)

hidBearDivergence(swingHigh, osc, colour)
  Parameters:
    swingHigh (bool)
    osc (float)
    colour (color)
Versionsinformation:
v2

Added:
findLowestAo(start, osc, _end)
  Parameters:
    start (int)
    osc (float)
    _end (int)

findHighestAo(start, osc, _end)
  Parameters:
    start (int)
    osc (float)
    _end (int)

credit goes to @sammie123567858
Versionsinformation:
v3

Removed:
findLowestAo(start, osc, _end)

findHighestAo(start, osc, _end)
Versionsinformation:
v4

Added:
findLowestAo(start, osc, _end)
  to find the lowest ao in the given range (starting from _end upto end)
  Parameters:
    start (int): is for the left side. the parameter value is supposed to be a bar index
    osc (float)
    _end (int): is for the right side. the parameter value is supposed to be a shift

findHighestAo(start, osc, _end)
  to find the highes ao in the given range (starting from _end upto end)
  Parameters:
    start (int): is for the left side. the parameter value is supposed to be a bar index
    osc (float)
    _end (int): is for the right side. the parameter value is supposed to be a shift
Versionsinformation:
v5

Added:
findLowestPrice(start, end)
  to find the lowest price in the given range (starting from start upto end)
  Parameters:
    start (int): is for the right side. the parameter value is supposed to be a bar index
    end (int): is for the left side. the parameter value is supposed to be a bar index

findHighestPrice(start, end)
  to find the highest price in the given range (starting from start upto end)
  Parameters:
    start (int): is for the right side. the parameter value is supposed to be a bar index
    end (int): is for the left side. the parameter value is supposed to be a bar index

Pinebibliotek

I sann TradingView-anda har författaren publicerat denna Pine-kod som ett bibliotek med öppen källkod så att andra Pine-programmerare från vår community kan återanvända den. Hatten av för författaren! Du kan använda det här biblioteket privat eller i andra publikationer med öppen källkod, men återanvändning av den här koden i en publikation regleras av våra ordningsregler.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här biblioteket?

Kopiera följande rad och klistra in det i ditt skript.