@husnullinartur · Post #519 · 10.10.2024 г., 09:06
📚 В период рыночной неопределенности самое время вспомнить о стратегии усреднения долларовой стоимости (DCA). #DCA
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #241 · 5 мај
Можно ли в Python создавать бинарные файлы? Конечно можно. Для этого в Python есть следующие инструменты: ▫️ тип данных bytes и bytearray ▫️ открытие файла в режиме wb (write binary) или rb (read binary) ▫️ модуль struct Про модуль struct поговорим в первую очередь. Файл в формате JSON или Yaml внутри себя содержит разметку данных. Всегда можно определить где список начался а где закончился. Где записана строка а где словарь. То есть формат записи данных содержит в себе элементы разметки данных. В binary-файле данные не имеют визуальной разметки. Это просто байты, записанные один за другим. Правила записи и чтения находятся вне файла. Модуль struct как раз и помогает с организацией данных в таком файле с помощью определения форматов записи для разных частей файла. Модуль struct преобразует Python-объекты в массив байт, готовый к записи в файл и имеющий определённый вид. Для этого всегда следует указывать формат преобразования (или, как оно здесь называется - запаковки). Формат нужен для того, чтобы выделить достаточное количество байт для записи конкретного типа объекта. В последствии с помощью того же формата будет производиться чтение. При этом следует помнить что мы говорим о типах языка С а не Python. Именно формат определяет, что записано в конкретном месте файла, число, строка или что-то еще. Вот какие токены формата у нас есть. Помимо этого, первым символом можно указать порядок байтов. На разных системах одни и те же типы данных могут записываться по-разному, поэтому желательно указать конкретный способ из доступных. Если этого не сделать, то используется символ '@', то есть нативный для текущей системы. В строке формата мы пишем в каком порядке и какие типы собираемся преобразовать в байты. Запакуем в байты простое число, токен "i". >>> import struct >>> struct.pack('=i', 10) b'\n\x00\x00\x00' Теперь несколько float, при этом нужно передавать элементы не массивом а последовательностью аргументов. >>> struct.pack('=fff', 1.0, 2.5, 4.1) b'\x00\x00\x80?\x00\x00 @33\x83@' Вместо нескольких токенов можно просто указать нужное количество элементов перед одним токеном, результат будет тот же. >>> struct.pack('=3f', 1.0, 2.5, 4.1) b'\x00\x00\x80?\x00\x00 @33\x83@' Теперь запакуем разные типы >>> data = struct.pack('=fiQ', 1.0, 4, 100500) я запаковал типы float, int и unsigned long long (очень большой int, на 8 байт) b'\x00\x00\x80?\x04\x00\x00...' Распаковка происходит аналогично, но нужно указать тот же формат, который использовался при запаковке. Результат возвращается всегда в виде кортежа. >>> struct.unpack('=fiQ', data) (1.0, 4, 100500) Как видите, ничего страшного! #lib#basic
Пребарај: #dca
@husnullinartur · Post #519 · 10.10.2024 г., 09:06
📚 В период рыночной неопределенности самое время вспомнить о стратегии усреднения долларовой стоимости (DCA). #DCA
Hashtags
@HostEvaluate · Post #871 · 13.08.2023 г., 12:21
#crunchbits#DCA Host Provider: crunchbits Location: Liberty Lake, Washington, USA Specification: 2vCore (E5-2696 v4) | 3GB RAM | 25GB SSD | 4TB @ 250Mbps | $11.69 / Yearly (Promo code: PATIENCE) 性能上来讲,能用。IP 已不能解锁 Netflix 但仍然算比较干净。现在以 he 为主不像以前基本走 WSI. https://pastebin.com/L2Ja8XjS 流媒体报告 https://pastebin.com/dmMVgQ8r
Hashtags
@slex_io · Post #87 · 08.09.2023 г., 13:34
🎉Check out DCA Strategy page on SLEX🎉 🌈Hey, SLEXians, do you know something about one of the most influential and profitable investment and trading strategies — Dollar-Cost Averaging (DCA)? 📊 DCA investment strategy is: ✅Minimum Risk; ✅ Maximum Returns; ✅ Simplifying Decision-Making. 📚We've prepared the whole page on the SLEX platform to ensure you have comprehensive guides, real-life examples, and pro tips for trading successfully!🎯 📈 Explore DCA — this is Your Path to Profitable Trading on SLEX👉slex.io/dca #SLEX#DCA#CryptoTrading#ProfitableInvesting Email | Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter
@husnullinartur · Post #643 · 04.03.2025 г., 09:38
🔥 Батя в крипте – доллар косит 🔥 Сидим мы тут, братцы, в баньке, парок гоняем, пивком запиваем… И вот зашел разговор: а что, если бы ты, как умный, пять лет назад по соточке баксов в Биток закидывал каждый месяц? 🤔 Ну, считай сам: всего-то вложил 6 000 баксов. Мелочь, а приятно. А сейчас бы на балансе уже 16 657 баксов красовалось! Х2.7 на ровном месте! 🔥 Вот это я понимаю – тема! 🔥 Пацаны, пока кто-то ноет, что рынок скачет, другие просто стабильно кидают бабки и не парятся. DCA – это как отложенный жирок перед зимой, только в битке. 📊 График есть – всё по красоте! 💡 Вывод: Хочешь, чтобы через 5 лет в бане ты уже не просто пивко пил, а вискарь наливал? Просто инвестируй регулярно! 🚀 #Крипта#ПацанскийИнвест#ДелаемБабки#DCA#Bitcoin
@CryptoM · Post #64661 · 09.04.2026 г., 13:04
🚀 Bitcoin's Current Volatility May Present a Generational Buying Opportunity Cryptocurrency analyst Ali Martinez recently shared an analysis on the X platform, suggesting that instead of debating whether Bitcoin has hit its bottom, attention should be focused on whether the current volatility presents a 'generational buying opportunity.' According to Odaily, Martinez identifies key 'value zones' for the current cycle based on long-term trend lines, on-chain liquidity, and cost distribution indicators. The UTXO Realized Price Distribution (URPD) indicates a significant concentration of holdings between $63,111 and $70,685, forming the primary support band. If Bitcoin falls below $63,111, the market may enter a liquidity vacuum. From a long-term perspective, Bitcoin is nearing a critical ascending trend line from the past decade, approximately between $56,000 and $60,000. Historically, this position has often marked the accumulation phase before significant price increases. In more extreme scenarios, the CVDD indicator suggests a structural bottom around $47,960, while the MVRV 0.8 range at approximately $43,647 indicates a market in an 'extreme pain' phase, typically associated with exhaustion of selling pressure. In the event of a black swan event, prices could briefly dip to an extreme range of around $36,657. Based on these zones, Martinez employs a dollar-cost averaging (DCA) strategy, gradually increasing positions across different support bands to reduce overall holding costs. He believes the market is currently in a phase of low sentiment, but potential opportunities are gradually emerging. #Bitcoin#Cryptocurrency#CryptoTrading#MarketAnalysis#Volatility#InvestmentOpportunity#DCA#OnChainAnalysis#CryptoMarket#TradingStrategy#BTC
@addisstandardeng · Post #21605 · 04.03.2026 г., 08:32
News: #Ethiopia, #Kenya agree to launch joint military operations to secure border corridor, #LAPSSET Ethiopia and Kenya have agreed to strengthen security coordination along the #Moyale–#Marsabit–#Turkana corridor, endorsing structured joint military operations aimed at addressing cross-border threats and safeguarding key infrastructure linking the two countries. The agreement is part of renewed efforts to operationalise the existing Defence Cooperation Agreement (#DCA) between the two neighbours. Under the arrangement, the Ethiopian National Defence Force (#ENDF) and the Kenya Defence Forces (#KDF) are expected to undertake phased and coordinated operations targeting vulnerable border areas and strategic assets. In a related development, Ethiopia’s defence ministry also held bilateral talks with a delegation from the #Rwanda Defence Force (#RDF) on the margins of the Adwa anniversary celebrations. According to RDF, discussions focused on deepening.... Read more: https://addisstandard.com/?p=55528