34 Commits

Author SHA1 Message Date
159095ce5a chore: finalize file rename by removing old CoreTraidMath.py
Complete the file rename by removing the old file with typo.

This commit ensures the git history properly tracks the rename from
CoreTraidMath.py to CoreTradeMath.py.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 18:40:28 +01:00
92eb7db4c5 refactor: update test file to use new standardized method names
Update test_decision.py to work with refactored core modules.

Changes:
- Removed wildcard imports, using explicit imports:
  - from decisionManager_v2 import DecisionManager
  - from indicators_v2 import ind_BB
  - from signals_v2 import sig_BB
- Updated method calls to use snake_case naming:
  - test.getRetroTrendAns() → test.get_retro_trend_answer()
  - test.generateMatrixProbabilityFromDict() → test.generate_matrix_probability_from_dict()
  - test.getOnlineAns() → test.get_online_answer()
- Updated variable names to snake_case:
  - sigAgrReq → sig_agr_req
  - sigAgrRetroTemplate → sig_agr_retro_template
  - retroAns → retro_ans
  - sigAgrData → sig_agr_data
- Improved spacing and formatting for PEP 8 compliance

The test file now follows the same coding standards as the refactored
core modules and maintains compatibility with all renamed methods.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 18:38:42 +01:00
bfa0d13a25 refactor: standardize DecisionManager, DealManager, and RiskManager
Complete standardization of remaining core management classes.

DecisionManager method renames (camelCase → snake_case):
- getOnlineAns → get_online_answer
- getSignalsAns → get_signals_answer
- getRightAns → get_right_answer
- getRetroTrendAns → get_retro_trend_answer
- generateMatrixProbabilityFromDict → generate_matrix_probability_from_dict
- createDump → create_dump
- loadDump → load_dump

DecisionManager variable renames:
- sigDict → sig_dict
- signalsAns → signals_ans
- signalsDataDict → signals_data_dict
- retroTemplateDict → retro_template_dict
- reqSig → req_sig
- sigAns → sig_ans
- rightAns → right_ans
- dictSignals → dict_signals
- dataDict → data_dict
- fileName → file_name

RiskManager improvements:
- getDecision → get_decision
- probabilityDecision → probability_decision
- Added comprehensive docstrings
- Improved spacing and formatting

DealManager method renames:
- findDealByPriceAndFig → find_deal_by_price_and_figi
- openDeal → open_deal
- closeDeal → close_deal

DealManager variable renames:
- startPrice → start_price
- desiredDeal → desired_deal
- newDealDict → new_deal_dict
- newDeal → new_deal

Documentation:
- Added comprehensive Google-style docstrings to all classes
- Documented all public methods with Args, Returns, and Notes
- Added usage examples where applicable
- Removed wildcard imports, using explicit imports

Follows: PEP 8, Google Python Style Guide

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 18:36:24 +01:00
00c7614bfc fix: correct class name typos and variable naming issues
Fix critical typos in class names and variables that could cause confusion
and runtime errors.

Class name fixes:
- trandeVoter → TradeVoter (market_trade/core/trandeVoter.py)
- decsionManager → DecisionManager (market_trade/core/decisionManager_v2.py)
- coreSignalTrande → CoreSignalTrade (market_trade/core/signals_v2.py)
- coreIndicator → CoreIndicator (market_trade/core/indicators_v2.py)
- indicatorsAgrigator → IndicatorsAggregator (indicators_v2.py)
- signalsAgrigator → SignalsAggregator (signals_v2.py)
- riskManager → RiskManager (market_trade/core/riskManager.py)

Variable typo fixes:
- commision → commission (riskManager.py, lines 8-9, 24)
- probabilityDecsion → probability_decision (decisionManager_v2.py:84)

Type hint corrections:
- Fixed pd.DataFrame() → pd.DataFrame (incorrect syntax in 4 files)

Bug fixes:
- Fixed mutable default argument antipattern in indicators_v2.py:33
  (indDict={} → indDict=None)
- Fixed mutable default argument in CoreTradeMath.py:22
  (params={} → params=None)

All class references updated throughout the codebase to maintain
consistency.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 18:34:51 +01:00
bbba7bfe89 refactor: rename CoreTraidMath.py to CoreTradeMath.py
Fix typo in core math module filename and update all references.

Changes:
- Renamed market_trade/core/CoreTraidMath.py → CoreTradeMath.py
- Updated 28 import references across 14 files:
  - All Ind_*.py indicator modules
  - indicators.py, indicators_v2.py
  - signals.py, signals_v2.py
  - CoreDraw.py
- Updated documentation references in CLAUDE.md

This eliminates the "Traid" typo and aligns with proper English spelling.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 18:33:21 +01:00
fa46ed472f designed a test which works! 2024-03-19 13:29:08 +01:00
fffd4b9e58 fixed some hierarchial stuff 2024-03-16 20:45:20 +01:00
8d8d102a14 moved things to a new place ! 2024-03-15 20:15:46 +01:00
df961f50c6 added multiple script modifications and finalized the dockerfile 2023-12-26 22:42:52 +02:00
d50defbe3e added documentation 2022-12-04 19:18:32 +02:00
3e907b2004 changes related to shares analyzer
added stats path
added shares stats ptah
2022-09-20 11:24:22 +03:00
76c495e933 moved dataloader (may revise later) 2022-09-19 14:14:43 +03:00
3b3a487b0f changed signature of marketdata constants 2022-09-19 14:14:35 +03:00
7eb13b8542 moved notebooks to another place 2022-09-19 14:14:12 +03:00
d759da0d1a constants revision
changed constants placement
added credeentials to constants
added seeral folders for scripts
2022-09-19 14:13:00 +03:00
8a2a2615ac commented getextremum
realized the algorithm in get mean
2022-08-14 14:40:15 +03:00
4ad23a9bea commented init
fixed mutability
commented getans
2022-08-13 16:28:04 +03:00
ef527765c7 test for signals and indicators 2022-08-13 16:13:22 +03:00
20f8b1a682 new files for indicators and signals 2022-08-13 16:13:13 +03:00
3525d05a11 moved files to core 2022-08-13 16:13:02 +03:00
57fdc933c2 moved 2022-08-13 16:12:29 +03:00
65ad3c9402 simple cleanup 2022-08-13 16:12:20 +03:00
d03f2fb7f6 cleanup and restructuring 2022-08-13 16:12:12 +03:00
04eda1fec1 removed nb 2022-06-04 16:32:08 +03:00
aaee1a9fcf revised dataloader 2022-06-04 16:32:02 +03:00
89a2fede6a added signal hypers notebooks 2022-06-03 18:11:44 +03:00
331592bfd0 small fix 2022-06-03 18:11:34 +03:00
e080b70c80 finished converter 2022-05-17 15:58:20 +03:00
1b00f9500a added import notebook, started working on conventer 2022-05-11 13:37:00 +03:00
d19359e972 fixed import 2022-05-11 13:35:29 +03:00
a332358a47 fixed errors 2022-05-11 13:35:12 +03:00
47de78d8f9 added constants file 2022-05-11 13:35:07 +03:00
a02a7c288c cleanup 2022-05-10 14:36:32 +03:00
c2ddfc0536 changing structure 2022-05-10 14:27:43 +03:00