master 2905f62b4f56 cached
5 files
23.1 KB
7.1k tokens
1 requests
Download .txt
Repository: Heavy91/TradingView_Indicators
Branch: master
Commit: 2905f62b4f56
Files: 5
Total size: 23.1 KB

Directory structure:
gitextract_r23rs_gc/

├── Failure Swing (stop hunting) Strategy
├── MultiAverages MultiTimeframe Indicator
├── README.md
├── RSI MultiTimeframe Indicator
└── Volume Supply and Demand Zones Indicator

================================================
FILE CONTENTS
================================================

================================================
FILE: Failure Swing (stop hunting) Strategy
================================================
//@version=3
//
// GitHub: https://github.com/Heavy91/TradingView_Indicators
//
// TradingView: https://www.tradingview.com/u/Heavy91/#published-scripts
//
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
// If you like my work, you can support me with a donation:
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
// €: http://pinescripts.fetchapp.com/sell/d15d4740
//
// $: http://pinescripts.fetchapp.com/sell/0f9153a5
//
// BTC: bc1q8e4wav3t55plp6ar0xc7gh4uqrzlxc7g97ywrg
//
// LTC: ltc1qagcys3pyluke3xdlq94qx8p7fd3z3mj2w32grs
//
// ----------------------------------------------------------------------------
// Failure Swing Strategy
// ----------------------------------------------------------------------------
// This strategy is a first attempt to countertrade the false break of a key support/resistance. 
// If a candle breaks the level, but it comes back before the close, it will trigger an order. 
// The Stop Loss is in %, the Take Profit is near the EMA. 
// The volatility filter is used to block new orders when the price is near the EMA. 
// The volatility adjustment coefficients calibrate Stop Loss and Take Profit values according to the current volatility.

strategy("Failure Swing Strategy V1", overlay=true, initial_capital = 1000, default_qty_type = strategy.percent_of_equity , pyramiding=0,default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.2 )
period = input( 84, minval=1, title='Support & Resistance' )

EMAp = input( 120, minval=1, title='EMA' )
Threshold = input( 5, minval=1, title='VolatilityFilter' )
coefficientTP = input( 0.05,title='TP_VolatilityAdjustment', type=float , step=0.01)
coefficientSL = input( 0.02,title='SL_VolatilityAdjustment', type=float , step=0.01)

sl_inp = input(2, title='Stop Loss %', type=float)/100


//STATEGY SETTINGS
// === BACKTEST RANGE ===
FromMonth = input(defval = 8, title = "From Month", minval = 1)
FromDay   = input(defval = 1, title = "From Day", minval = 1)
FromYear  = input(defval = 2018, title = "From Year", minval = 2014)
ToMonth   = input(defval = 1, title = "To Month", minval = 1)
ToDay     = input(defval = 1, title = "To Day", minval = 1)
ToYear    = input(defval = 9999, title = "To Year", minval = 2014)

AllowShort = input(type=bool, defval=true, title="Allow Short")
strategy.risk.allow_entry_in(AllowShort ? strategy.direction.all : strategy.direction.long)

resistance = highest(high[1], period)
support = lowest(low[1], period)
plot(resistance, color=gray, linewidth=1)
plot(support, color=gray, linewidth=1)
emaBase = ema(close,EMAp)
plot(emaBase, color=yellow, linewidth=1)
volatility = (((open-emaBase)*sign(open-emaBase))/emaBase)
ema = emaBase*(1+volatility*coefficientTP*sign(open-emaBase))
plot(ema, color=green, linewidth=2, style=circles)

stop_level_L = strategy.position_avg_price * (1 - sl_inp-volatility*coefficientSL)
stop_level_S = strategy.position_avg_price * (1 + sl_inp + volatility*coefficientSL)


//STRATEGY
if( (time > timestamp(FromYear, FromMonth, FromDay, 00, 00)) and (time < timestamp(ToYear, ToMonth, ToDay, 23, 59)) )
//OPEN SHORT
    if(volatility>(Threshold/100))//filter volatility
        if(resistance[1]==resistance[2])//filter resistance 
            if((high>=resistance[1])and(close<resistance[1]))//failed swing
                strategy.entry("Short", strategy.short,comment="Short")
                
