TS_FFA
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © emreyavuz84

//@version=5

// @description : Common Library for EY84 indicators
library("TS_FFA")

export labeling(string _sym_name, float _series) =>
    //TODO: get and integrate Label to the graph
    var _label = label.new(0,_series, text=_sym_name, style=label.style_none,textalign=text.align_right,textcolor=color.lime,size=size.normal)
    label.set_x(_label, 0)
    label.set_xloc(_label, time, xloc.bar_time)
    label.set_y(_label, _series)

export timeFrameMultiplier(string tfp) =>
    var _tfp = tfp
    _tfpm =1.0
    switch _tfp
        "120" =>
            _tfpm := 1
        "180" =>
            _tfpm := 1.5
        "240" =>
            _tfpm := 2
        "360" =>
            _tfpm := 3
        "D" =>
            _tfpm := 1
        "W" =>
            _tfpm := 84
        "45" =>
            _tfpm :=1*0.75
        "30" =>
            _tfpm :=1*0.5
        "15" =>
            _tfpm :=1*0.25
        "5" =>
            _tfpm :=1*0.083
        "1" =>
            _tfpm :=1*0.016

    [_tfpm]



// @function : function returns statisticly predefined values for fib and profit percents on MOST
// @param sring _x: gets the tickername
// @returns : Fib and Profit Percent values will be returned
export splitter(string _x) =>
    var _tickername = str.split(_x,"USDT.P")
    _fp = 2.0
    _pp = 4.0
    switch array.get(_tickername,0)
        "1000SHIB" => 
            _pp:= 4.5
            _fp:= 2
        "1000BTTC" => 
            _pp:= 1
            _fp:= 1
        "1000XEC" => 
            _pp:= 5
        	_fp:= 2
        "1INCH" => 
            _pp:= 3
        	_fp:= 2
        "AAVE" => 
            _pp:= 3
        	_fp:= 3
        "ADA" => 
            _pp:= 4
        	_fp:= 2
        "AKRO" => 
            _pp:= 3
        	_fp:= 1
        "ALGO" => 
			_pp:= 2
        	_fp:= 1
        "ALICE" => 
			_pp:= 6
        	_fp:= 2
        "ALPHA" => 
			_pp:= 2
        	_fp:= 1
        "ANC" => 
			_pp:= 4
        	_fp:= 2
        "ANKR" => 
			_pp:= 2
        	_fp:= 1
        "ANT" => 
			_pp:= 5
        	_fp:= 4
        "APE" => 
			_pp:= 2
        	_fp:= 3
        "API3" => 
			_pp:= 4
        	_fp:= 2
        "AR" => 
			_pp:= 3
        	_fp:= 2
        "ARPA" => 
			_pp:= 5
        	_fp:= 4
        "ATA" => 
			_pp:= 3
        	_fp:= 1
        "ATLASPERP" => 
			_pp:= 5
        	_fp:= 2
        "ATOM" => 
			_pp:= 4
        	_fp:= 1
        "AUDIO" => 
			_pp:= 3.5
        	_fp:= 2
        "AVAX" => 
			_pp:= 4
        	_fp:= 1
        "AXS" => 
			_pp:= 4
        	_fp:= 1
        "BAKE" => 
			_pp:= 6
        	_fp:= 2
        "BAL" => 
			_pp:= 3
        	_fp:= 2
        "BAND" => 
			_pp:= 2
        	_fp:= 2
        "BAT" => 
			_pp:= 2
        	_fp:= 2
        "BCH" => 
			_pp:= 4 
        	_fp:= 2
        "BEL" => 
			_pp:= 4
        	_fp:= 2
        "BLZ" => 
			_pp:= 1.5
        	_fp:= 2
        "BNB" => 
			_pp:= 3
        	_fp:= 2
        "BTCDOM" => 
			_pp:= 1
        	_fp:= 2
        "BTC" => 
			_pp:= 4
        	_fp:= 2
        "BTS" => 
			_pp:= 6
        	_fp:= 2
        "C98" => 
			_pp:= 5
        	_fp:= 2
        "CELO" => 
			_pp:= 4
        	_fp:= 1
        "CELR" => 
			_pp:= 3
        	_fp:= 1
        "CHR" => 
			_pp:= 6
        	_fp:= 2
        "CHZ" => 
			_pp:= 5
        	_fp:= 2
        "COMP" => 
			_pp:= 3
        	_fp:= 2
        "COTI" => 
			_pp:= 3
        	_fp:= 2
        "CRV" => 
			_pp:= 5
        	_fp:= 2
        "CTK" => 
			_pp:= 1
        	_fp:= 1
        "CTSI" => 
			_pp:= 4
        	_fp:= 2
        "CVC" => 
			_pp:= 7
        	_fp:= 2
        "DASH" => 
			_pp:= 1
        	_fp:= 1
        "DEFI" => 
			_pp:= 2
        	_fp:= 2
        "DENT" => 
			_pp:= 4
        	_fp:= 1
        "DGB" => 
			_pp:= 2
        	_fp:= 3
        "DODO" => 
			_pp:= 3
        	_fp:= 2
        "DOGE" => 
			_pp:= 6
        	_fp:= 2
        "DOT" => 
			_pp:= 3
        	_fp:= 2
        "DYDX" => 
			_pp:= 5.5
        	_fp:= 1
        "EGLD" => 
			_pp:= 5
        	_fp:= 1
        "ENJ" => 
			_pp:= 2.5
        	_fp:= 2
        "ENS" => 
			_pp:= 4
        	_fp:= 2
        "EOS" => 
			_pp:= 4.5
        	_fp:= 2
        "ETC" => 
			_pp:= 5
        	_fp:= 1
        "ETH" => 
			_pp:= 1.5
        	_fp:= 2
        "FIL" => 
			_pp:= 3
        	_fp:= 2
        "FLM" => 
			_pp:= 3
        	_fp:= 2
        "FLOW" => 
			_pp:= 3
        	_fp:= 3
        "FTM" => 
			_pp:= 5
        	_fp:= 2
        "GALA" => 
			_pp:= 5
        	_fp:= 2
        "GMT" => 
			_pp:= 8
        	_fp:= 2
        "GRT" => 
			_pp:= 3
        	_fp:= 2
        "GTC" => 
			_pp:= 2
        	_fp:= 2
        "HBAR" => 
			_pp:= 3
        	_fp:= 1
        "HNT" => 
			_pp:= 3
        	_fp:= 1
        "HOT" => 
			_pp:= 4
        	_fp:= 1
        "ICP" => 
			_pp:= 4
        	_fp:= 1
        "ICX" => 
			_pp:= 3
        	_fp:= 2
        "IMX" => 
			_pp:= 5
        	_fp:= 1
        "IOST" => 
			_pp:= 5
        	_fp:= 2
        "IOTA" => 
			_pp:= 5
        	_fp:= 2
        "IOTX" => 
			_pp:= 5
        	_fp:= 2
        "KAVA" => 
			_pp:= 3
        	_fp:= 2
        "KLAY" => 
			_pp:= 1
        	_fp:= 1
        "KNC" => 
			_pp:= 2
        	_fp:= 2
        "KSM" => 
			_pp:= 5
        	_fp:= 2
        "LINA" => 
			_pp:= 3
        	_fp:= 3
        "LINK" => 
			_pp:= 2
        	_fp:= 2
        "LIT" => 
			_pp:= 5
        	_fp:= 2
        "LPT" => 
			_pp:= 4
        	_fp:= 2
        "LRC" => 
			_pp:= 2
        	_fp:= 2
        "LTC" => 
			_pp:= 4
        	_fp:= 3
        "LUNA" => 
			_pp:= 6
        	_fp:= 3.5
        "MANA" => 
			_pp:= 5
        	_fp:= 2
        "MASK" => 
			_pp:= 4
        	_fp:= 2
        "MATIC" => 
			_pp:= 5
        	_fp:= 3
        "MKR" => 
			_pp:= 5
        	_fp:= 2
        "MTL" => 
			_pp:= 6
        	_fp:= 3
        "NEAR" => 
			_pp:= 5
        	_fp:= 4
        "NEO" => 
			_pp:= 6
        	_fp:= 4
        "NKN" => 
			_pp:= 6
        	_fp:= 2
        "OCEAN" => 
			_pp:= 2
        	_fp:= 3
        "OGN" => 
			_pp:= 4
        	_fp:= 2
        "OMG" => 
			_pp:= 4
        	_fp:= 2
        "ONE" => 
			_pp:= 2
        	_fp:= 2
        "ONT" => 
			_pp:= 3
        	_fp:= 3
        "QTUM" => 
			_pp:= 3
        	_fp:= 4
        "RAY" => 
			_pp:= 3
        	_fp:= 3
        "REEF" => 
			_pp:= 4
        	_fp:= 3
        "REN" => 
			_pp:= 3
        	_fp:= 2
        "RLC" => 
			_pp:= 2
        	_fp:= 4
        "ROSE" => 
			_pp:= 5
        	_fp:= 5
        "RSR" => 
			_pp:= 7
        	_fp:= 5
        "RUNE" => 
			_pp:= 4
        	_fp:= 4
        "RVN" => 
			_pp:= 2
        	_fp:= 1
        "SAND" => 
			_pp:= 5
        	_fp:= 2
        "SC" => 
			_pp:= 4
        	_fp:= 2
        "SFP" => 
			_pp:= 4
        	_fp:= 2
        "SKL" => 
			_pp:= 4
        	_fp:= 2
        "SNX" => 
			_pp:= 2
        	_fp:= 2
        "SOL" => 
			_pp:= 4
        	_fp:= 2
        "SRM" => 
			_pp:= 4
        	_fp:= 2
        "STMX" => 
			_pp:= 3
        	_fp:= 2
        "STORJ" => 
			_pp:= 4
        	_fp:= 2
        "SUSHI" => 
			_pp:= 4
        	_fp:= 2
        "SXP" => 
			_pp:= 5
        	_fp:= 2
        "THETA" => 
			_pp:= 3
        	_fp:= 2
        "TLM" => 
			_pp:= 3
        	_fp:= 2
        "TOMO" => 
			_pp:= 2
        	_fp:= 3
        "TRB" => 
			_pp:= 2
        	_fp:= 3
        "TRX" => 
			_pp:= 3
        	_fp:= 3
        "UNFI" => 
			_pp:= 4
        	_fp:= 4
        "UNI" => 
			_pp:= 4
        	_fp:= 4
        "VET" => 
			_pp:= 4
        	_fp:= 2
        "WAVES" => 
			_pp:= 4
        	_fp:= 2
        "XEM" => 
			_pp:= 2
        	_fp:= 2
        "XLM" => 
			_pp:= 4
        	_fp:= 2
        "XMR" => 
			_pp:= 2
        	_fp:= 2
        "XRP" => 
			_pp:= 5
        	_fp:= 2
        "XTZ" => 
			_pp:= 4
        	_fp:= 2
        "YFI" => 
			_pp:= 2
        	_fp:= 1
        "YFII" => 
			_pp:= 2
        	_fp:= 2
        "ZEC" => 
			_pp:= 3
        	_fp:= 2
        "ZEN" => 
			_pp:= 3
        	_fp:= 3
        "ZIL" => 
			_pp:= 4
        	_fp:= 2
        "ZRX" => 
			_pp:= 3
        	_fp:= 3
    
    [_fp,_pp]


