DOI: https://doi.org/10.55041/ijsmt.v2i4.156
تاريخ النشر: 2026-04-09
المؤلف: Janhvi Patil وآخرون
الموضوع الرئيسي: طرق التنبؤ بسوق الأسهم
نظرة عامة
تقدم هذه الورقة منصة تداول مدعومة بالذكاء الاصطناعي تستفيد من نماذج اللغة الكبيرة (LLMs) لتسهيل إنشاء واست validation والمحاكاة ونشر استراتيجيات تداول العملات المشفرة باستخدام أوصاف اللغة الطبيعية. من خلال القضاء على الحاجة إلى مهارات البرمجة، تعالج المنصة الحواجز التقنية الكبيرة التي يواجهها المستثمرون الأفراد في التداول الخوارزمي التقليدي. تتميز بهندسة موزعة تشمل واجهة أمامية متنقلة تعتمد على فلاتر، وواجهة برمجة تطبيقات REST من جانغو للوظائف الأساسية، وميكروسيرفيس FastAPI لاستدلال LLM. يستخدم النظام خط أنابيب مهام غير محجوز يديره Redis وCelery للتعامل مع العمليات كثيفة الحوسبة، مما يضمن أداءً فعالًا واستجابة سريعة.
تتضمن المنصة وحدة تحقق قائمة على القواعد لضمان السلامة المنطقية والامتثال لمعايير المخاطر قبل تنفيذ الاستراتيجيات. يسمح محرك الاختبار المدمج للمستخدمين بتحليل الأداء بأثر رجعي، بينما يتم تسهيل التداول المباشر من خلال اتصالات مباشرة مع واجهات برمجة تطبيقات تبادل العملات المشفرة. تشير النتائج التجريبية إلى أن المنصة تخفض بشكل كبير عتبة المهارة لتطوير الاستراتيجيات، مما يوسع المشاركة في السوق للمستخدمين غير التقنيين مع الحفاظ على معايير موثوقية وأداء عالية. يدعم التصميم المعياري قابلية التوسع والتكيف، مما يمهد الطريق لتحسينات مستقبلية مثل التعلم المعزز لتحسين الاستراتيجيات الديناميكية وقدرات معالجة اللغة الطبيعية المحسنة. بشكل عام، تُظهر هذه العمل أن دمج الذكاء الاصطناعي مع بنية برمجية قوية يمكن أن ي democratize الوصول إلى التداول الخوارزمي دون المساس بسلامة النظام.
مقدمة
تناقش مقدمة هذه الورقة البحثية التأثير التحويلي للأنظمة التجارية الآلية على الأسواق المالية الحديثة، مع التأكيد على التحديات التي يواجهها المتداولون الأفراد الذين يفتقرون إلى مهارات البرمجة. بينما توفر المنصات التجارية الحالية أدوات للمستخدمين ذوي الخبرة لتطوير استراتيجيات التداول، إلا أنها لا تزال تتطلب فهمًا أساسيًا للتفكير الخوارزمي، مما يستبعد العديد من المتداولين الخوارزميين المحتملين. تقدم التقدمات الأخيرة في الذكاء الاصطناعي التوليدي، وخاصة نماذج اللغة الكبيرة (LLMs)، فرصًا جديدة لترجمة نوايا التداول البشرية غير الرسمية إلى منطق حوسبي منظم.
تقترح الورقة منصة موحدة تسمح للمستخدمين بالتعبير عن استراتيجياتهم التجارية بلغة طبيعية، والتي يقوم النظام بعد ذلك بتحويلها إلى منطق قابل للتنفيذ تم التحقق منه. تدمج هذه المنصة مكون توليد يعتمد على LLM مع طبقة تحقق حتمية لضمان الصحة والامتثال لمعايير المخاطر. تشمل المساهمات الرئيسية للعمل واجهة لغة طبيعية تقضي على الحاجة إلى معرفة البرمجة، وإطار تحقق لاكتشاف الأخطاء المنطقية وانتهاكات المخاطر، وجدول زمني للمهام غير المتزامنة لإدارة أحمال الحوسبة بكفاءة، وخط أنابيب شامل يدعم إنشاء الاستراتيجيات والمحاكاة والنشر المباشر. في النهاية، تُظهر الأبحاث إمكانية استخدام LLMs لتسهيل التداول الخوارزمي من خلال سد الفجوة بين التفكير الحدسي وتطوير الاستراتيجيات الرسمية.
الطرق
تحدد قسم المنهجية نهجًا منظمًا لتطوير نظام تداول خوارزمي متقدم، مع التركيز على تحليل المتطلبات، وتصميم النظام، والتنفيذ، ودمج نموذج الذكاء الاصطناعي، والاختبار، والنشر. يبدأ المشروع بمرحلة استنباط متطلبات شاملة تحدد الاحتياجات الوظيفية مثل إدخال استراتيجيات اللغة الطبيعية، والتحقق الآلي من الاستراتيجيات، والاتصال المباشر بالوسيط، إلى جانب المتطلبات غير الوظيفية مثل الإنتاجية وتحمل الأخطاء.
تتبع بنية النظام نموذجًا متعدد الطبقات، قائمًا على الخدمات، مما يسمح بالنشر المستقل للمكونات مثل الواجهة الأمامية، وخدمة التنسيق الأساسية، ومحرك استدلال الذكاء الاصطناعي، وطبقة التنفيذ. يسهل هذا التصميم التحديثات السلسة، خاصةً لخط أنابيب استدلال نموذج اللغة الكبيرة (LLM). يستفيد التنفيذ من تقنيات مثل فلاتر لواجهة المستخدم، وجانغو REST للمنطق التجاري، وFastAPI لاستدلال الذكاء الاصطناعي، مع خضوع كل خدمة للاختبار المستقل للوحدات والتكامل. تتم معالجة مدخلات المستخدم من خلال LLM لاستخراج العناصر الأساسية للتداول، والتي يتم التحقق منها بعد ذلك قبل التخزين أو المعالجة الإضافية.
يشمل الاختبار اختبارات وحدات، واختبارات تكامل، واختبارات تحميل لضمان صحة الوحدات وأداء النظام في ظل ظروف واقعية، مع التركيز بشكل خاص على طبقة المعالجة غير المتزامنة للحفاظ على استجابة واجهة برمجة التطبيقات. يهدف النشر إلى بيئة مستضافة في السحابة باستخدام خدمات محوسبة من أجل قابلية التوسع وإمكانية التكرار، مع التركيز على التحسينات التكرارية لوحدة استدلال الذكاء الاصطناعي استنادًا إلى بيانات العالم الحقيقي.
النتائج
تقيم نتائج الدراسة أداء النظام عبر أربعة أبعاد رئيسية: جودة تركيب الاستراتيجية، وفعالية التحقق، وإنتاجية المحاكاة، واستقرار المعالجة غير المتزامنة. أظهر نموذج توليد الاستراتيجية بالذكاء الاصطناعي متوسط زمن استجابة يتراوح بين 1-2 ثانية لإنتاج كائنات استراتيجية صحيحة هيكليًا، مما يستخرج بفعالية المواصفات الأساسية مثل شروط الدخول والخروج ومعايير المخاطر. يؤكد هذا على جدوى استخدام اللغة الطبيعية لتأليف الاستراتيجيات.
حقق نموذج التحقق من الاستراتيجية معدل اكتشاف بنسبة 92% للعيوب الهيكلية والمنطقية في الاستراتيجيات التي تم إنشاؤها بواسطة الذكاء الاصطناعي، مما يقلل بشكل كبير من خطر نشر استراتيجيات خاطئة قد تؤدي إلى مراكز سوق غير مقصودة. أكمل محرك الاختبار محاكاة استراتيجيات فردية في غضون 3-6 ثوانٍ، مع الإبلاغ بدقة عن مقاييس الأداء عبر تكوينات مختلفة. من الجدير بالذكر أن النظام حافظ على إنتاجية مستقرة أثناء الطلبات المتزامنة للمحاكاة، مما يبرز قوة بنية المعالجة غير المتزامنة. أخيرًا، أظهرت طبقة التنفيذ إدارة موثوقة للطلبات واستعادة الأخطاء، مما يضمن الاتساق في تنفيذ الاستراتيجيات حتى في ظل الفشل المؤقت.
المناقشة
تسلط المناقشة الضوء على تطور منصات التداول الآلي، مع التأكيد على تحديات الوصول التي تواجه المستخدمين غير التقنيين بسبب ضرورة الترميز اليدوي لتطوير الاستراتيجيات. بينما استكشفت الأبحاث الحالية تقنيات تعلم الآلة المختلفة لاتخاذ القرارات المالية، غالبًا ما تركز هذه الأساليب على التنبؤ والتحسين بدلاً من تبسيط عملية تحديد الاستراتيجية. تعالج المنصة المقترحة هذه القيود من خلال دمج نموذج لغة كبير (LLM) يقوم بترجمة أوصاف المستخدم غير الرسمية إلى استراتيجيات تداول منظمة، مصحوبة بطبقة تحقق لضمان الصحة المنطقية والامتثال للمخاطر قبل التنفيذ.
تم تصميم بنية النظام من أجل قابلية التوسع والكفاءة، باستخدام نموذج خدمة موزعة تفصل الوظائف الأساسية إلى مكونات متميزة. يسمح هذا التصميم المعياري بالتوسع والصيانة المستقلة، مما يعزز تجربة المستخدم من خلال تطبيق متنقل سريع الاستجابة. على الرغم من أن مقاييس الأداء الأولية تشير إلى خسارة صافية وسحب مرتفع للاستراتيجيات المولدة، إلا أن المنصة تُظهر بنجاح هدفها الأساسي المتمثل في جعل التداول الخوارزمي متاحًا لجمهور أوسع. يتم اقتراح تحسينات مستقبلية، بما في ذلك دمج التعلم المعزز لتحسين الاستراتيجيات الديناميكية وتحسين قدرات معالجة اللغة الطبيعية لـ LLM، مما قد يساهم في تحسين دقة توليد الاستراتيجيات واختبارها. بشكل عام، تؤسس الأبحاث أساسًا لتداول خوارزمي شامل وذكي، مما يضع المنصة كحل عملي للمستثمرين الأفراد.
DOI: https://doi.org/10.55041/ijsmt.v2i4.156
Publication Date: 2026-04-09
Author(s): Janhvi Patil et al.
Primary Topic: Stock Market Forecasting Methods
Overview
This paper introduces an AI-assisted trading platform that leverages Large Language Models (LLMs) to facilitate the creation, validation, simulation, and deployment of cryptocurrency trading strategies using natural language descriptions. By eliminating the need for programming skills, the platform addresses the significant technical barriers faced by individual investors in traditional algorithmic trading. It features a distributed architecture that includes a Flutter-based mobile frontend, a Django REST API for core functionalities, and a FastAPI microservice for LLM inference. The system employs a nonblocking task pipeline managed by Redis and Celery to handle computationally intensive processes, ensuring efficient performance and responsiveness.
The platform incorporates a rule-based validation module to ensure logical integrity and compliance with risk parameters before executing strategies. A built-in backtesting engine allows users to analyze performance retrospectively, while live trading is facilitated through direct connections to cryptocurrency exchange APIs. Experimental results indicate that the platform significantly lowers the skill threshold for strategy development, broadening market participation for non-technical users while maintaining high reliability and performance standards. The modular design supports scalability and adaptability, paving the way for future enhancements such as reinforcement learning for dynamic strategy optimization and improved natural language processing capabilities. Overall, this work demonstrates that integrating AI with a robust software architecture can democratize access to algorithmic trading without compromising system integrity.
Introduction
The introduction of this research paper discusses the transformative impact of automated trading systems on modern financial markets, emphasizing the challenges faced by individual traders who lack programming skills. While existing commercial platforms provide tools for experienced users to develop trading strategies, they still require a foundational understanding of algorithmic reasoning, which excludes many potential algorithmic traders. Recent advancements in generative AI, particularly large language models (LLMs), present new opportunities for translating informal human trading intentions into structured computational logic.
The paper proposes a unified platform that allows users to articulate their trading strategies in natural language, which the system then converts into validated, executable logic. This platform integrates an LLM-based generation component with a deterministic validation layer to ensure correctness and compliance with risk parameters. Key contributions of the work include a natural language interface that eliminates the need for programming knowledge, a validation framework to detect logical errors and risk violations, an asynchronous task scheduler to manage computational workloads efficiently, and a comprehensive pipeline that supports strategy creation, simulation, and live deployment. Ultimately, the research demonstrates the potential of LLMs to facilitate algorithmic trading by bridging the gap between intuitive reasoning and formal strategy development.
Methods
The methodology section outlines a structured approach to developing an advanced algorithmic trading system, emphasizing requirements analysis, system design, implementation, AI model integration, testing, and deployment. The project begins with a thorough requirements elicitation phase that identifies functional needs such as natural language strategy input, automated strategy validation, and live broker connectivity, alongside nonfunctional requirements like throughput and fault tolerance.
The system architecture follows a multitier, service-oriented model, allowing independent deployment of components such as the frontend, core orchestration service, AI inference engine, and execution tier. This design facilitates seamless updates, particularly to the large language model (LLM) inference pipeline. Implementation leverages technologies like Flutter for UI, Django REST for business logic, and FastAPI for AI inference, with each service undergoing independent unit and integration testing. User inputs are processed through the LLM to extract trading primitives, which are then validated before storage or further processing.
Testing encompasses unit, integration, and load tests to ensure module correctness and system performance under realistic conditions, particularly focusing on the asynchronous processing tier to maintain API responsiveness. Deployment is aimed at a cloud-hosted environment using containerized services for scalability and reproducibility, with a focus on iterative improvements to the AI inference module based on real-world data.
Results
The results of the study assess system performance across four key dimensions: strategy synthesis quality, validation effectiveness, simulation throughput, and asynchronous processing stability. The AI strategy generation module demonstrated an average response time of 1-2 seconds for producing structurally correct strategy objects, effectively extracting essential specifications such as entry and exit conditions and risk parameters. This confirms the feasibility of using natural language for strategy authoring.
The strategy validation module achieved a 92% detection rate for structural and logical defects in AI-generated strategies, significantly mitigating the risk of deploying erroneous strategies that could lead to unintended market positions. The backtesting engine completed simulations of individual strategies within 3-6 seconds, with performance metrics accurately reported across various configurations. Notably, the system maintained stable throughput during concurrent simulation requests, underscoring the robustness of its asynchronous processing architecture. Finally, the execution layer demonstrated reliable order management and error recovery, ensuring consistency in strategy execution even amid transient failures.
Discussion
The discussion highlights the evolution of automated trading platforms, emphasizing their accessibility challenges for non-technical users due to the necessity of manual coding for strategy development. While existing research has explored various machine learning techniques for financial decision-making, these approaches often focus on prediction and optimization rather than simplifying the strategy specification process. The proposed platform addresses these limitations by integrating a Large Language Model (LLM) that translates informal user descriptions into structured trading strategies, coupled with a validation layer to ensure logical soundness and risk compliance before execution.
The system architecture is designed for scalability and efficiency, utilizing a distributed service model that separates core functionalities into distinct components. This modularity allows for independent scaling and maintenance, enhancing user experience through a responsive mobile application. Despite initial performance metrics indicating a net loss and high drawdown for generated strategies, the platform successfully demonstrates its core objective of making algorithmic trading accessible to a broader audience. Future enhancements are suggested, including the incorporation of reinforcement learning for dynamic strategy optimization and improvements to the natural language processing capabilities of the LLM, which could further refine strategy generation and backtesting accuracy. Overall, the research establishes a foundation for inclusive and intelligent algorithmic trading, positioning the platform as a practical solution for retail investors.
