Está en la página 1de 15

# pragma pylint: disable=missing-docstring, invalid-name, pointless-string-

statement
# flake8: noqa: F401

# --- Do not remove these libs ---


import numpy as np # noqa
import pandas as pd # noqa
from pandas import DataFrame

from freqtrade.strategy import (DecimalParameter,IStrategy, IntParameter)

# --------------------------------
# Add your lib to import here
import talib.abstract as ta
import pandas_ta as pd_ta
import technical.indicators as tec
#from technical.util import resample_to_interval, resampled_merge

class NNSTSSLltbot(IStrategy):
# Strategy interface version
INTERFACE_VERSION = 2

buy_params = {
"buy_nn": 0.37
}
sell_params = {
"sell_nn": 0.39,
"days": 4
}

# ROI table:
minimal_roi = {
"0": 0.25
}

# Stoploss:
stoploss = -0.3

# Trailing stop:
trailing_stop = True
trailing_stop_positive = 0.015
trailing_stop_positive_offset = 0.107
trailing_only_offset_is_reached = True

# Optimal timeframe for the strategy.


timeframe = '1h'

# Run "populate_indicators()" only for new candle.


process_only_new_candles = False

# These values can be overridden in the "ask_strategy" section in the config.


use_sell_signal = True
sell_profit_only = False
ignore_roi_if_buy_signal = True
sell_profit_offset = 0.001

# Optional order type mapping.


order_types = {
'buy': 'limit',
'sell': 'limit',
'stoploss': 'market',
'stoploss_on_exchange': False
}

# Optional order time in force.


order_time_in_force = {
'buy': 'gtc',
'sell': 'gtc'
}

#Buy parameters
buy_nn = DecimalParameter(0.1, 1, decimals=2, default=0.37, space="buy")
#Sell parameters
sell_nn = DecimalParameter(0.1, 1, decimals=2, default=0.39, space="sell")
days = IntParameter(1, 5, default=4 , space="sell")

plot_config = {
# Main plot indicators
'main_plot': {
'sslUp':{'color': 'green'},
'sslDown':{'color': 'red'},
'ST':{'color': 'green'}
},
'subplots': {
# Subplots
"RSI": {
'rsi': {'color': 'blue'},
}
}
}
# Indicators
def populate_indicators(self, dataframe: DataFrame, metadata: dict) ->
DataFrame:
# RSI
dataframe['rsi'] = ta.RSI(dataframe)
# SSL
dataframe['sslDown'], dataframe['sslUp'] = tec.SSLChannels(dataframe,10)
# SuperTrend
dataframe['ST'] =
pd_ta.supertrend(dataframe['high'],dataframe['low'],dataframe['close'],lenght=7,mul
tiplier=3.2)[f'SUPERT_7_3.2']
# ANN
dataframe['Ynn'] = self.RedFun(dataframe)['Ynn']

return dataframe

def RedFun(self, dataframe: DataFrame):