// @function : function returns statisticly predefined values for fib and profit percents on MOST
// @param sring _x: gets the tickername
// @returns : Fib and Profit Percent values will be returned
export vwma_splitter(string _x) =>
    var _tickername = str.split(_x,"USDT")
    _fp = 2.0
    _pp = 4.0
    switch array.get(_tickername,0)
        "1000SHIB" => 
            _pp:= 4.5
            _fp:= 2
        "1000XEC" => 
            _pp:= 6
        	_fp:= 2
        "1INCH" => 
            _pp:= 3
        	_fp:= 2
        "AAVE" => 
            _pp:= 3
        	_fp:= 3
        "ADA" => 
            _pp:= 8
        	_fp:= 2
        "AKRO" => 
            _pp:= 3
        	_fp:= 3
        "ALGO" => 
			_pp:= 3
        	_fp:= 2
        "ALICE" => 
			_pp:= 6
        	_fp:= 2
        "ALPHA" => 
			_pp:= 5
        	_fp:= 1
        "ANKR" => 
			_pp:= 3
        	_fp:= 1
        "AR" => 
			_pp:= 3
        	_fp:= 2
        "ARPA" => 
			_pp:= 3
        	_fp:= 1
        "ATA" => 
			_pp:= 3
        	_fp:= 1
        "ATLASPERP" => 
			_pp:= 5
        	_fp:= 2
        "ATOM" => 
			_pp:= 7
        	_fp:= 2
        "AUDIO" => 
			_pp:= 3.5
        	_fp:= 2
        "AVAX" => 
			_pp:= 5.5
        	_fp:= 2
        "AXS" => 
			_pp:= 4.5
        	_fp:= 2
        "BAKE" => 
			_pp:= 6
        	_fp:= 2
        "BAL" => 
			_pp:= 3
        	_fp:= 2
        "BAND" => 
			_pp:= 2
        	_fp:= 2.5
        "BAT" => 
			_pp:= 2
        	_fp:= 2
        "BCH" => 
			_pp:= 4 
        	_fp:= 2
        "BEL" => 
			_pp:= 4
        	_fp:= 2
        "BLZ" => 
			_pp:= 1.5
        	_fp:= 2
        "BNB" => 
			_pp:= 3
        	_fp:= 2
        "BTCDOM" => 
			_pp:= 1
        	_fp:= 2
        "BTC" => 
			_pp:= 3
        	_fp:= 1
        "BTS" => 
			_pp:= 3
        	_fp:= 1
        "BTT" => 
			_pp:= 3
        	_fp:= 1
        "BZRX" => 
			_pp:= 3
        	_fp:= 2
        "C98" => 
			_pp:= 5
        	_fp:= 2
        "CELO" => 
			_pp:= 3
        	_fp:= 2
        "CELR" => 
			_pp:= 3
        	_fp:= 1
        "CHR" => 
			_pp:= 3
        	_fp:= 1
        "CHZ" => 
			_pp:= 5
        	_fp:= 2
        "COMP" => 
			_pp:= 3
        	_fp:= 2
        "COTI" => 
			_pp:= 3
        	_fp:= 2
        "CRV" => 
			_pp:= 5
        	_fp:= 2
        "CTK" => 
			_pp:= 1
        	_fp:= 2
        "CTSI" => 
			_pp:= 4
        	_fp:= 2
        "CVC" => 
			_pp:= 7
        	_fp:= 2
        "DASH" => 
			_pp:= 1
        	_fp:= 1
        "DEFI" => 
			_pp:= 2
        	_fp:= 2
        "DENT" => 
			_pp:= 4
        	_fp:= 2
        "DGB" => 
			_pp:= 3
        	_fp:= 2
        "DODO" => 
			_pp:= 3
        	_fp:= 2
        "DOGE" => 
			_pp:= 6
        	_fp:= 2
        "DOT" => 
			_pp:= 3
        	_fp:= 2
        "DYDX" => 
			_pp:= 5
        	_fp:= 1
        "EGLD" => 
			_pp:= 5
        	_fp:= 1
        "ENJ" => 
			_pp:= 5
        	_fp:= 1
        "ENS" => 
			_pp:= 3
        	_fp:= 1
        "EOS" => 
			_pp:= 2
        	_fp:= 2
        "ETC" => 
			_pp:= 3
        	_fp:= 2
        "ETH" => 
			_pp:= 3
        	_fp:= 1
        "FIL" => 
			_pp:= 3
        	_fp:= 2
        "FLM" => 
			_pp:= 3
        	_fp:= 2
        "FTM" => 
			_pp:= 5
        	_fp:= 2
        "GALA" => 
			_pp:= 5
        	_fp:= 2
        "GRT" => 
			_pp:= 3
        	_fp:= 2
        "GTC" => 
			_pp:= 4
        	_fp:= 2
        "HBAR" => 
			_pp:= 2
        	_fp:= 1
        "HIGH" => 
			_pp:= 8
        	_fp:= 2
        "HNT" => 
			_pp:= 1
        	_fp:= 2
        "HOT" => 
			_pp:= 3
        	_fp:= 2
        "ICP" => 
			_pp:= 2
        	_fp:= 1
        "ICX" => 
			_pp:= 3
        	_fp:= 2
        "IOST" => 
			_pp:= 5
        	_fp:= 2
        "IOTA" => 
			_pp:= 5
        	_fp:= 2
        "IOTX" => 
			_pp:= 5
        	_fp:= 2
        "KAVA" => 
			_pp:= 5
        	_fp:= 2
        "KEEP" => 
			_pp:= 2
        	_fp:= 1
        "KLAY" => 
			_pp:= 5
        	_fp:= 4
        "KNC" => 
			_pp:= 2
        	_fp:= 1
        "KSM" => 
			_pp:= 3
        	_fp:= 2
        "LINA" => 
			_pp:= 5
        	_fp:= 4
        "LINK" => 
			_pp:= 2
        	_fp:= 2
        "LIT" => 
			_pp:= 5
        	_fp:= 2
        "LPT" => 
			_pp:= 2
        	_fp:= 1
        "LRC" => 
			_pp:= 2
        	_fp:= 2
        "LTC" => 
			_pp:= 2
        	_fp:= 1
        "LUNA" => 
			_pp:= 7
        	_fp:= 2
        "MANA" => 
			_pp:= 5
        	_fp:= 2
        "MASK" => 
			_pp:= 4
        	_fp:= 2
        "MATIC" => 
			_pp:= 5
        	_fp:= 3
        "MKR" => 
			_pp:= 3
        	_fp:= 1
        "MTL" => 
			_pp:= 2
        	_fp:= 1
        "NEAR" => 
			_pp:= 5
        	_fp:= 3
        "NEO" => 
			_pp:= 6
        	_fp:= 4
        "NKN" => 
			_pp:= 5
        	_fp:= 3
        "NU" => 
			_pp:= 4
        	_fp:= 1
        "OCEAN" => 
			_pp:= 2
        	_fp:= 1
        "OGN" => 
			_pp:= 4
        	_fp:= 2
        "OMG" => 
			_pp:= 4
        	_fp:= 2
        "ONE" => 
			_pp:= 2
        	_fp:= 1
        "ONT" => 
			_pp:= 2
        	_fp:= 1
        "QTUM" => 
			_pp:= 3
        	_fp:= 4
        "RAY" => 
			_pp:= 3
        	_fp:= 3
        "REEF" => 
			_pp:= 3
        	_fp:= 1
        "REN" => 
			_pp:= 3
        	_fp:= 2
        "REQ" => 
			_pp:= 5
        	_fp:= 4
        "RLC" => 
			_pp:= 2
        	_fp:= 1
        "RSR" => 
			_pp:= 2
        	_fp:= 1
        "RUNE" => 
			_pp:= 3
        	_fp:= 1
        "RVN" => 
			_pp:= 3
        	_fp:= 1
        "SAND" => 
			_pp:= 5
        	_fp:= 2
        "SC" => 
			_pp:= 4
        	_fp:= 2
        "SFP" => 
			_pp:= 4
        	_fp:= 2
        "SKL" => 
			_pp:= 4
        	_fp:= 2
        "SNX" => 
			_pp:= 8
        	_fp:= 3
        "SOL" => 
			_pp:= 4
        	_fp:= 2
        "SRM" => 
			_pp:= 4
        	_fp:= 2
        "STMX" => 
			_pp:= 3
        	_fp:= 2
        "STORJ" => 
			_pp:= 4
        	_fp:= 2
        "SUSHI" => 
			_pp:= 4
        	_fp:= 2
        "SXP" => 
			_pp:= 5
        	_fp:= 2
        "THETA" => 
			_pp:= 3
        	_fp:= 2
        "TLM" => 
			_pp:= 3
        	_fp:= 2
        "TOMO" => 
			_pp:= 2
        	_fp:= 1
        "TRB" => 
			_pp:= 6 
        	_fp:= 3
        "TRU" => 
			_pp:= 5 
        	_fp:= 2
        "TRX" => 
			_pp:= 3
        	_fp:= 3
        "UNFI" => 
			_pp:= 2
        	_fp:= 1
        "UNI" => 
			_pp:= 2
        	_fp:= 1
        "VET" => 
			_pp:= 2
        	_fp:= 1
        "WAVES" => 
			_pp:= 4
        	_fp:= 2
        "XEM" => 
			_pp:= 2
        	_fp:= 2
        "XLM" => 
			_pp:= 4
        	_fp:= 2
        "XMR" => 
			_pp:= 1
        	_fp:= 4
        "XRP" => 
			_pp:= 5
        	_fp:= 2
        "XTZ" => 
			_pp:= 4
        	_fp:= 2
        "YFI" => 
			_pp:= 8
        	_fp:= 4
        "YFII" => 
			_pp:= 2
        	_fp:= 2
        "ZEC" => 
			_pp:= 3
        	_fp:= 2
        "ZEN" => 
			_pp:= 3
        	_fp:= 3
        "ZIL" => 
			_pp:= 2
        	_fp:= 1
        "ZRX" => 
			_pp:= 7
        	_fp:= 3
    
    [_fp,_pp]
    