//OPEN LONG 
    if(volatility>(Threshold/100))//filter volatility
        if(support[1]==support[2])//filter support "piatto"
            if((low<=support[1])and(close>support[1]))//failed swing
                strategy.entry("Long", strategy.long,comment="Long")
                
//STOP LOSS
    if((high>stop_level_S) or (low<ema))
        strategy.close("Short")
    if((low<stop_level_L) or (high>ema))
        strategy.close("Long")  
//TAKE PROFIT
    if(low<ema)
        strategy.close("Short")
    if(high>ema)
        strategy.close("Long")  

plot((strategy.position_size < 0)?stop_level_S:na, color=red, style=circles, linewidth=2)
plot((strategy.position_size > 0)?stop_level_L:na, color=red, style=circles, linewidth=2)


================================================
FILE: MultiAverages MultiTimeframe Indicator
================================================
//@version=3
//
// GitHub: https://github.com/Heavy91/TradingView_Indicators
//
// TradingView: https://www.tradingview.com/u/Heavy91/#published-scripts
//
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
// If you like my work, you can support me with a donation:
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
// €: http://pinescripts.fetchapp.com/sell/d15d4740
//
// $: http://pinescripts.fetchapp.com/sell/0f9153a5
//
// BTC: bc1q8e4wav3t55plp6ar0xc7gh4uqrzlxc7g97ywrg
//
// LTC: ltc1qagcys3pyluke3xdlq94qx8p7fd3z3mj2w32grs
//
// ----------------------------------------------------------------------------
// MultiAverages MultiTimeframe
// ----------------------------------------------------------------------------
// Plots different kinds of averages ( EMA , SMA , SMMA , WMA , VWMA ) referred to a fixed timeframe, 
// indipendent from the one that you are watching, e.g. plot daily EMA on the 1h chart. 
// Highlights the crossing of averages.

study(title="Ultimate 'Multi-Timeframe' Multi-Averages", shorttitle="MultiTF MultiAVGs", overlay=true)
src = input(close, title="Source")

//FIRST MODULE/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
I_ModuleType = input(title="Module_1: Type", type=string, defval="EMA", options=["EMA", "SMMA", "SMA", "WMA", "VolumeWMA"])
I_ModuleTF = input(title="Module_1: Timeframe (W, D, [minutes])", type=string, defval="D")
I_PlotAVGcross = input(title="Module_I: Highlight the crossing(AVGs 2 & 3)", type=bool, defval=true)

I_AVGLenght = input(title="Average_1.1: Lenght", type=integer, defval=9, minval=1) 
II_AVGLenght = input(title="Average_1.2: Lenght", type=integer, defval=50, minval=1)
III_AVGLenght = input(title="Average_1.3: Lenght", type=integer, defval=200, minval=1)

//1st Average//////////////////////////////////////////////////////////////////////////////
I_EMA = security(tickerid, I_ModuleTF, ema(src, I_AVGLenght))
I_SMA = security(tickerid, I_ModuleTF, sma(src, I_AVGLenght))
I_SMMA = security(tickerid, I_ModuleTF, rma(src, I_AVGLenght))
I_VWMA = security(tickerid, I_ModuleTF, vwma(src, I_AVGLenght))
I_WMA = security(tickerid, I_ModuleTF, wma(src, I_AVGLenght))

I_AVG = if (I_ModuleType == 'EMA')
    I_EMA
else 
    if (I_ModuleType == "SMA")
        I_SMA
    else
        if (I_ModuleType == "SMMA")
            I_SMMA
        else
            if (I_ModuleType == "VolumeWMA")
                I_VWMA
            else
                if (I_ModuleType == "WMA")
                    I_WMA
                else
                    na
plot(I_AVG,title="AVG_1.1",  color=red, transp=0, linewidth=3)

////2nd Average////////////////////////////////////////////////////////////////////////
II_EMA = security(tickerid, I_ModuleTF, ema(src, II_AVGLenght))
II_SMA = security(tickerid, I_ModuleTF, sma(src, II_AVGLenght))
II_SMMA = security(tickerid, I_ModuleTF, rma(src, II_AVGLenght))
II_VWMA = security(tickerid, I_ModuleTF, vwma(src, II_AVGLenght))
II_WMA = security(tickerid, I_ModuleTF, wma(src, II_AVGLenght))

