ورود/ثبت‌نام

تحلیل تکنیکال garthg26 درباره نماد BTC : توصیه به خرید (۱۴۰۲/۷/۹)

https://sahmeto.com/message/243685
garthg26
garthg26
رتبه: 16090
1.5
خرید،تکنیکال،garthg26

واردات پاندا به عنوان pdimport numpy به عنوان npimport yfinance به عنوان yf # شما می توانید از API های دیگر برای داده های زمان واقعی استفاده کنید # تعریف رمزنگاری (به عنوان مثال ، Bitcoin) و زمان FrameCrypto_symbol = "BTC-USD" start_date = "2022-01-01" end_date = "2023-01-01"# Fetch Historical datacrypto_data = yf.download (crypto_symbol ، start = start_date ، end = end_date)# محاسبه حرکت AveragessHort_Window = 50long_window = 200Crypto_data ['sma50'] = crypto_data ['Close']. نورد (پنجره = short_window) .Mean () crypto_data ['sma200'] = crypto_data ['Close']. نورد (پنجره = long_window) .mean ()# ایجاد SIGLESCRYPTO_DATA ['سیگنال']] = 0crypto_data ['سیگنال'] [Short_window:] = np.where (crypto_data ['sma50'] [Short_window:]> crypto_data ['sma200'] [Short_window:] ، 1)# تولید/فروش سیگنال های crypto_data ['buy_signal'] = np.where (crypto_data ['signal' ']> crypto_data [' سیگنال ']. تغییر (1) ، 1 ، 0) crypto_data ['sell_signal'] = np.where (crypto_data ['signal']

ترجمه شده از: English
نمایش اصل پیام
نوع سیگنال: خرید
قیمت لحظه انتشار:
‎$۲۷٬۰۷۱٫۲۱
اشتراک گذاری
نماد برگزیده
برترین تریدر‌
دنبال شده
هشدار