df = dataframe.copy()
# Period
p = 5
Yn = 'Yn_' + str(p)
# Normalize
minX =
np.array([1,0.813021702838064,0.81590156176053,0.220138961650175,0.820375717392079,
0.876668186111904,0.660893410941534,0.901561760530052,0.708567854909318,0.793008279
668813,0.220138961650175,0.828909564039497,0.882332643202208,0.684317439947854,0.87
6264949402024,0.698089956869994,0.794287030638102,0.220138961650175,0.8386411435497
1,0.90241501608007,0.684317439947854,0.847766636280766,0.700120323780354,0.78150498
6400725,0.220138961650175,0.850711153887285,0.90934764657308,0.714411496605914,0.84
6480582524272,0.687671232876712,0.810340775558167,0.220138961650175,0.8573998488284
2,0.897588769611891,0.751243309857362,0.848540145985401,0.706067291781577,0.7927910
92658992,0.220138961650175,0.868309397833207,0.887420237010027,0.758655553304815])
gain =
np.array([9.42465753424657,10.6964285714286,5.6003684556596,1.22756233950103,4.4222
6264063648,6.4445701429901,2.88440461078521,5.37702212626981,4.43666741271443,4.668
19440520614,1.22756233950103,4.69588485704714,6.28732064896569,2.9852529904296,4.31
40119598487,3.88406732530816,3.69611292153924,1.22756233950103,4.98819016667864,6.5
9440140430222,2.9852529904296,4.01064573485799,3.63495669255609,3.78415364642767,1.
22756233950103,5.40037677061259,6.60294149143312,3.12565486360853,4.11633589674081,
3.37142049390419,4.02144408867541,1.22756233950103,5.71002565051803,6.2184615322342
2,3.31656203860529,4.28872791280211,3.60812404238742,4.05596258288632,1.22756233950
103,6.05622785982134,5.84694437926564,3.35783514673357])
# Weights
W1 = np.array([[0.0049828,-0.005657,-0.0045866,0.0053447,0.0069432,-
0.0049399,-0.0032369,0.0015359,0.0040651,0.0038115,-0.0043304,-0.0043476,-
0.0044145,0.0031675,0.80809,0.0048609,0.0020094,0.0049324,0.0056086,0.0057455,0.002
568,-0.0078651,-0.0049653,-0.0059475,-0.0048174,-0.0048093,-0.00020917,-0.7378,-
0.33467,-0.90489,0.15225,-0.27828,-0.043669,-0.0050321,0.0071895,-
0.0072597,0.067474,0.58012,0.35951,-0.0067295,-0.0061934,-
0.65575,0.090755,0.60721,-0.0047419,0.21629,-0.12751,0.0019881,-0.0052515,-
0.33651,-0.8565,0.5344,0.83134,-0.043979,-0.11467,-1.6561,-0.10964,0.0089784,-
0.048054,-0.27298,0.14333,-0.0043341,0.75952,-
0.98481,0.0018954,0.36532,0.0070706,0.50611,0.0057718,-0.0056825,-0.0045763,-
0.0051689,-0.78183,1.3145,0.144,-
1.0752,0.71525,0.0046084,0.0041548,0.4187,0.004464,-0.0055698,-
0.0051739,0.25843,0.0030902,-0.0049984,-0.0051388,0.0049971,0.0044113,-
0.62956,0.0053876,-0.0046922,0.0023367,0.0053395,-0.0069261,-0.0042777,-0.31895,-
0.0037523,0.0030702,0.0047867],
[-0.0080803,0.0043981,0.0092743,-
0.0063981,0.0061086,0.0082388,0.0099652,-0.0058419,-0.010072,-
0.010202,0.0097623,0.0097357,0.0096239,-0.0098897,-0.65983,-0.0085114,-0.0073793,-
0.0082661,-0.0047418,-0.0037413,-0.0088599,-
0.012824,0.0081458,0.0021346,0.0086509,0.0086762,0.00082925,0.37546,-
0.35078,0.26926,0.33827,0.54236,0.25927,0.0078876,0.008037,-0.0085877,0.12924,-
0.45711,-0.066175,-0.0044053,6.7313e-05,-0.69852,-0.8176,-0.30776,0.0088758,-
0.38637,1.0656,-0.0073149,0.006894,-0.0098345,-0.96864,-0.64288,-0.042648,-
0.40267,0.29231,-0.3507,0.61901,0.019539,-
0.4714,0.069322,0.7165,0.0097566,0.04075,0.042928,-0.007029,-0.58493,0.0071028,-
0.030047,-0.0035401,0.0042122,0.009298,0.0072955,-0.13959,-0.54169,-0.42386,-
0.9558,-0.31174,-0.0092235,-0.0099878,-0.6304,-
0.0095328,0.0050084,0.0072718,0.35347,-0.0097945,0.0080203,0.0074334,-0.0080254,-
0.0096296,-0.092985,-0.0061545,0.0090125,-0.0082994,-0.0064272,-
0.0059739,0.0098388,0.32187,0.010211,-0.0097681,-0.0087451],
[0.030376,-0.033054,-0.028691,0.031852,0.036792,-0.030198,-
0.021994,0.010815,0.026319,0.025079,-0.027552,-0.027629,-
0.02793,0.021593,0.070405,0.029866,0.014121,0.030166,0.032874,0.033377,0.017885,-
0.038679,-0.030304,-0.034072,-0.029682,-0.029648,-
0.0014696,0.39874,0.19424,0.83181,0.68367,0.080398,0.10359,-0.030581,0.037411,-
0.0376,-0.065347,-0.51216,0.12045,-0.036279,-0.034842,0.83426,-0.042333,-0.39605,-
0.029361,0.17348,0.2469,0.013974,-0.031478,-0.08576,0.64912,-0.38239,-
0.28128,0.17644,0.30756,1.4337,0.28047,0.040239,-0.37783,-0.29134,0.654,-0.027568,-
0.63328,-0.10771,0.013331,-0.46905,0.037095,0.25046,0.03347,-0.033148,-0.028645,-
0.031143,-0.33862,-0.070715,0.48874,0.038131,-0.091693,0.028785,0.026743,-
0.19885,0.028151,-0.032728,-0.031163,-0.1419,0.021139,-0.030441,-
0.03102,0.030436,0.027916,0.52553,0.032022,-0.029148,0.016354,0.031831,-0.036751,-
0.027311,-0.4469,-0.024779,0.021021,0.029552],
[-0.014538,0.013479,0.014649,-0.014129,-
0.0090872,0.014566,0.013017,-0.0071063,-0.014367,-
0.01407,0.014567,0.014576,0.014606,-0.012853,-0.82006,-0.014606,-0.009081,-
0.01457,-0.013599,-0.013242,-
0.011129,0.0060152,0.01455,0.012627,0.014623,0.014625,0.00099483,0.19567,0.35734,-
0.077567,-0.62327,1.052,0.02734,0.014501,-0.0082568,0.008029,-0.52791,0.5763,-
0.11394,0.0098448,0.011783,0.6376,-0.28395,-0.64439,0.014642,0.22624,-0.3868,-
0.0089962,0.014267,1.0909,-0.86314,-0.80579,0.27861,0.052448,-
0.14824,0.10538,0.22546,-0.0027036,-0.088749,0.17254,-0.17412,0.014569,-0.33717,-
0.44181,-0.0086222,0.026803,-0.0086482,-0.0017923,-
0.013167,0.013413,0.014648,0.01437,0.32551,0.681,-0.40394,0.36504,-0.26441,-
0.014651,-0.014447,0.0013905,-0.014624,0.013691,0.014364,-0.16926,-
0.012662,0.014527,0.014403,-0.014528,-0.014605,-0.096125,-0.014057,0.01465,-
0.010326,-0.014137,0.0091471,0.014536,-0.17306,0.013986,-0.012611,-0.014632],
[0.031832,-0.034615,-0.02991,0.033434,0.036596,-0.031632,-
0.022046,0.0098416,0.027138,0.025676,-0.028584,-0.028675,-
0.029026,0.021577,0.15362,0.031257,0.013221,0.031596,0.034449,0.034899,0.017324,-
0.036602,-0.031751,-0.035446,-0.031048,-0.031009,-0.0012752,-
0.8399,1.0015,0.45042,-0.15743,0.49814,-0.7016,-0.032061,0.036759,-
0.036823,0.27017,-0.055864,-0.66189,-0.036487,-0.035932,-0.48764,-0.30217,-
0.44814,-0.030681,0.36314,0.7511,0.013066,-0.03304,0.82475,-0.44953,-0.53057,-
0.33053,0.66687,0.1267,0.97287,-0.0075894,0.03579,-0.02124,-0.17722,0.013421,-
0.028604,0.53661,-1.2099,0.012394,0.25578,0.036656,0.34093,0.034978,-0.034699,-
0.029857,-0.032679,0.0061397,-0.73587,-0.38006,-0.4045,0.69175,0.030019,0.027636,-
0.21861,0.029283,-0.034311,-0.032701,0.78822,0.021049,-0.031905,-
0.032545,0.031899,0.02901,-0.74452,0.03361,-0.030437,0.015624,0.033413,-0.036588,-
0.028303,0.37065,-0.025323,0.020911,0.0309],
[-0.038106,0.038285,0.037,-0.038546,-
0.03184,0.038013,0.029901,-0.015148,-0.034823,-
0.033503,0.036023,0.036094,0.036364,-0.029408,1.6105,-0.037825,-0.019665,-
0.037996,-0.038372,-0.03808,-
0.024681,0.026199,0.038069,0.037399,0.037711,0.037689,0.0020745,-0.60408,0.28289,-
0.32367,0.21866,0.10489,-0.24519,0.038203,-0.030449,0.030085,-0.05743,-
0.42929,0.75614,0.033145,0.036252,0.15082,0.16318,-
0.27085,0.037497,0.23216,0.37196,-0.019466,0.038498,-0.16428,0.74268,-0.031303,-
0.15845,0.20355,-0.12213,0.82766,-0.21481,-0.019451,0.17304,-0.075533,-
0.54715,0.036038,0.20015,-0.025437,-0.018594,0.44512,-0.031082,-0.42022,-
0.038008,0.038232,0.036964,0.038415,-0.30601,0.37968,-0.28341,0.33406,0.53338,-
0.037074,-0.035249,0.6429,-0.036556,0.038429,0.038421,-0.0078561,-
0.028845,0.038138,0.038376,-0.038135,-0.036351,-0.36833,-0.03855,0.037347,-
0.02266,-0.038544,0.031944,0.035799,-0.14896,0.033171,-0.028698,-0.037626],
[-0.003454,0.00098463,0.0041161,-
0.0023939,0.0081832,0.003547,0.0042227,-0.002171,-0.0044645,-
0.0044776,0.0043483,0.0043367,0.0042863,-0.0041695,0.017712,-0.0037039,-0.0028345,-
0.0035629,-0.0012374,-0.00049008,-0.0035604,-0.014874,0.0034926,-
0.00077824,0.0037824,0.0037965,0.00029365,-0.28555,-0.60957,-0.79308,-
0.11987,0.16776,-0.36558,0.0033391,0.009977,-0.010474,-0.077938,0.53708,0.17783,-
0.0065688,-0.0025147,-0.21808,-0.27091,-0.46925,0.0039063,0.2574,0.62031,-
0.0028052,0.0027192,0.018174,0.21823,-0.075819,-0.6411,0.019071,-0.35062,-0.71019,-
0.34103,0.0223,0.49891,-0.56498,-0.24276,0.0043458,0.21688,-0.56485,-0.002677,-
0.11682,0.0091272,-0.20624,-0.00033565,0.00084609,0.0041281,0.0029749,-
0.43029,0.58374,-0.011092,-0.031956,-0.001058,-0.0040902,-0.0044378,0.42265,-
0.0042436,0.0014305,0.0029601,-0.93607,-0.0041054,0.0034184,0.0030612,-0.0034214,-
0.0042889,-0.36313,-0.0022305,0.0039798,-0.003272,-0.0024132,-0.0080549,0.0043807,-
0.46014,0.0044685,-0.004088,-0.0038347],
[0.0039759,-0.004969,-0.0038586,0.0043361,0.010327,-
0.0039522,-0.0041199,0.0030354,0.0039221,0.0039894,-0.0038703,-0.0038681,-
0.0038612,0.0041273,0.73796,0.0039165,0.0036386,0.0039483,0.0048468,0.0052164,0.004
0407,-0.01459,-0.0039658,-0.0058901,-0.003901,-0.0038984,-
0.00046167,0.2626,0.28997,0.029575,0.86629,0.52266,0.15142,-0.0040074,0.011446,-
0.011754,0.037885,-0.181,-0.34375,-0.0093216,-0.0068747,-0.16136,0.78985,0.35219,-
0.0038802,-0.091173,-0.011532,0.0036164,-0.0042114,-0.68057,0.64299,-
0.128,0.46323,0.18059,0.4389,0.23743,-0.16685,0.019423,0.62348,-0.23296,-0.42209,-
0.0038698,0.55157,-0.16639,0.0035145,0.42141,0.010918,0.19961,0.0052957,-
0.0050372,-0.0038581,-0.0041211,-
0.1018,0.64248,0.0098787,0.31342,0.062771,0.0038601,0.0039015,0.014912,0.0038581,-
0.0047556,-0.0041261,-0.18893,0.004132,-0.0039854,-0.0040925,0.0039845,0.0038615,-
0.050201,0.0044025,-0.0038704,0.0039157,0.0043284,-0.010247,-0.0038781,0.21334,-
0.0040058,0.0041326,0.0038916],
[0.012134,-0.016302,-0.010308,0.014185,0.025878,-0.011918,-
0.0058816,0.0021506,0.0083587,0.0075381,-0.009298,-0.0093624,-0.0096171,0.0056964,-
0.010645,0.011532,0.0030185,0.01188,0.015954,0.016954,0.0042137,-0.031685,-
0.012046,-0.018494,-0.011326,-0.011288,-0.00026095,0.44326,0.24048,0.30492,-
0.31134,0.61195,-0.52785,-0.01239,0.027593,-0.02809,-0.19868,-0.041824,-0.31569,-
0.024383,-0.0204,0.46098,-0.045755,0.012467,-0.01098,-0.042488,-0.43829,0.0029766,-
0.013616,0.014162,-0.50459,0.020364,0.21885,-0.053457,-0.40898,-
0.085396,0.13712,0.037292,0.18032,0.67076,-0.29702,-0.0093119,-
0.081673,0.0063135,0.0027976,-0.20969,0.026753,0.39484,0.017151,-0.016488,-
0.010265,-0.013137,0.41115,0.47381,-0.27642,-0.83873,-0.40913,0.010399,0.008666,-
0.55575,0.0098102,-0.01568,-0.013166,0.023971,0.0054938,-0.012215,-
0.012967,0.012208,0.0096047,-0.14423,0.014457,-0.010759,0.0036964,0.014152,-
0.02576,-0.0091037,-0.33794,-0.0073555,0.005442,0.011184],
[-0.012986,0.013008,0.012736,-0.013073,-
0.011578,0.012966,0.010761,-0.0056782,-0.012189,-
0.011829,0.012498,0.012516,0.012583,-0.010607,0.13498,-0.012925,-0.0073111,-
0.012962,-0.013028,-0.012961,-
0.0090584,0.010314,0.012978,0.012809,0.012899,0.012894,0.00078628,0.81428,-
0.55208,1.1396,-0.6539,0.55288,-0.20315,0.013006,-
0.011284,0.011212,0.65742,0.30639,-0.59241,0.011866,0.012554,-0.20738,0.054571,-
0.54525,0.012851,-0.075046,-0.079031,-0.0072401,0.013065,0.027072,0.18117,-
0.52018,0.15551,0.076629,-0.63715,-0.33297,0.55866,-0.0086992,-0.60181,-
0.13667,0.091397,0.012502,-0.90281,0.29426,-0.0069281,-0.2986,-0.011412,-0.4896,-
0.012944,0.012995,0.012728,0.01305,-0.21537,0.16507,-0.48943,0.3029,-0.94749,-
0.012753,-0.012301,1.008,-0.01263,0.013041,0.013051,-0.70265,-
0.01043,0.012992,0.013042,-0.012992,-0.01258,0.27496,-0.013073,0.012817,-
0.0083647,-0.013073,0.0116,0.012442,-0.72858,0.011735,-0.010383,-0.01288],
[-0.024124,0.024097,0.023624,-0.024279,-
0.02083,0.024085,0.019804,-0.010379,-0.022537,-
0.021837,0.023149,0.023184,0.023317,-0.019514,-0.31733,-0.024003,-0.013388,-
0.024078,-0.024148,-0.023983,-
0.016622,0.01801,0.024109,0.023624,0.023953,0.023943,0.0014327,0.17885,-
0.56372,0.59494,0.65756,0.0041653,-0.14593,0.024165,-0.020124,0.019935,-0.25552,-
0.06851,-0.43136,0.021482,0.023039,0.13813,0.6928,0.21148,0.023856,-0.25285,-
1.1262,-0.013257,0.024272,0.16748,-0.15129,-0.68498,0.11488,-
0.017701,0.13406,0.40127,0.29051,-0.014669,0.084009,-0.053034,0.59054,0.023156,-
0.053089,0.015835,-0.012681,-1.0059,-0.020449,-0.44299,-
0.023944,0.024067,0.023607,0.024246,0.055795,0.63582,1.3823,0.35616,-0.046869,-
0.023659,-0.022758,0.34465,-0.023411,0.024182,0.024248,-0.46724,-
0.01918,0.024138,0.024232,-0.024137,-0.023311,0.14775,-0.024274,0.023787,-
0.015336,-0.02428,0.020882,0.023037,-0.19748,0.021657,-0.019092,-0.023915],
[-0.073878,0.078927,0.070564,-0.076709,-
0.084733,0.073531,0.056517,-0.0293,-0.065769,-0.063189,0.068281,0.068439,0.069045,-
0.055621,0.030821,-0.072883,-0.037795,-0.073469,-0.078602,-0.079497,-
0.047038,0.087243,0.073737,0.080682,0.072522,0.072455,0.0040514,0.63369,0.7188,0.37
066,0.42431,0.45507,-0.031364,0.074276,-0.085671,0.085979,0.52462,-0.25849,-
0.88814,0.084015,0.081913,-0.25747,0.30847,0.15121,0.07189,0.45763,-0.1644,-
0.037423,0.076,0.0072318,-0.12523,-0.72904,0.20437,-0.29807,0.44876,0.17077,-
0.32572,-0.088882,0.47776,0.17873,0.40132,0.068316,-0.10591,0.4186,-
0.035795,0.69259,-0.085169,0.15076,-0.07966,0.079094,0.070474,0.07536,-0.20414,-
0.77445,-0.096221,-0.55445,0.88009,-0.070752,-0.066638,-0.11502,-
0.069487,0.078337,0.075399,0.1351,-0.054601,0.074005,0.075123,-0.073994,-
0.069016,0.6748,-0.077029,0.07147,-0.043337,-
0.07667,0.084676,0.067796,0.42808,0.062557,-0.054333,-0.072266],
[-0.03428,0.033315,0.033708,-0.034134,-
0.025163,0.034251,0.027748,-0.013993,-0.032073,-
0.030964,0.033018,0.033071,0.033269,-0.027295,0.71972,-0.034175,-0.018206,-
0.034244,-0.03349,-0.03295,-
0.0229,0.018972,0.034269,0.03192,0.034121,0.03411,0.0019096,-0.71929,-
0.13808,0.18559,-0.28947,0.65665,-0.1258,0.034302,-0.023574,0.023155,0.1719,-
0.024795,-0.24167,0.026656,0.030392,-
0.43314,0.23504,0.503,0.034009,0.34596,0.38071,-0.01802,0.034245,-0.57075,-
0.56886,0.47588,0.66538,-0.15819,-0.025654,-0.093995,0.3211,-0.011921,-
0.07937,0.43197,-0.16763,0.033029,0.40451,0.44264,-0.017205,0.8002,-0.024304,-
0.074898,-0.032831,0.033215,0.033684,0.034298,-0.36512,0.33635,0.1269,-
0.02578,0.17772,-0.033755,-0.032418,-0.34738,-0.033406,0.033617,0.034296,0.7513,-
0.026777,0.034288,0.034308,-0.034287,-0.03326,-0.93069,-0.034063,0.033923,-
0.021009,-0.034142,0.025281,0.032848,-0.36942,0.030677,-0.026641,-0.034078],
[0.0021631,-0.0038363,-0.0016824,0.0028856,0.010278,-
0.0020981,-0.0011541,0.00084218,0.0013435,0.0012543,-0.0014842,-0.0014954,-
0.0015416,0.0011475,0.33057,0.0019875,0.00099545,0.002087,0.0036654,0.0041713,0.001
0947,-0.015204,-0.0021362,-0.0050367,-0.0019313,-0.0019212,-
0.0001311,0.50697,0.3406,-0.60949,-0.1698,0.90634,0.31361,-0.0022426,0.011589,-
0.011955,0.16684,-0.02982,1.3201,-0.0091112,-0.006238,0.12454,0.73354,0.5935,-
0.0018412,0.24303,0.44835,0.00099,-0.0026657,0.049675,0.36244,-
0.070663,0.7841,0.76583,-0.88035,-0.19944,-0.6542,0.020781,0.19606,-0.94849,-
0.3267,-0.0014866,0.028371,-0.72861,0.0009647,-0.42419,0.010965,1.2316,0.0042762,-
0.00393,-0.0016729,-0.0024921,0.14054,0.49642,-
0.14991,1.078,0.15901,0.0017027,0.0013849,-0.07259,0.0015786,-0.0035351,-
0.0025022,-0.69538,0.0011408,-0.0021878,-0.0024333,0.0021857,0.0015392,-
0.40862,0.0029959,-0.0017868,0.001063,0.0028726,-0.010185,-0.0014516,-0.71738,-
0.0012384,0.0011391,0.0018935],
[0.020855,-0.023704,-0.019751,0.022179,0.032442,-0.020722,-
0.016453,0.0091877,0.018532,0.017947,-0.019137,-0.019177,-
0.019334,0.016247,0.50533,0.020486,0.011657,0.020698,0.023441,0.02421,0.014152,-
0.038517,-0.0208,-0.025472,-0.020362,-0.020339,-0.0012986,-0.67056,0.062897,-
0.0071974,0.4843,0.4677,-0.21891,-0.021013,0.03414,-
0.034623,0.12446,0.4087,0.0099305,-0.030948,-0.027147,-0.14914,0.72036,0.28969,-
0.020154,-0.8701,0.057922,0.011552,-0.021798,0.019839,0.018487,-0.021796,-
0.03,0.10998,0.61443,0.32711,-0.47214,0.044868,0.69157,-0.40399,0.26141,-0.019146,-
0.3188,-0.093408,0.011089,-0.18587,0.033321,-0.11339,0.024366,-0.023847,-0.019725,-
0.021486,-0.28414,0.34965,-
0.30718,0.33003,0.47812,0.019806,0.018735,0.36691,0.019451,-0.023237,-0.021504,-
1.3389,0.016009,-0.020904,-0.021377,0.0209,0.019326,-1.0545,0.022365,-
0.020022,0.013181,0.022156,-0.032324,-0.019016,-0.27374,-
0.017806,0.015946,0.020276],
[-0.0030752,0.0020405,0.0033357,-
0.0026339,0.0017609,0.0031131,0.0031737,-0.0016104,-0.0034338,-
0.0034032,0.0034134,0.0034101,0.0033947,-0.0031321,0.18486,-0.0031764,-0.0021161,-
0.0031196,-0.0021468,-0.0018327,-0.0026686,-
0.0044727,0.003091,0.001302,0.0032077,0.0032132,0.00021422,0.1465,-
0.059309,0.18736,0.46828,-0.32076,0.40875,0.0030282,0.0025169,-0.0027319,-0.97292,-
0.20545,-0.16975,-
0.0010957,0.00057932,0.71533,0.155,0.038207,0.0032563,0.29204,0.30478,-
0.0020938,0.0027704,0.62566,-0.75562,-0.15272,-0.44008,-0.76254,-0.05355,-
0.092396,-0.54213,0.0072885,0.24746,0.6183,-0.17669,0.0034127,0.48893,-0.48284,-
0.0019959,0.29366,0.0021524,-0.30055,-
0.0017679,0.0019822,0.0033401,0.0028773,0.55428,0.35585,1.1776,-0.37555,0.1526,-
0.0033262,-0.0034332,-0.31658,-0.0033806,0.0022281,0.0028711,-0.065163,-
0.0030826,0.0030607,0.0029132,-0.0030619,-0.0033955,-0.11868,-0.0025651,0.0032846,-
0.0024496,-0.002642,-0.0017079,0.003422,0.31063,0.0033895,-0.0030693,-0.0032283],
[0.039738,-0.04447,-0.036992,0.042284,0.051729,-0.039439,-
0.027191,0.012807,0.033358,0.031538,-0.035217,-0.035337,-
0.035801,0.026642,0.66328,0.03889,0.01689,0.039386,0.044136,0.045073,0.021698,-
0.055544,-0.039616,-0.046394,-0.038588,-0.038532,-0.0017156,0.2776,0.56767,-
0.32488,0.36153,0.13303,0.22418,-0.040083,0.052972,-0.053354,0.15056,0.43952,-
0.40195,-0.050708,-0.047882,0.15547,0.86084,-0.32835,-0.038065,-0.54753,-
0.22371,0.016706,-0.041625,0.80916,-0.043064,-0.30984,0.63147,-0.077789,0.75986,-
0.26739,0.27033,0.058791,0.01451,-0.38864,0.44108,-
0.035243,0.42417,0.678,0.015904,-1.2835,0.052337,-0.3444,0.045249,-0.044645,-
0.03692,-0.041043,-0.51716,0.29614,0.1505,0.25159,-
0.85108,0.037142,0.033991,0.67824,0.036144,-0.043867,-0.041078,0.49355,0.026024,-
0.039847,-0.040831,0.039838,0.035779,0.58859,0.042587,-0.037721,0.019718,0.042247,-
0.051648,-0.03485,-0.55105,-0.031106,0.025863,0.038375],
[0.060949,-0.066704,-0.05743,0.064098,0.074715,-0.060572,-
0.043867,0.021548,0.05258,0.050071,-0.055089,-0.055249,-
0.055865,0.043063,0.49415,0.059875,0.028135,0.060505,0.066313,0.067404,0.035645,-
0.078783,-0.060795,-0.068908,-0.05949,-0.059418,-0.0029301,-0.040261,-
0.70748,0.56922,-0.1551,-0.64056,-0.72403,-0.061382,0.076117,-0.076566,0.14025,-
0.17537,0.19098,-0.073615,-0.070559,-0.26108,-0.4605,-0.018039,-0.05882,0.23566,-
0.10659,0.027842,-0.063294,0.25264,0.485,0.036289,-0.37682,0.23832,-
0.15832,0.30375,-0.10866,0.081917,0.12289,0.028143,-0.033103,-0.055124,0.14505,-
0.19199,0.026561,-0.32274,0.075381,0.32307,0.067607,-0.066908,-0.057337,-
0.062577,0.034572,0.30267,0.56474,-0.76767,0.1105,0.057626,0.053441,-
0.0066364,0.056318,-0.065995,-0.062621,-0.45437,0.042154,-0.061086,-
0.062314,0.061075,0.055836,0.43544,0.064465,-0.058377,0.032587,0.064053,-0.074627,-
0.054599,0.48708,-0.049466,0.041917,0.059218],
[0.031046,-0.035329,-0.028568,0.033361,0.041008,-0.030775,-
0.020068,0.008814,0.025348,0.023765,-0.026986,-0.027092,-
0.027505,0.019609,0.23045,0.030277,0.011841,0.030727,0.035032,0.03586,0.015579,-
0.043354,-0.030936,-0.036996,-0.030004,-0.029953,-0.0011469,-0.20043,0.24064,-
0.38646,-1.1619,-0.027541,-0.96399,-0.031359,0.041893,-0.042179,0.12356,-
0.3331,0.21222,-0.040308,-0.038213,-0.12002,-0.76534,-0.50238,-
0.029532,0.10137,0.26524,0.011701,-0.032762,-0.20767,-0.76869,0.93934,-0.40973,-
0.34581,-0.18695,0.39292,-0.45208,0.044694,0.34982,-0.48091,0.090179,-
0.027009,0.51202,0.54339,0.011098,-0.28296,0.041423,0.32464,0.036014,-0.035484,-
0.028504,-0.032233,0.66223,-0.23406,0.20915,-
0.36934,0.85319,0.028702,0.025903,0.51997,0.02781,-0.034791,-
0.032265,0.48823,0.019096,-0.031145,-0.03204,0.031137,0.027485,-0.24294,0.033636,-
0.029223,0.014018,0.033328,-0.040953,-0.026661,0.5317,-0.023392,0.018963,0.029812],
[-0.022718,0.021428,0.022504,-0.022348,-
0.013384,0.022722,0.018618,-0.0092986,-0.02151,-
0.020783,0.022104,0.022137,0.022256,-0.018311,-0.067314,-0.022711,-0.012135,-
0.022722,-0.021613,-0.021052,-
0.015318,0.007243,0.02272,0.020017,0.022695,0.022691,0.0012629,0.3624,0.0083514,0.3
8446,-0.16566,-1.1666,-0.040362,0.022703,-0.011786,0.011354,-0.27583,-
0.47318,0.16115,0.014855,0.018513,-0.45949,-0.4717,-0.40276,0.022652,-0.071271,-
0.42816,-0.012009,0.022506,0.60366,-0.4533,-0.003203,-0.094106,0.49793,-
0.059582,0.17779,0.26665,-0.00028062,-0.36904,0.4697,-0.47905,0.022111,-0.13475,-
0.36253,-0.011459,0.42774,-0.01253,0.11209,-0.02093,0.021325,0.022491,0.022608,-
0.26958,0.20489,-0.8174,0.35112,0.93613,-0.022529,-0.02173,-0.22931,-
0.022335,0.021749,0.022603,-0.70814,-0.017958,0.022714,0.022636,-0.022715,-
0.02225,-0.071719,-0.022258,0.022613,-0.014033,-0.022358,0.013501,0.022,-
0.63236,0.020593,-0.017866,-0.02268],
[-0.014451,0.014255,0.014053,-0.01452,-
0.010487,0.014423,0.011005,-0.005047,-0.013153,-
0.012583,0.013659,0.013688,0.013799,-0.01079,0.11979,-0.01436,-0.0067437,-
0.014417,-0.014319,-0.014114,-
0.008767,0.0072646,0.01444,0.013688,0.01432,0.014312,0.00065958,-0.28014,0.38223,-
0.5396,0.21428,-0.66119,-0.40777,0.01448,-0.0096797,0.0094643,-
0.49403,0.25102,0.69493,0.011232,0.013012,-
0.39196,0.93108,0.84682,0.014243,0.21441,-1.399,-0.0066664,0.014536,-0.12013,-
0.089729,0.25092,-0.48554,0.18113,-0.10613,0.27344,-0.11068,-0.0034306,0.16596,-
0.57083,-0.0079677,0.013665,0.57645,0.29434,-0.0063306,0.69045,-0.010052,0.33091,-
0.014067,0.014217,0.014039,0.014529,0.31607,0.25366,0.22988,0.11247,0.54399,-
0.014082,-0.013334,0.39736,-0.013876,0.014364,0.01453,-0.065765,-
0.010545,0.014461,0.014522,-0.01446,-0.013794,-0.38221,-0.014504,0.014186,-
0.0079346,-0.014521,0.010547,0.013566,0.26561,0.012438,-0.010481,-0.01429],
[0.036611,-0.039955,-0.034941,0.038289,0.048066,-0.036425,-
0.028571,0.015241,0.032741,0.031587,-0.033877,-0.033949,-
0.034228,0.028158,0.22711,0.036087,0.019546,0.036393,0.039681,0.04047,0.024101,-
0.053482,-0.036535,-0.041702,-0.035903,-0.035868,-0.0021224,0.23892,-
0.10608,0.30727,0.5143,0.14424,-0.51357,-0.036828,0.0496,-
0.050039,0.37162,0.81961,-0.47935,-0.046724,-0.043273,0.36566,0.84557,0.19006,-
0.035586,-0.049771,-0.42703,0.01936,-0.037835,0.67296,0.56645,-0.23966,-
0.47535,0.31636,0.1585,0.1165,0.34237,0.059114,-0.51043,0.79117,0.22587,-0.033893,-
0.55698,-0.52194,0.018541,-0.02522,0.048856,0.30921,0.040626,-0.040102,-0.034898,-
0.037447,0.48716,0.058508,-0.11157,0.12315,-0.25825,0.035031,0.033132,-
0.10836,0.034434,-0.039466,-0.03747,-0.064396,0.027686,-0.03668,-
0.037308,0.036674,0.034215,0.45511,0.038504,-0.035379,0.022297,0.038263,-0.047959,-
0.033656,-0.11727,-0.031305,0.027561,0.035773],
[-0.03462,0.035413,0.033483,-0.035258,-
0.033367,0.034517,0.026779,-0.013222,-0.031402,-0.03016,0.03254,0.032609,0.032867,-
0.026317,-0.23613,-0.034315,-0.017298,-0.034499,-0.035416,-0.035383,-
0.021908,0.031636,0.034579,0.035204,0.034196,0.034173,0.0017879,0.36996,0.0078372,-
0.096228,0.25663,0.084843,-0.037334,0.034732,-0.032946,0.032842,-
0.02335,0.41721,0.17594,0.03379,0.034832,-0.36901,-
0.26539,0.24427,0.033977,0.25997,0.28594,-0.017116,0.035136,-
0.34735,0.15509,0.60013,-0.045907,0.018418,-0.54117,-0.29823,-0.40184,-
0.029731,0.33915,-0.4749,-0.39789,0.032555,-0.931,-0.49965,-0.016324,-0.73189,-
0.03313,0.36179,-0.035368,0.035408,0.033448,0.035002,-0.24569,-0.018453,-
0.1519,0.38145,-0.21289,-0.033556,-0.031806,0.097313,-0.033051,0.035411,0.035011,-
0.53991,-0.02579,0.034656,0.034948,-0.034653,-0.032855,0.19389,-0.035303,0.033826,-
0.020041,-0.035252,0.0334,0.032327,-0.069871,0.029848,-0.025652,-0.034109],
[0.027816,-0.030995,-0.026007,0.029517,0.035871,-0.027618,-
0.019628,0.0097459,0.02364,0.022459,-0.024849,-0.024927,-
0.025229,0.019267,0.70908,0.027255,0.012668,0.027583,0.030768,0.031403,0.015978,-
0.038376,-0.027735,-0.032298,-0.027056,-0.027018,-0.0013361,0.28548,-
0.117,1.07,0.22191,-0.15353,0.37225,-0.028045,0.036725,-0.036995,1.062,0.57439,-
0.91478,-0.035191,-0.033302,-1.0993,-0.29103,-0.59649,-
0.026711,0.71309,0.099687,0.012538,-0.029074,-0.021166,-0.085065,0.13857,-
0.54399,0.11612,0.20784,-0.55867,-0.4105,0.040293,1.0038,0.14494,0.28526,-
0.024866,-0.61116,-0.020373,0.011972,-0.13192,0.03628,-0.24086,0.031523,-0.031114,-
0.02596,-0.028685,-0.46143,-0.054561,-0.062878,0.20814,-
0.14761,0.026105,0.024051,0.8361,0.025453,-0.030586,-0.028709,-0.034638,0.018861,-
0.027889,-0.028543,0.027882,0.025215,0.54439,0.029721,-0.026485,0.014631,0.029492,-
0.035817,-0.02461,-0.4821,-0.022178,0.018755,0.026915],
[-0.011744,0.0111,0.011654,-0.011542,-
0.0079131,0.011748,0.0095636,-0.00454,-0.011142,-
0.010753,0.011454,0.01147,0.011531,-0.0093936,-0.051403,-0.011747,-0.0060205,-
0.011749,-0.011185,-0.010928,-
0.0077413,0.0058155,0.011746,0.010476,0.011742,0.01174,0.00059985,0.35215,0.35364,-
0.093597,0.15723,-0.19429,0.33967,0.011734,-0.0073298,0.0071695,-0.21588,-0.25226,-
0.011008,0.0084491,0.0098537,0.38137,0.26554,-0.47865,0.011723,0.32135,-0.58788,-
0.0059537,0.011624,-0.3649,-0.60497,0.52679,-0.21172,0.8623,0.33092,-0.098811,-
0.68704,-0.0037191,0.92805,0.8735,-0.43779,0.011457,-0.48303,0.45456,-
0.0056629,0.81183,-0.0076051,0.25886,-
0.010874,0.011052,0.011648,0.011678,0.6588,0.64264,0.025744,0.65315,-0.69481,-
0.011666,-0.011259,0.33435,-0.011571,0.011249,0.011675,-0.0098067,-
0.0091984,0.011741,0.011694,-0.011741,-0.011528,-0.025213,-0.011496,0.011706,-
0.00704,-0.011547,0.0079553,0.0114,-0.49172,0.010649,-0.009147,-0.011735],
[-0.055451,0.057919,0.053467,-0.056924,-
0.060574,0.055255,0.043265,-0.022145,-0.050217,-
0.048339,0.051966,0.052073,0.052479,-0.042571,0.20787,-0.054883,-0.028679,-
0.05522,-0.057782,-0.058154,-
0.035869,0.062494,0.055372,0.058626,0.054671,0.05463,0.0030435,-0.069065,-0.41468,-
0.66607,0.54537,-1.0636,1.8581,0.055671,-
0.061184,0.061388,0.53386,0.62109,0.21934,0.060142,0.059123,0.45263,1.0837,0.1953,0
.054292,0.49539,0.51224,-0.028392,0.056576,0.013638,-
0.72116,1.0681,0.38564,0.47862,0.54362,-0.30609,-0.62323,-
0.064503,1.5641,0.82138,0.2918,0.05199,0.40612,-0.37321,-0.027134,0.082481,-
0.060856,-0.5306,-0.05822,0.057989,0.05341,0.05625,0.48526,-0.039691,-0.63393,-
0.37595,-0.030849,-0.053586,-0.050832,-1.1133,-0.052771,0.057668,0.05627,-0.85645,-
0.041777,0.055522,0.056126,-0.055516,-0.05246,-0.80585,-0.057076,0.054034,-
0.032982,-0.056905,0.060538,0.051635,0.48566,0.04787,-0.041568,-0.054518],
[-0.020218,0.019197,0.020057,-0.019923,-
0.012764,0.020222,0.016953,-0.0088197,-0.019281,-
0.018705,0.019747,0.019772,0.019865,-0.0167,0.49131,-0.020214,-0.011391,-0.020222,-
0.019343,-0.0189,-0.01418,0.0077863,0.02022,0.018081,0.020203,0.0202,0.0012163,-
0.61782,-0.26881,-0.33124,-0.25562,0.24617,-0.13387,0.020206,-
0.011474,0.011126,0.37611,0.72906,-0.26784,0.013951,0.016884,0.68072,0.096224,-
0.90966,0.02017,0.3767,-0.48152,-0.011279,0.020048,0.11843,-0.025223,-0.25196,-
0.51202,-0.24705,-0.2818,-0.63318,0.22026,-0.0021015,-0.29743,0.20533,-
0.0098573,0.019753,-0.51588,0.51493,-0.010785,0.15425,-0.012074,0.61903,-
0.018804,0.019116,0.020047,0.020129,-0.33113,-0.12781,-0.24552,-0.17551,0.088424,-
0.020076,-0.019454,0.13719,-0.019927,0.01945,0.020125,0.013896,-
0.016408,0.020215,0.020151,-0.020215,-0.019861,-0.15125,-0.019852,0.02014,-
0.013067,-0.019931,0.012858,0.019666,-0.25819,0.018553,-0.016331,-0.020191],
[0.011587,-0.013966,-0.010618,0.012728,0.020213,-0.01147,-
0.0082908,0.004757,0.0096184,0.0091971,-0.010098,-0.010131,-0.010261,0.0081796,-
0.35954,0.011263,0.0059535,0.01145,0.013758,0.014361,0.0071373,-0.024319,-
0.011539,-0.015313,-0.011153,-0.011133,-
0.00068932,0.024265,0.12143,0.30665,0.38634,-0.56913,0.12857,-0.011726,0.021391,-
0.02173,-0.25431,0.025725,-0.64766,-0.019187,-0.016531,1.0713,-0.044687,0.13283,-
0.01097,-0.069457,0.1539,0.0059035,-0.012405,0.5224,-0.17074,0.31836,-
0.55828,0.12389,0.39432,0.33618,-1.0485,0.028485,0.37395,-0.40882,-0.11299,-
0.010105,-0.35975,-0.38399,0.0056816,-0.015525,0.020817,0.23278,0.014481,-
0.014078,-0.010595,-0.012137,-0.42585,0.019998,0.71739,-
0.22796,0.19409,0.010665,0.0097751,-0.064527,0.01036,-0.013596,-
0.012153,0.091063,0.0080543,-0.011631,-
0.012043,0.011627,0.010255,0.54731,0.012883,-0.010854,0.0066764,0.012709,-
0.020132,-0.0099983,-0.11488,-0.0091021,0.0080217,0.011077],
[0.0065726,-0.0065096,-0.0068029,0.0064459,0.0090106,-
0.006595,-0.0072331,0.0048186,0.0070945,0.0071946,-0.0069557,-0.0069458,-
0.0069068,0.0072146,-
0.25095,0.0066387,0.0059063,0.0065991,0.0064843,0.0065728,0.0067859,-0.011462,-
0.0065816,-0.0068011,-0.0066638,-0.0066686,-0.00071209,0.00064999,-
0.17166,0.091948,0.36346,0.034653,-0.073689,-0.0065481,0.0095871,-
0.0097337,1.5021,0.8977,-1.2239,-0.0084645,-0.0072213,-0.1947,0.53522,0.081073,-
0.0067085,-0.12166,-0.56856,0.0058637,-0.0064641,0.23593,-0.20139,0.30109,-
0.37193,0.26077,-0.79292,-0.076209,0.38317,0.014578,0.5167,0.14932,-0.27278,-
0.0069535,0.6168,-0.27383,0.005671,0.54613,0.0093294,-0.019057,0.0065958,-
0.0065255,-0.0068092,-0.00649,-0.48553,-0.32355,-
0.19352,0.29782,0.03175,0.0067897,0.0070507,0.65913,0.0068773,-0.0064686,-
0.0064881,0.47456,0.007187,-0.0065646,-
0.0065013,0.0065653,0.0069087,0.26016,0.0064423,-0.0067385,0.0064787,0.0064466,-
0.0089669,-0.0069853,-0.050706,-0.007212,0.0071786,0.0066819],
[0.005438,-0.0068791,-0.0047362,0.0061764,0.0095884,-
0.005357,-0.002956,0.0014292,0.0039533,0.0036196,-0.0043338,-0.0043596,-
0.0044618,0.0028835,0.42932,0.0052109,0.0018311,0.0053427,0.0067676,0.0070838,0.002
311,-0.011105,-0.0054048,-0.0075484,-0.0051322,-0.0051177,-0.00020373,-
1.4041,0.4263,-0.015253,-0.5089,-0.81258,0.62669,-0.005533,0.010076,-0.010225,-
0.58669,0.4134,-0.3499,-0.0091854,-0.0080956,-0.75506,-0.41315,0.31846,-0.0049989,-
0.50234,1.0655,0.0018132,-0.0059771,-0.80887,1.6586,-0.23375,-0.34819,-0.683,-
0.71431,0.16766,-0.6463,0.012363,0.1042,-0.80304,-1.0185,-
0.0043393,0.031071,0.31171,0.0017351,0.23444,0.0098283,-0.66848,0.0071446,-
0.0069381,-0.0047192,-0.0058058,-0.54728,0.20564,0.45424,0.59223,-
0.23593,0.004772,0.0040782,-0.085255,0.004539,-0.0066789,-0.0058161,-
0.11001,0.0028045,-0.0054679,-0.0057446,0.0054654,0.0044569,0.57425,0.00627,-
0.0049132,0.0021089,0.006165,-0.0095564,-0.0042554,0.1218,-
0.0035455,0.0027844,0.0050775],
[0.014746,-0.017369,-0.013443,0.016091,0.022269,-0.014597,-
0.0096438,0.0047237,0.011911,0.011209,-0.012671,-0.012722,-
0.01292,0.0094537,0.38126,0.014328,0.0061461,0.014571,0.017166,0.017743,0.0077768,-
0.024902,-0.014685,-0.018594,-0.014183,-0.014156,-0.00064726,-0.15321,-
0.011057,0.19859,0.18768,0.2615,-0.25565,-0.01492,0.023096,-0.023341,0.38016,-
0.26001,-0.60614,-0.021559,-0.019595,1.4385,-0.017072,0.16026,-0.013936,-0.62594,-
0.046635,0.0060828,-0.015729,-0.41516,0.10268,0.62638,-0.013855,0.016409,-0.8691,-
0.50244,0.47987,0.027182,-0.1186,-0.46255,-0.23336,-0.012682,-
0.89644,0.33148,0.0058065,-0.0010155,0.022683,0.93718,0.017855,-0.017477,-
0.013411,-0.015417,0.6715,-0.33084,-0.38975,0.015418,-
0.45021,0.013511,0.012165,0.26502,0.013068,-0.017004,-0.015436,-0.1023,0.0092413,-
0.014801,-0.015306,0.014796,0.01291,-0.71551,0.016261,-0.013776,0.0071092,0.01607,-
0.022213,-0.012517,0.23589,-0.011046,0.0091863,0.014082],
[0.034866,-0.039214,-0.032549,0.037142,0.046614,-0.034607,-
0.024863,0.012724,0.02964,0.028224,-0.031111,-0.031206,-0.03158,0.024435,-
0.011601,0.034136,0.016417,0.034562,0.03889,0.039805,0.020492,-0.050472,-0.03476,-
0.041126,-0.03388,-0.033832,-0.0017626,-0.25511,0.3949,-0.50352,-0.98918,-
0.13056,0.46868,-0.035166,0.047871,-0.048254,0.7248,-0.27113,-0.48393,-0.045566,-
0.042647,-0.28542,-0.0004696,0.88552,-0.033439,-0.0065768,-0.41862,0.016255,-
0.036539,-0.84398,0.26324,0.44375,0.34198,-0.39325,-0.83699,0.17071,-
0.081404,0.053625,0.27152,0.40725,0.29468,-0.031132,-0.55887,-
0.29694,0.015545,0.8113,0.047232,0.44733,0.03998,-0.039385,-0.03249,-0.036015,-
1.4838,-0.2156,0.048296,-0.26789,-0.84563,0.032672,0.030137,0.16205,0.031857,-
0.038631,-0.036047,0.43289,0.023952,-0.034961,-0.035826,0.034953,0.031562,-
0.12092,0.037422,-0.033152,0.018848,0.037108,-0.046531,-0.030818,-1.0138,-
0.027889,0.023827,0.0337],
[-0.054948,0.057571,0.05288,-0.056512,-
0.059879,0.054742,0.042638,-0.021787,-0.04957,-
0.047685,0.051343,0.051451,0.051866,-0.04195,-0.15877,-0.054351,-0.028231,-
0.054705,-0.057426,-0.057817,-
0.035327,0.061158,0.054865,0.058294,0.054129,0.054087,0.002991,-1.1093,0.4176,-
0.16315,-0.24414,-0.4713,0.20564,0.05518,-0.06033,0.060485,-0.22832,0.39487,-
0.25463,0.059567,0.058757,-1.3682,-0.16462,0.23159,0.053734,-1.0925,-0.59958,-
0.027948,0.056141,0.18033,1.5647,-0.069179,-0.14148,0.89775,-1.3086,-
0.63437,0.26586,-0.062325,-0.48974,1.2052,-0.029692,0.051366,0.51027,0.088715,-
0.026707,-0.48007,-0.060081,-1.5291,-
0.057885,0.057644,0.052821,0.055793,0.38649,1.4151,-0.30692,2.3179,-1.3615,-
0.053003,-0.050191,-0.91107,-0.052165,0.057305,0.055815,-0.27972,-
0.041165,0.055022,0.055662,-0.055016,-0.051846,-0.36101,-0.056675,0.053467,-
0.032477,-0.056492,0.059853,0.051006,-0.8679,0.047216,-0.040959,-0.05397],
[-0.012744,0.011196,0.012909,-0.012166,-
0.0037113,0.012782,0.011289,-0.0060081,-0.012622,-
0.012319,0.012829,0.012838,0.012869,-0.011134,-0.58889,-0.012838,-0.007722,-
0.012788,-0.01138,-0.010829,-0.0095428,-
0.0020133,0.01276,0.009848,0.012862,0.012866,0.00083414,-
0.1474,0.0052453,0.60166,0.99561,-0.0070257,-0.54087,0.012693,-
0.0021962,0.0017782,0.33739,0.4986,-0.077784,0.0050763,0.0084513,-
0.19556,0.22238,0.12809,0.012891,-0.0069929,-0.12255,-
0.0076477,0.012364,0.02641,0.059215,-0.090146,0.16962,0.062044,-
0.23875,0.43003,0.30845,0.0084431,0.50343,0.1325,-
0.2624,0.012831,0.074965,0.51621,-0.0073209,-0.51574,-0.0029115,-0.61375,-
0.010712,0.011094,0.012909,0.012509,-0.12271,0.26088,-0.19331,-0.20603,0.21465,-
0.01291,-0.012705,-0.3587,-0.012887,0.011518,0.012501,-0.2244,-
0.010954,0.012729,0.012555,-0.01273,-0.012868,-0.50974,-0.012062,0.012903,-
0.008822,-0.012178,0.0038199,0.012797,0.046218,0.012234,-0.010906,-0.012876],
[-0.010817,0.008977,0.011131,-0.010069,-
0.0022162,0.010873,0.009618,-0.0046677,-0.010949,-
0.010663,0.011116,0.011121,0.011137,-0.0094591,-0.075437,-0.010963,-0.0061583,-
0.010883,-0.0091752,-0.0085892,-0.0078655,-
0.0021944,0.010841,0.0076018,0.011004,0.011011,0.00062215,0.63124,0.36678,0.72414,-
0.075327,-0.3865,-0.25577,0.010744,-0.00098612,0.00064646,0.48916,0.61371,-
0.211,0.0033385,0.0062795,-0.41909,0.38919,0.45864,0.011061,0.10143,-0.51377,-
0.0060914,0.010312,-1.0011,0.65802,0.36567,0.40145,0.33756,0.07095,0.1772,-
0.17866,0.0066603,1.0496,-0.10049,-0.38624,0.011117,-0.34306,-0.29652,-
0.0057999,0.53106,-0.0015692,-0.69292,-0.0084683,0.0088684,0.011134,0.010496,-
0.78574,-0.80667,-0.21239,0.26381,0.69701,-0.011125,-0.011021,0.7789,-
0.011143,0.0093263,0.010485,0.66295,-0.009275,0.010794,0.010556,-0.010796,-
0.011137,0.4219,-0.0099455,0.011091,-0.0071736,-0.010084,0.0023045,0.011094,-
0.13535,0.010579,-0.0092264,-0.011029],
[0.03673,-0.038691,-0.035588,0.037746,0.043737,-0.03661,-
0.029998,0.016311,0.033843,0.032833,-0.034777,-0.034834,-
0.035052,0.029595,0.38082,0.036388,0.020829,0.036589,0.038537,0.038982,0.025529,-
0.047603,-0.036681,-0.039688,-0.036264,-0.036241,-
0.002286,0.052457,0.57918,0.45652,-0.02303,-0.22121,0.43249,-0.036867,0.044789,-
0.04509,0.4766,0.9919,0.027255,-0.04283,-0.040623,0.098238,0.14428,-0.43496,-
0.036047,-0.14329,-0.64872,0.020635,-0.03748,0.31023,-0.33905,-0.38881,-0.13532,-
0.2837,0.052518,0.22418,-0.0031246,0.051951,-0.21169,-0.81901,0.50331,-0.03479,-
0.31829,0.71123,0.01978,-0.19704,0.044279,0.75121,0.03907,-0.038774,-0.035557,-
0.037249,-0.13286,0.41484,0.32344,-0.37737,-
0.64672,0.035654,0.034171,0.30693,0.035209,-0.038416,-0.037263,-0.99825,0.029131,-
0.036774,-0.037165,0.03677,0.035042,-0.46782,0.03787,-0.035902,0.02368,0.037731,-
0.043665,-0.0346,0.19576,-0.032578,0.029008,0.036176],
[0.050541,-0.057398,-0.046921,0.054115,0.069493,-0.050137,-
0.034995,0.017181,0.042388,0.040186,-0.044679,-0.044828,-
0.045409,0.034339,0.16388,0.0494,0.022412,0.050066,0.056882,0.058341,0.028379,-
0.076013,-0.050376,-0.060464,-0.048999,-0.048925,-
0.00234,0.011178,0.14307,0.25991,-0.49551,-0.9238,0.51075,-0.051011,0.071582,-
0.072215,-0.68437,-0.42623,0.1932,-0.067746,-0.062934,0.82962,-0.64626,0.71673,-
0.048311,-0.6053,1.3677,0.022179,-0.053167,-1.2909,1.5896,0.59277,0.86707,-
0.03312,0.41883,0.016528,0.79157,0.081553,-0.94667,-0.15316,-0.66325,-0.044711,-
0.59376,0.56792,0.021163,0.43241,0.070525,-1.2849,0.05862,-0.05767,-0.046829,-
0.052343,-0.13185,0.24597,-0.8916,0.10674,0.17149,0.047113,0.043162,-
0.4172,0.045841,-0.05647,-0.052393,0.08421,0.0336,-0.05069,-
0.052046,0.050677,0.045381,0.52707,0.054558,-0.047863,0.025947,0.054062,-0.069355,-
0.044222,-0.61367,-0.039667,0.033408,0.048718],
[-0.0055035,0.0032984,0.0061687,-
0.0045042,0.0027133,0.0055953,0.0060651,-0.0030092,-0.0065051,-
0.0064849,0.0064023,0.006391,0.006341,-0.0059833,-0.75767,-0.0057514,-0.0039783,-
0.0056111,-0.0035054,-0.0029037,-0.005061,-
0.0062295,0.0055415,0.0019465,0.0058303,0.0058444,0.00039747,0.5651,0.080132,-
0.78464,0.56978,0.0048197,0.65176,0.0053912,0.0037497,-
0.0040438,0.30255,0.054706,0.2241,-0.0017847,0.00073719,-0.67629,0.10067,-
0.32748,0.0059554,-0.22585,-0.19395,-0.003935,0.0048018,-0.12279,-0.72338,0.46446,-
0.50603,-0.49292,-0.2661,-0.76069,-0.036697,0.0095073,0.49623,-
0.13762,0.21822,0.0063999,0.43937,-0.018169,-0.0037461,-0.11214,0.0032487,0.25857,-
0.0027832,0.0031865,0.0061809,0.0050414,-0.45085,0.29319,0.40788,0.44385,0.0095,-
0.0061423,-0.0064852,-0.63828,-0.006298,0.0036662,0.0050274,-0.27612,-
0.0058852,0.0054686,0.0051233,-0.0054716,-0.0063436,0.24619,-0.0043575,0.0060299,-
0.0046286,-0.0045217,-0.0026405,0.0064335,-0.076875,0.0064647,-0.0058588,-
0.005883],
[0.019571,-0.024117,-0.017518,0.021836,0.033559,-0.019329,-
0.012293,0.0061188,0.015288,0.014327,-0.01637,-0.016443,-
0.016734,0.012052,0.15125,0.018897,0.0079217,0.019287,0.023746,0.024805,0.0099594,-
0.03879,-0.019472,-0.026401,-0.018666,-0.018624,-0.00084439,1.0573,-0.56087,-
0.11424,0.27393,-0.17523,0.6081,-0.019855,0.035174,-0.035649,-
0.48692,0.1104,1.1051,-0.032161,-0.028321,0.4658,-0.40056,-0.18989,-
0.018277,0.44793,0.89823,0.007842,-0.021212,-0.67985,0.88405,0.5968,0.6294,-
0.34669,0.38173,0.3959,-0.12577,0.043422,0.013601,0.28581,-0.40635,-
0.016386,0.88017,-0.48742,0.0074936,-0.064193,0.034374,-0.39471,0.025011,-
0.024314,-0.017469,-0.020684,-0.24295,-0.68897,0.11747,-
0.68976,0.3966,0.017621,0.015644,-0.27397,0.016954,-0.023453,-
0.020715,0.29057,0.011785,-0.01966,-0.020496,0.019653,0.01672,1.0822,0.022132,-
0.018028,0.0091281,0.0218,-0.033448,-0.016147,0.3449,-0.01411,0.011716,0.018506],
[0.024326,-0.027987,-0.022366,0.026258,0.033298,-0.024107,-
0.016187,0.0076428,0.019959,0.018817,-0.021167,-0.021246,-0.021556,0.01586,-
1.5122,0.023707,0.01008,0.024068,0.02772,0.028469,0.012934,-0.03536,-0.024236,-
0.02952,-0.023489,-0.023449,-0.0010217,1.6378,-1.1613,0.84567,-0.43816,0.56136,-
0.97515,-0.024581,0.034042,-0.034267,0.45654,0.88567,0.25853,-0.032656,-
0.03067,1.4284,-0.6566,-0.63794,-0.023117,-0.047212,-0.11977,0.0099702,-0.025748,-
0.9468,1.0493,0.10204,0.31721,0.7222,-0.0039726,-0.50475,1.3591,0.036592,-
1.2307,0.83814,0.83683,-0.021184,-0.8041,-1.5196,0.0094922,0.44072,0.033664,-
0.64284,0.02861,-0.028127,-0.022317,-0.025303,0.43456,-
0.19392,0.44775,0.88382,0.44102,0.02247,0.020365,-0.29661,0.021787,-0.027505,-
0.02533,-0.15532,0.015493,-0.024407,-0.025143,0.0244,0.021541,0.83645,0.026494,-
0.022874,0.011762,0.026229,-0.033248,-0.020925,0.27818,-0.01855,0.015398,0.023337],
[-0.028322,0.027419,0.027884,-0.028163,-
0.019765,0.028302,0.023198,-0.01195,-0.026603,-
0.025733,0.027344,0.027386,0.027541,-0.02284,-1.0033,-0.028246,-0.015468,-
0.028297,-0.027577,-0.027088,-
0.019315,0.013693,0.028315,0.026147,0.028205,0.028197,0.0016424,0.30994,-0.13915,-
0.32994,0.16265,0.0075716,-0.057022,0.028337,-0.018193,0.017767,0.041959,-0.50607,-
0.049122,0.021205,0.024735,0.035938,-0.091727,-0.47084,0.028119,0.23053,-0.72184,-
0.015314,0.028268,0.66778,0.18009,0.00091759,-0.25082,0.18835,0.88497,-0.02055,-
0.55374,-0.0067682,-0.63256,0.24538,-0.62313,0.027353,0.2142,-0.7456,-
0.014637,0.41682,-0.018926,0.55006,-0.026979,0.027329,0.027866,0.028321,0.076694,-
0.63867,0.26517,0.28319,0.090729,-0.027921,-0.026873,-0.12836,-
0.027648,0.027692,0.028318,-0.15265,-0.022428,0.028328,0.028332,-0.028328,-
0.027534,0.11319,-0.028098,0.028052,-0.017775,-
0.02817,0.01988,0.027211,0.63966,0.025508,-0.02232,-0.028172],
[0.045204,-0.050165,-0.042535,0.047789,0.059616,-0.044909,-
0.033013,0.016819,0.039063,0.037312,-0.040838,-0.040952,-0.041396,0.032454,-
0.35809,0.04437,0.02176,0.044857,0.04979,0.050855,0.027224,-0.065286,-0.045083,-
0.05243,-0.044076,-0.044021,-0.0023176,-1.1093,-0.44577,-
0.53879,0.50041,0.3433,0.072514,-0.045546,0.061353,-0.061876,0.89149,-0.40493,-
0.068527,-0.058164,-0.054312,0.52032,-0.33192,-0.67854,-
0.043568,0.47523,0.35267,0.021542,-0.047105,0.33043,-
0.14546,0.22589,0.11835,0.10943,1.1003,0.28276,0.076568,0.070584,-0.47272,0.99174,-
0.10367,-0.040863,-0.20793,0.73968,0.020591,0.25644,0.060481,-0.049598,0.05106,-
0.050364,-0.042466,-0.04651,-0.23782,0.28653,0.32805,0.057288,-
0.63942,0.042679,0.039668,-1.4548,0.041723,-0.049491,-0.046546,0.0826,0.03182,-
0.045312,-0.046296,0.045303,0.041374,-0.70951,0.048108,-0.043237,0.025021,0.04775,-
0.059501,-0.040488,0.080609,-0.036892,0.031654,0.043869],
[0.076958,-0.081125,-0.074057,0.079316,0.086737,-0.076661,-
0.06035,0.031523,0.069592,0.067081,-0.071969,-0.072115,-
0.072675,0.059427,0.18047,0.076104,0.040619,0.076608,0.080859,0.081595,0.050447,-
0.089996,-0.076838,-0.082601,-0.075791,-0.075732,-0.0043633,0.068418,-0.071294,-
0.04744,0.038578,-0.32792,0.078243,-0.077295,0.087761,-0.088076,-
0.077236,0.028581,0.28775,-0.085909,-0.083719,0.31684,0.13426,-0.86416,-0.075238,-
0.44227,-0.68589,0.040222,-0.078734,-0.10096,-0.98393,0.34985,1.2483,-
0.18149,1.4293,-0.56547,-0.02479,0.09308,0.11017,-0.41658,-0.081887,-0.072,-
0.71639,-0.051552,0.038481,0.02243,0.087238,0.19701,0.081731,-0.081262,-0.073977,-
0.078204,0.16526,0.080765,-0.80167,-0.54956,-
0.2172,0.074226,0.070423,0.93813,0.073081,-0.080643,-0.078237,-0.34747,0.058371,-
0.077066,-0.078007,0.077056,0.072648,0.023574,0.079578,-
0.074867,0.046525,0.079284,-0.08667,-0.071515,-0.23177,-
0.066457,0.058094,0.075567]])
W2 = np.array([0.019697168055759970567,0.21471221501433479517,-
0.22900853534169224313,-
0.20487323550177952147,0.22285289392927093433,0.24487353157991539887,-
0.21369447459194929051,-
0.16182620020989993415,0.081534048177865955931,0.19027741885950569256,0.18233886795
588577501,-0.19796261434812373325,-0.19844132980554587964,-
0.20028307194419384119,0.15908756346750144162,1.9237044465928332393,0.2117875087176
6716113,0.10594392367296510959,0.21351290877507506094,0.22812172495619609247,0.2305
581152645279075,0.13315594641932956832,-0.25280097456525624233,-
0.21429909944937922117,-0.23373935111973362377,-0.21072120555200396508,-
0.21052078443162028365,-0.011151997762727357266,2.2183548171386751058,-
1.9366213185151104348,-
2.4923446107386304504,2.0361753396578712305,1.9014128710913857923,2.223972491716472
7103,-0.21587176331139815155,0.24767682697416473769,-0.24860723542913037987,-
2.1779680108305785602,1.6892393966087879686,-1.8324588681746745156,-
0.24279226441992979302,-0.23702406321558505686,-2.2706565641560563229,-
1.7749354636255443296,-1.8925641273920774665,-0.20884422733348564916,-
1.6513803882207518381,-2.1145884742049632088,0.10486595860495909194,-
0.22084136426358488836,2.1778925540088125423,2.1467378665008385319,1.72178960140749
13769,2.1644521546901942521,2.3078681711949751154,-
2.1654775278884597078,1.9614831760275293071,-
2.1787908613076401032,0.25934487504214148723,-1.4600294329960665785,-
2.2126320247438693301,1.3842378897759215484,-0.19806651973712458004,-
2.193053000001542685,1.7494553471769025421,0.10014903815555979694,2.074303831319218
3608,0.24616723852205024681,-2.1649965225310836558,0.23099946650381608659,-
0.22946554764275947647,-0.20460273667690176413,-
0.21900784761615071927,1.814035788069700228,-
2.2206423123283753895,1.8100675484905468515,-
2.4691414236456155074,1.8437232039370146097,0.20543796517904377996,0.19294243384380
466155,-2.2368873966710096646,0.20162357982030518211,-0.22739268349480470932,-
0.21912153073016202298,1.6499882395431599846,0.15597273999624036711,-
0.21508183279866546767,-
0.21832791444342267151,0.21505060033314168932,0.20019503020929044212,-
1.7859439966847370229,0.22375440927489184673,-
0.2075901180820672598,0.12217265951946551517,0.22274179909396302213,-
0.24470559972438110652,-0.1964816696264183038,-1.8494928367085490262,-
0.18039282753567206785,0.155157714987881723,0.20996107965536797701])
# Activation function
def G(V):
return 2/(1+np.exp(-2*V))-1 #Sigmoid Symmetric Transfer Function
# Default
df[Yn]=0.00
# Cycle: Input Data, X->NN->Y
# Input Data
Xa=np.array( [ df['high'].iat[-1], df['low'].iat[-1], df['close'].iat[-
1] ])/np.array( [df['open'].iat[-p-1]] )
Xr=np.array( [ df['rsi'].iat[-1]/50 ] )
Xs=np.array( [ df['sslDown'].iat[-1], df['sslUp'].iat[-1], df['ST'].iat[-1]
] )/np.array( [df['open'].iat[-p-1]] )
X =np.concatenate( (Xa,Xr,Xs),axis=None)
for i in range(2, p+2):
Xa=np.array( [ df['high'].iat[-i], df['low'].iat[-i], df['close'].iat[-
i] ])/np.array( [df['open'].iat[-p-1]] )
Xr=np.array( [ df['rsi'].iat[-i]/50 ] )
Xs=np.array( [ df['sslDown'].iat[-i], df['sslUp'].iat[-i],
df['ST'].iat[-i] ] )/np.array( [df['open'].iat[-p-1]] )
X =np.concatenate( (Xa,Xr,Xs,X),axis=None)
# ANN - Matrix multiplication
A = np.dot( np.concatenate( (1, -1 + gain*( X-minX ) ), axis=None), W1)
Y = np.dot( np.concatenate( (1, G(A)), axis=None), W2)
# Output
#print(Y)
df[Yn]=Y
return DataFrame(index=df.index, data={
'Ynn' : df[Yn]
})