II_AVG = if (I_ModuleType == 'EMA')
    II_EMA
else 
    if (I_ModuleType == "SMA")
        II_SMA
    else
        if (I_ModuleType == "SMMA")
            II_SMMA
        else
            if (I_ModuleType == "VolumeWMA")
                II_VWMA
            else
                if (I_ModuleType == "WMA")
                    II_WMA
                else
                    na
                
plot(II_AVG, title="AVG_1.2", color=green, transp=0, linewidth=3)

//3rd Average//////////////////////////////////////////////////////////////////////////////
III_EMA = security(tickerid, I_ModuleTF, ema(src, III_AVGLenght))
III_SMA = security(tickerid, I_ModuleTF, sma(src, III_AVGLenght))
III_SMMA = security(tickerid, I_ModuleTF, rma(src, III_AVGLenght))
III_VWMA = security(tickerid, I_ModuleTF, vwma(src, III_AVGLenght))
III_WMA = security(tickerid, I_ModuleTF, wma(src, III_AVGLenght))

III_AVG = if (I_ModuleType == 'EMA')
    III_EMA
else 
    if (I_ModuleType == "SMA")
        III_SMA
    else
        if (I_ModuleType == "SMMA")
            III_SMMA
        else
            if (I_ModuleType == "VolumeWMA")
                III_VWMA
            else
                if (I_ModuleType == "WMA")
                    III_WMA
                else
                    na
plot(III_AVG, title="AVG_1.3", color=blue, transp=0, linewidth=3)  

//plot ((cross(I_AVG, II_AVG) and I_PlotAVGcross) ? I_AVG : na, title="Cross 1.1 & 1.2", style = circles, color = yellow,  linewidth = 5, trackprice = false)
//plot ((cross(I_AVG, III_AVG) and I_PlotAVGcross) ? I_AVG : na, title="Cross 1.1 & 1.3", style = circles, color = yellow,  linewidth = 5, trackprice = false)
plot ((cross(II_AVG, III_AVG) and I_PlotAVGcross) ? II_AVG : na, title="Cross 1.2 & 1.3", style = circles, color = ((II_AVG > III_AVG) ? green : red),  linewidth = 5, trackprice = false)

//SECOND MODULE/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
II_ModuleType = input(title="Module_2: Type", type=string, defval="SMMA", options=["EMA", "SMMA", "SMA", "WMA", "VolumeWMA"])
TFfromChart = input(title="use timeframe of the chart", type=bool, defval=true)
II_ModuleTF = if(TFfromChart)
    period
else
    input(title="Module_2: Timeframe (W, D, [minutes])", type=string, defval="240")

II_PlotAVGcross = input(title="Module_II: Highlight the crossing(AVGs 2 & 3)", type=bool, defval=true)

I2_AVGLenght = input(title="Average_2.1: Lenght", type=integer, defval=9, minval=1) 
II2_AVGLenght = input(title="Average_2.2: Lenght", type=integer, defval=50, minval=1)
III2_AVGLenght = input(title="Average_2.3: Lenght", type=integer, defval=200, minval=1)

//1st Average//////////////////////////////////////////////////////////////////////////////
I2_EMA = security(tickerid, II_ModuleTF, ema(src, I2_AVGLenght))
I2_SMA = security(tickerid, II_ModuleTF, sma(src, I2_AVGLenght))
I2_SMMA = security(tickerid, II_ModuleTF, rma(src, I2_AVGLenght))
I2_VWMA = security(tickerid, II_ModuleTF, vwma(src, I2_AVGLenght))
I2_WMA = security(tickerid, II_ModuleTF, wma(src, I2_AVGLenght))

I2_AVG = if (II_ModuleType == 'EMA')
    I2_EMA
else 
    if (II_ModuleType == "SMA")
        I2_SMA
    else
        if (II_ModuleType == "SMMA")
            I2_SMMA
        else
            if (II_ModuleType == "VolumeWMA")
                I2_VWMA
            else
                if (II_ModuleType == "WMA")
                    I2_WMA
                else
                    na