// @function : function returns statisticly predefined values on daily-basis for fib and profit percents on MOST
// @param sring _x: gets the tickername
// @returns : Fib and Profit Percent values will be returned
export daily_perp_splitter(string _x) =>
    var _tickername = str.split(_x,"USDT.P")
    _fp = 4.0
    _pp = 8.0
    switch array.get(_tickername,0)
        "1000SHIB" => 
            _pp:= 10
            _fp:= 5
        "1INCH" => 
            _pp:= 12
            _fp:= 7
        "AAVE" => 
            _pp:= 6
            _fp:= 3
        "ADA" => 
            _pp:= 20
            _fp:= 10
        "ALGO" => 
            _pp:= 10
            _fp:= 6
        "AR" => 
            _pp:= 9
            _fp:= 9
        "APE" => 
            _pp:= 6
            _fp:= 9
        "AVAX" => 
            _pp:= 10
            _fp:= 4
        "AXS" => 
            _pp:= 15
            _fp:= 10
        "BAT" => 
            _pp:= 8
            _fp:= 2
        "BNB" => 
            _pp:= 9
            _fp:= 6
        "BNX" => 
            _pp:= 13
            _fp:= 4
        "BTC" => 
            _pp:= 8
            _fp:= 2
        "CHR" => 
            _pp:= 15
            _fp:= 10
        "ETH" => 
            _pp:= 18
            _fp:= 24
        "ETC" => 
            _pp:= 10
            _fp:= 5
        "FLM" => 
            _pp:= 9
            _fp:= 6
        "FTM" => 
            _pp:= 6
            _fp:= 9
        "GMT" => 
            _pp:= 10
            _fp:= 5
        "LTC" => 
            _pp:= 11
            _fp:= 4
        "MATIC" => 
            _pp:= 20
            _fp:= 9
        "MKR" => 
            _pp:= 8
            _fp:= 2
        "NEAR" => 
            _pp:= 18
            _fp:= 10
        "OP" => 
            _pp:= 10
            _fp:= 5
        "SFP" => 
            _pp:= 10
            _fp:= 5
        "SNX" => 
            _pp:= 3
            _fp:= 9
        "SOL" => 
            _pp:= 14
            _fp:= 3
        "TRB" => 
            _pp:= 5
            _fp:= 7
        "XRP" => 
            _pp:= 14
            _fp:= 10
    var _busdticker = str.split(_x,"BUSD.P")
    switch array.get(_busdticker,0)
        "AAVE" => 
            _pp:= 6
            _fp:= 3
        "ADA" => 
            _pp:= 20
            _fp:= 10
        "ALGO" => 
            _pp:= 10
            _fp:= 6
        "AR" => 
            _pp:= 9
            _fp:= 9
        "APE" => 
            _pp:= 6
            _fp:= 9
        "AVAX" => 
            _pp:= 10
            _fp:= 4
        "AXS" => 
            _pp:= 15
            _fp:= 10
        "BAT" => 
            _pp:= 8
            _fp:= 2
        "BNB" => 
            _pp:= 9
            _fp:= 6
        "BNX" => 
            _pp:= 13
            _fp:= 4
        "BTC" => 
            _pp:= 8
            _fp:= 2
        "CHR" => 
            _pp:= 15
            _fp:= 10
        "ETH" => 
            _pp:= 18
            _fp:= 24
        "ETC" => 
            _pp:= 10
            _fp:= 5
        "FLM" => 
            _pp:= 9
            _fp:= 6
        "FTM" => 
            _pp:= 6
            _fp:= 9
        "GMT" => 
            _pp:= 10
            _fp:= 5
        "LTC" => 
            _pp:= 11
            _fp:= 4
        "MATIC" => 
            _pp:= 20
            _fp:= 9
        "MKR" => 
            _pp:= 8
            _fp:= 2
        "NEAR" => 
            _pp:= 18
            _fp:= 10
        "OP" => 
            _pp:= 10
            _fp:= 5
        "SNX" => 
            _pp:= 3
            _fp:= 9
        "SOL" => 
            _pp:= 14
            _fp:= 3
        "TRB" => 
            _pp:= 5
            _fp:= 7
        "XRP" => 
            _pp:= 14
            _fp:= 10


    [_fp,_pp]

