ice-e-fresh

STPFunctions

ice-e-fresh Aggiornato   
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.
Note di rilascio:
v1.1 Removed MA 'fudge factor' from 50SMA
Note di rilascio:
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.
Note di rilascio:
v4
Note di rilascio:
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.
Note di rilascio:
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.

Libreria Pine

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzare questa libreria in privato o all'interno di altre pubblicazioni open-source, ma il riutilizzo del codice è subordinato al rispetto del Regolamento.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questa libreria?

Copia il testo ed incollalo nel tuo script.