a='Trade'
b='datetime'
def custom_sell(self, pair: str, trade: a, current_time: b, current_rate:
float,
current_profit: float, **kwargs):
# Sell any positions at a loss if they are held for more than 4 days
if current_profit < 0.0 and (current_time - trade.open_date_utc).days >=
self.days.value:
return 'unclog'

def populate_buy_trend(self, dataframe: DataFrame, metadata: dict) ->


DataFrame:
dataframe.loc[
(
(dataframe['Ynn'] < -self.buy_nn.value) & # ANN Buy
(dataframe['rsi'] < 90) &
(dataframe['volume'] > 0) # Volume 0
),
['buy', 'buy_tag']] = (1, 'buy_nn')
return dataframe

def populate_sell_trend(self, dataframe: DataFrame, metadata: dict) ->


DataFrame:
dataframe.loc[
(
(dataframe['Ynn'] > self.sell_nn.value) & # ANN Sell
(dataframe['volume'] > 0) # Volume 0
),
['sell', 'sell_tag']] = (1, 'sell_nn')
if metadata['pair'] in ('SOL/USDT'):
# dataframe['pair']='SOL/USDT'
dataframe.to_csv('list_buy_SOL.csv', index=False)
#if metadata['pair'] in ('LUNA/USDT'):
# dataframe['pair']='LUNA/USDT'
# dataframe.to_csv('list_buy_LUNA.csv', index=False)
#if metadata['pair'] in ('DOT/USDT'):
# dataframe['pair']='DOT/USDT'
# dataframe.to_csv('list_buy_DOT.csv', index=False)
#if metadata['pair'] in ('ETH/USDT'):
# dataframe['pair']='ETH/USDT'
# dataframe.to_csv('list_buy_ETH.csv', index=False)
#if metadata['pair'] in ('AVAX/USDT'):
# dataframe['pair']='AVAX/USDT'
# dataframe.to_csv('list_buy_AVAX.csv', index=False)
#if metadata['pair'] in ('ADA/USDT'):
# dataframe['pair']='ADA/USDT'
# dataframe.to_csv('list_buy_ADA.csv', index=False)
return dataframe

También podría gustarte