// @function : function returns statisticly predefined values on daily-basis for fib and profit percents on MOST
// @param sring _x: gets the tickername
// @returns : Fib and Profit Percent values will be returned
export daily_splitter(string _x) =>
    var _tickername = str.split(_x,"USDT")
    _fp = 4.0
    _pp = 8.0
    switch array.get(_tickername,0)
        "1INCH" => 
            _pp:= 12
            _fp:= 7
        "AAVE" => 
            _pp:= 6
            _fp:= 3
        "ADA" => 
            _pp:= 20
            _fp:= 10
        "AR" => 
            _pp:= 9
            _fp:= 9
        "APE" => 
            _pp:= 6
            _fp:= 9
        "AVAX" => 
            _pp:= 10
            _fp:= 4
        "AXS" => 
            _pp:= 15
            _fp:= 10
        "BNB" => 
            _pp:= 9
            _fp:= 6
        "BNX" => 
            _pp:= 13
            _fp:= 4
        "BTC" => 
            _pp:= 8
            _fp:= 2
        "CHR" => 
            _pp:= 15
            _fp:= 10
        "ETH" => 
            _pp:= 18
            _fp:= 24
        "ETC" => 
            _pp:= 10
            _fp:= 5
        "FLM" => 
            _pp:= 9
            _fp:= 6
        "FTM" => 
            _pp:= 6
            _fp:= 9
        "GMT" => 
            _pp:= 10
            _fp:= 5
        "LTC" => 
            _pp:= 11
            _fp:= 4
        "MATIC" => 
            _pp:= 20
            _fp:= 9
        "NEAR" => 
            _pp:= 18
            _fp:= 10
        "OP" => 
            _pp:= 10
            _fp:= 5
        "SHIB" => 
            _pp:= 10
            _fp:= 5
        "SOL" => 
            _pp:= 14
            _fp:= 3
        "SFP" => 
            _pp:= 10
            _fp:= 5
        "SLP" => 
            _pp:= 10
            _fp:= 5
        "SNX" => 
            _pp:= 3
            _fp:= 9
        "TRB" => 
            _pp:= 5
            _fp:= 7
        "WING" => 
            _pp:= 10
            _fp:= 6
        "XRP" => 
            _pp:= 14
            _fp:= 10


    [_fp,_pp]
