ice-e-fresh

STPFunctions

ice-e-fresh Aktualisiert   
Library "STPFunctions"
These functions are used as part of the STP trading strategy and include commonly used candle patterns, trade triggers and frequently monitored stock parameters

MAs() Determines if the last price is abover or below key moving averages. MAs used on the daily are SMA20, SMA50 and SMA200. SMA20 and SMA50 are used intraday.
  Returns: 1 if the last price/close was over the moving averages. -1 is returned if the last price/close is below the moving averages. 0 is returned otherwise.

HTFOrderFlow(HTF1_open, HTF2_open) Determine the state of the higher time frame order flow.
  Parameters:
    HTF1_open: float value representing the higher time frame open.
    HTF2_open: float value representing the higher time frame open.
  Returns: 1 if the last price/close was over the higher time frame open. -1 is returned if the last price/close is below the higher time frame open. 0 is returned otherwise.

OrderFlow() Determine the recent order flow... basically are we well bid or well offered
  Returns: 1 if the last 2 candles are well bid. -1 is returned if the last 2 candles are well offered. 0 is returned otherwise.

isInside() Used to flag inside candles
  Returns: 1 if the close >= open. -1 is returned if the close <= open. 0 is returned otherwise.

isOutside() Used to flag outside or engulfing candles
  Returns: 1 if the close >= open. -1 is returned if the close <= open. 0 is returned otherwise.

isUTN() Used to flag the U-turn reversal pattern
  Returns: 1 for a BUTN. -1 is returned for a BRUTN. 0 is returned otherwise.

isSNapBack() Flag for Snapback Entries
  Returns: 1 for a bullish snapback setup. -1 is returned for a bearish snapback setup. 0 is returned otherwise.
Versionshinweise:
v1.1 Removed MA 'fudge factor' from 50SMA
Versionshinweise:
v3

Updated:
OrderFlow() Determine the recent order flow... basically are we well bid or well offered
  Returns: 1 if the last 2 candles are well bid. -1 is returned if the last 2 candles are well offered. 0 is returned otherwise.
Versionshinweise:
v4
Versionshinweise:
v5

Updated:
OrderFlow() Determine the recent order flow... basically are we well bid or well offered
  Returns: 1 if the last 2 candles are well bid. -1 is returned if the last 2 candles are well offered. 0 is returned otherwise.
Versionshinweise:
v6

Updated:
OrderFlow() Determine the recent order flow... basically are we well bid or well offered
  Returns: 1 if the last 2 candles are well bid. -1 is returned if the last 2 candles are well offered. 0 is returned otherwise.

Pine Bibliothek

In echter TradingView-Manier hat der Autor diesen Pine-Code als Open-Source-Bibliothek veröffentlicht, so dass andere Pine-Programmierer aus unserer Community ihn weiterverwenden können. Ein Hoch auf den Autor! Sie können diese Bibliothek privat oder in anderen Open-Source-Publikationen verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie diese Bibliothek nutzen?

Kopieren Sie die folgende Zeile und fügen Sie sie in Ihr Skript ein.