plot(I2_AVG,title="AVG_2.1",  color=orange, transp=0, linewidth=1)

////2nd Average////////////////////////////////////////////////////////////////////////
II2_EMA = security(tickerid, II_ModuleTF, ema(src, II2_AVGLenght))
II2_SMA = security(tickerid, II_ModuleTF, sma(src, II2_AVGLenght))
II2_SMMA = security(tickerid, II_ModuleTF, rma(src, II2_AVGLenght))
II2_VWMA = security(tickerid, II_ModuleTF, vwma(src, II2_AVGLenght))
II2_WMA = security(tickerid, II_ModuleTF, wma(src, II2_AVGLenght))

II2_AVG = if (II_ModuleType == 'EMA')
    II2_EMA
else 
    if (II_ModuleType == "SMA")
        II2_SMA
    else
        if (II_ModuleType == "SMMA")
            II2_SMMA
        else
            if (II_ModuleType == "VolumeWMA")
                II2_VWMA
            else
                if (II_ModuleType == "WMA")
                    II2_WMA
                else
                    na
                
plot(II2_AVG, title="AVG_2.2", color=lime, transp=0, linewidth=1)

//3rd Average//////////////////////////////////////////////////////////////////////////////
III2_EMA = security(tickerid, II_ModuleTF, ema(src, III2_AVGLenght))
III2_SMA = security(tickerid, II_ModuleTF, sma(src, III2_AVGLenght))
III2_SMMA = security(tickerid, II_ModuleTF, rma(src, III2_AVGLenght))
III2_VWMA = security(tickerid, II_ModuleTF, vwma(src, III2_AVGLenght))
III2_WMA = security(tickerid, II_ModuleTF, wma(src, III2_AVGLenght))

III2_AVG = if (II_ModuleType == 'EMA')
    III2_EMA
else 
    if (II_ModuleType == "SMA")
        III2_SMA
    else
        if (II_ModuleType == "SMMA")
            III2_SMMA
        else
            if (II_ModuleType == "VolumeWMA")
                III2_VWMA
            else
                if (II_ModuleType == "WMA")
                    III2_WMA
                else
                    na
plot(III2_AVG, title="AVG_2.3", color=aqua, transp=0, linewidth=1)  

//plot ((cross(I2_AVG, II2_AVG) and II_PlotAVGcross) ? I2_AVG : na, title="Cross 2.1 & 2.2", style = circles, color = aqua,  linewidth = 4, trackprice = false)
//plot ((cross(I2_AVG, III2_AVG) and II_PlotAVGcross) ? I2_AVG : na, title="Cross 2.1 & 2.3", style = circles, color = aqua,  linewidth = 4, trackprice = false)
plot ((cross(II2_AVG, III2_AVG) and II_PlotAVGcross) ? II2_AVG : na, title="Cross 2.2 & 2.3", style = cross, color = ((II2_AVG > III2_AVG) ? green : red),  linewidth = 4, trackprice = false)


================================================
FILE: README.md
================================================
# TradingView Indicators and Strategies (pinescript)

###### GitHub: https://github.com/Heavy91/TradingView_Indicators

###### TradingView: https://www.tradingview.com/u/Heavy91/#published-scripts

## If you like my work, you can support me with a donation:
**€:** http://pinescripts.fetchapp.com/sell/d15d4740

**$:** http://pinescripts.fetchapp.com/sell/0f9153a5

**BTC:** bc1q8e4wav3t55plp6ar0xc7gh4uqrzlxc7g97ywrg

**LTC:** ltc1qagcys3pyluke3xdlq94qx8p7fd3z3mj2w32grs

-------------------------------------------------------------------------------------

## Indicators:

- **RSI MultiTimeframe:**
  Plots 3 RSI (Weekly, Daily, 4h) at the same time, regardless of the Chart Timeframe.
  Highlights in green (or red) if all RSI are oversold (or overbought).
  Can trigger custom oversold and overbought alerts.
  ![alt text](https://github.com/Heavy91/TradingView_Indicators/blob/master/%5Bpreview%5D%20RSI%20MultiTimeframe%20I.png)
  
- **Volume Supply and Demand Zones:**
  Draws supply and demand zones based on 3 different volume threshold parameters.
  The timeframe of the script is fixed (you can change it in the options), 
  e.g. it is possible to keep Daily S/D zones while looking at 1h chart.
  ![alt text](https://github.com/Heavy91/TradingView_Indicators/blob/master/%5Bpreview%5D%20Volume%20Supply%20and%20Demand%20Zones%20I.png)
  
- **MultiAverages MultiTimeframe:**
  Plots different kinds of averages ( EMA , SMA , SMMA , WMA , VWMA ) referred to a fixed timeframe, indipendent from   the one that you are watching, e.g. plot daily EMA on the 1h chart.
  Highlights the crossing of averages.
  ![alt text](https://github.com/Heavy91/TradingView_Indicators/blob/master/%5Bpreview%5D%20MultiAverages%20MultiTimeframe%20I.png)
  

## Strategies:

- **Failure Swing (stop hunting):**
  This strategy is a first attempt to countertrade the false break of a key support/resistance.
  If a candle breaks the level, but it comes back before the close, it will trigger an order.
  The Stop Loss is in %, the Take Profit is near the EMA.
  The *volatility filter* is used to block new orders when the price is near the EMA.
  The *volatility adjustment* coefficients calibrate Stop Loss and Take Profit values according to the current volatility.
  ![alt text](https://github.com/Heavy91/TradingView_Indicators/blob/master/%5Bpreview%5D%20Failure%20Swing%20S.png)
  


================================================
FILE: RSI MultiTimeframe Indicator
================================================
//@version=3
//
// GitHub: https://github.com/Heavy91/TradingView_Indicators
//
// TradingView: https://www.tradingview.com/u/Heavy91/#published-scripts
//
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
// If you like my work, you can support me with a donation:
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
// €: http://pinescripts.fetchapp.com/sell/d15d4740
//
// $: http://pinescripts.fetchapp.com/sell/0f9153a5
//
// BTC: bc1q8e4wav3t55plp6ar0xc7gh4uqrzlxc7g97ywrg
//
// LTC: ltc1qagcys3pyluke3xdlq94qx8p7fd3z3mj2w32grs
//
// ----------------------------------------------------------------------------
// RSI MultiTimeframe Indicator
// ----------------------------------------------------------------------------
// Plots 3 RSI (Weekly, Daily, 4h) at the same time, regardless of the Chart Timeframe.
// Highlights in green (or red) if all RSI are oversold (or overbought).
// Can trigger custom oversold and overbought alerts.

study(title = "RSI Multi TF", shorttitle="RSI Multi TF (W, D, 4h)")
source = close
length = input(14, minval=1)
HighlightBreaches=input(true, title="Highlight Oversold and Overbought?", type=bool)

// RSI
RSI_1 = security(tickerid, "W", rsi(source, length))
RSI_2 = security(tickerid, "D", rsi(source, length))
RSI_3 = security(tickerid, "240", rsi(source, length))

plot(RSI_3, title = "4h", color=gray, linewidth=1)
plot(RSI_2, title = "D", color=red, linewidth=2)
plot(RSI_1, title = "W", color=yellow, linewidth=3)

UpperBand = input(70, title="Upper band")
LowerBand = input(30, title="Lower band")

b_color = ((RSI_3 > UpperBand)and(RSI_1 > UpperBand)and(RSI_2 > UpperBand)) ? red : ((RSI_3 < LowerBand)and(RSI_1 < LowerBand)and(RSI_2 < LowerBand)) ? green : na
bgcolor(HighlightBreaches ? b_color : na, transp=50)

h0 = hline(UpperBand, title="Upper band", linestyle=dashed, linewidth=1, color=red)
h1 = hline(LowerBand, title="Lower band", linestyle=dashed, linewidth=1, color=green)
fill(h0, h1)

alertcondition(b_color == green, title='MultiOversold', message='Multi Oversold!')
alertcondition(b_color == red, title='MultiOverbought', message='Multi Overbought!')


================================================
FILE: Volume Supply and Demand Zones Indicator
================================================
//@version=3
//
// GitHub: https://github.com/Heavy91/TradingView_Indicators
//
// TradingView: https://www.tradingview.com/u/Heavy91/#published-scripts
//
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
// If you like my work, you can support me with a donation:
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
// €: http://pinescripts.fetchapp.com/sell/d15d4740
//
// $: http://pinescripts.fetchapp.com/sell/0f9153a5
//
// BTC: bc1q8e4wav3t55plp6ar0xc7gh4uqrzlxc7g97ywrg
//
// LTC: ltc1qagcys3pyluke3xdlq94qx8p7fd3z3mj2w32grs
//
// ----------------------------------------------------------------------------
// Volume Supply and Demand Zones
// ----------------------------------------------------------------------------
// Draws supply and demand zones based on 3 different volume threshold parameters.
// The timeframe of the script is fixed (you can change it in the options), 
// e.g. it is possible to keep Daily S/D zones while looking at 1h chart.

study(title="Volume Supply and Demand Zones", shorttitle="Vol S/D Zones V1", precision=0, overlay=true)

def_color_big = aqua
def_fill_color_big = aqua
def_color_mid = aqua
def_fill_color_mid = teal
def_color_small = aqua
def_fill_color_small = navy
TF = input(title="Timeframe (W, D, [minutes])", type=string, defval="D")
length = input(5, minval=1)
change = volume/volume[1] - 1
stdev = stdev(change, length)
difference = change / stdev[1]
signal = abs(difference)

Threshold_big = input(15, title="Threshold_Big_Vol")
Threshold_mid = input(10, title="Threshold_Mid_Vol")
Threshold_small = input(5, title="Threshold_Small_Vol")

//-----------------------------------------------------------------------------------------
leveluphi_big = security(tickerid, TF, valuewhen(signal > Threshold_big,high[1],0))
leveluplo_big = security(tickerid, TF, valuewhen(signal > Threshold_big,low[1],0))
p1 = plot(leveluphi_big,style=circles,color=def_color_big)
p2 = plot(leveluplo_big,style=circles,color=def_color_big)
fill(p1,p2,color=def_fill_color_big,transp=70)

leveluphi_big2 = security(tickerid, TF, valuewhen(signal > Threshold_big,high[1],1))
leveluplo_big2 = security(tickerid, TF, valuewhen(signal > Threshold_big,low[1],1))
p12 = plot(leveluphi_big2,style=circles,color=def_color_big)
p22 = plot(leveluplo_big2,style=circles,color=def_color_big)
fill(p12,p22,color=def_fill_color_big,transp=70)

leveluphi_big3 = security(tickerid, TF, valuewhen(signal > Threshold_big,high[1],2))
leveluplo_big3 = security(tickerid, TF, valuewhen(signal > Threshold_big,low[1],2))
p13 = plot(leveluphi_big3,style=circles,color=def_color_big)
p23 = plot(leveluplo_big3,style=circles,color=def_color_big)
fill(p13,p23,color=def_fill_color_big,transp=70)

leveluphi_big4 = security(tickerid, TF, valuewhen(signal > Threshold_big,high[1],3))
leveluplo_big4 = security(tickerid, TF, valuewhen(signal > Threshold_big,low[1],3))
p14 = plot(leveluphi_big4,style=circles,color=def_color_big)
p24 = plot(leveluplo_big4,style=circles,color=def_color_big)
fill(p14,p24,color=def_fill_color_big,transp=70)
//-----------------------------------------------------------------------------------------
leveluphi_mid = security(tickerid, TF, valuewhen((signal > Threshold_mid)and(signal <= Threshold_big),high[1],0))
leveluplo_mid = security(tickerid, TF, valuewhen((signal > Threshold_mid)and(signal <= Threshold_big),low[1],0))
p3 = plot(leveluphi_mid,style=circles,color=def_color_mid,transp=65)
p4 = plot(leveluplo_mid,style=circles,color=def_color_mid,transp=65)
fill(p3,p4,color=def_fill_color_mid,transp=70)

leveluphi_mid2 = security(tickerid, TF, valuewhen((signal > Threshold_mid)and(signal <= Threshold_big),high[1],1))
leveluplo_mid2 = security(tickerid, TF, valuewhen((signal > Threshold_mid)and(signal <= Threshold_big),low[1],1))
p32 = plot(leveluphi_mid2,style=circles,color=def_color_mid,transp=65)
p42 = plot(leveluplo_mid2,style=circles,color=def_color_mid,transp=65)
fill(p32,p42,color=def_fill_color_mid,transp=70)

leveluphi_mid3 = security(tickerid, TF, valuewhen((signal > Threshold_mid)and(signal <= Threshold_big),high[1],2))
leveluplo_mid3 = security(tickerid, TF, valuewhen((signal > Threshold_mid)and(signal <= Threshold_big),low[1],2))
p33 = plot(leveluphi_mid3,style=circles,color=def_color_mid,transp=65)
p43 = plot(leveluplo_mid3,style=circles,color=def_color_mid,transp=65)
fill(p33,p43,color=def_fill_color_mid,transp=70)

leveluphi_mid4 = security(tickerid, TF, valuewhen((signal > Threshold_mid)and(signal <= Threshold_big),high[1],3))
leveluplo_mid4 = security(tickerid, TF, valuewhen((signal > Threshold_mid)and(signal <= Threshold_big),low[1],3))
p34 = plot(leveluphi_mid4,style=circles,color=def_color_mid,transp=65)
p44 = plot(leveluplo_mid4,style=circles,color=def_color_mid,transp=65)
fill(p34,p44,color=def_fill_color_mid,transp=70)
//------------------------------------------------------------------------------------------------
leveluphi_small = security(tickerid, TF, valuewhen((signal > Threshold_small)and(signal <= Threshold_mid),high[1],0))
leveluplo_small = security(tickerid, TF, valuewhen((signal > Threshold_small)and(signal <= Threshold_mid),low[1],0))
p5 = plot(leveluphi_small,style=circles,color=def_color_small,transp=70)
p6 = plot(leveluplo_small,style=circles,color=def_color_small,transp=70)
fill(p5,p6,color=def_fill_color_small,transp=70)

leveluphi_small2 = security(tickerid, TF, valuewhen((signal > Threshold_small)and(signal <= Threshold_mid),high[1],1))
leveluplo_small2 = security(tickerid, TF, valuewhen((signal > Threshold_small)and(signal <= Threshold_mid),low[1],1))
p52 = plot(leveluphi_small2,style=circles,color=def_color_small,transp=70)
p62 = plot(leveluplo_small2,style=circles,color=def_color_small,transp=70)
fill(p52,p62,color=def_fill_color_small,transp=70)

//-------------------------------------------------------------------------------------------------------
Download .txt
gitextract_r23rs_gc/

├── Failure Swing (stop hunting) Strategy
├── MultiAverages MultiTimeframe Indicator
├── README.md
├── RSI MultiTimeframe Indicator
└── Volume Supply and Demand Zones Indicator
Condensed preview — 5 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (25K chars).
[
  {
    "path": "Failure Swing (stop hunting) Strategy",
    "chars": 4169,
    "preview": "//@version=3\n//\n// GitHub: https://github.com/Heavy91/TradingView_Indicators\n//\n// TradingView: https://www.tradingview."
  },
  {
    "path": "MultiAverages MultiTimeframe Indicator",
    "chars": 8999,
    "preview": "//@version=3\n//\n// GitHub: https://github.com/Heavy91/TradingView_Indicators\n//\n// TradingView: https://www.tradingview."
  },
  {
    "path": "README.md",
    "chars": 2379,
    "preview": "# TradingView Indicators and Strategies (pinescript)\n\n###### GitHub: https://github.com/Heavy91/TradingView_Indicators\n\n"
  },
  {
    "path": "RSI MultiTimeframe Indicator",
    "chars": 2177,
    "preview": "//@version=3\n//\n// GitHub: https://github.com/Heavy91/TradingView_Indicators\n//\n// TradingView: https://www.tradingview."
  },
  {
    "path": "Volume Supply and Demand Zones Indicator",
    "chars": 5944,
    "preview": "//@version=3\n//\n// GitHub: https://github.com/Heavy91/TradingView_Indicators\n//\n// TradingView: https://www.tradingview."
  }
]

About this extraction

This page contains the full source code of the Heavy91/TradingView_Indicators GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 5 files (23.1 KB), approximately 7.1k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!