1,366 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
29
views
Vectorbt import hangs on Windows unless Numba JIT is disabled
I’m trying to use vectorbt in Python on Windows, but the import hangs indefinitely:
import vectorbt as vbt # hangs here
Environment / Versions I’ve tested:
Python: 3.9, 3.10, 3.11, 3.12, 3.13 (all ...
1
vote
0
answers
51
views
Does Lumibot’s PandasDataBacktesting rely on pandas_market_calendars in a way that prevents 24-hour forex backtesting?
I'm backtesting forex strategies with 24-hour minute-bar data, but Lumibot only executes trades during NYSE hours (09:30-16:00 America/New_York), skipping ~70% of my signals. The logs show "...
0
votes
0
answers
26
views
Stop order in DASTrader hotkey script not triggering — suspect STOP syntax error
I'm a trader and developer using DASTrader. I implemented a hotkey script (based on the documentation) to place profit-target and stop-loss orders for positions, but the stop order is not working. ...
Best practices
0
votes
5
replies
221
views
What is the ideal production-grade infrastructure to deploy a Python FastAPI service for computing option Greeks (e.g., Black–Scholes)?
I am building a python service to compute Greek values using python, but I have never worked on python, and I would appreciate advice from the experienced python devs as it would help me a lot.
FLOW
...
Advice
0
votes
0
replies
55
views
Polymarket totalBought calculation
In Polymarket, I want to know: how is the totalBought variable calculated when we do BUY or SELL?
Reference url = https://data-api.polymarket.com/trades
0
votes
1
answer
75
views
Pine Script request.security weird outcome (calculates future dividend to history)
When using request.security function in Pine Script, like in the script below, I find weird outcomes when there is dividend at play.
I used the function a lot for crypto... no dividends, so no problem ...
0
votes
1
answer
129
views
Pine Script Bug: "Undeclared identifier 'strategy'" error on valid code, only when the final logic block is added
Hello Pine Script experts,
I am facing a bizarre and persistent compiler bug that seems to defy all logical debugging.
I have a script that consistently fails with the error "Undeclared ...
0
votes
0
answers
44
views
VOLD Ratio using Polygon data
HI I'm trying to calculate VOLD Ratio, but when I'm testing my functionality I'm facing below issues
Getting mismatch between polygon volume vs trading view volume (-2.5%)
My VOLD Ratio is much more ...
0
votes
0
answers
124
views
Pancakeswap trading bots
from web3 import Web3
import json
import time
from eth_abi import encode, decode
from eth_utils import keccak
from eth_account import Account
from eth_account.messages import encode_typed_data
import ...
0
votes
1
answer
141
views
How to place IBKR bracket order before market open using actual open price for TP/SL?
I'm trying to place a market-on-open (MOO) bracket order through Interactive Brokers using ib_insync. My goal is to:
Enter the trade strictly at the market open (9:30 AM ET)
Calculate take-profit (TP)...
0
votes
0
answers
72
views
Bitunix Futures Trading Place Order Signature Error in Python ( 1007 )
I'm trying to integrate with the Bitunix API (https://openapidoc.bitunix.com/doc/common/introduction.html) using Python and Request. I implemented authentication and signature generation as per the ...
0
votes
0
answers
41
views
Trading View Pine Script: Can see indicator trigger on chart but alert not getting triggered
I have tried to create a trading view indicator based on below logic:
Pre-Market High is more than 50% of previous day market closing price
Today's market session price is more than 20% of Today's ...
0
votes
0
answers
29
views
Is there a way to retrieve only today's net positions on IBKR (interactive Brokers) API via Python
Is there a way to retrieve only today's net positions on IBKR (interactive Brokers) API via Python: Unable to retrieve today's positions. Can retrieve historical data. Need walkthrough of code to get ...
0
votes
1
answer
156
views
Problem executing Trailing Stop alerts (Pine Script)
I'm a MasterComander user, although I'm not an expert yet, by any means.
I'm working on a script (Pine Script) and would appreciate help correcting it. I'm trying (unsuccessfully) to trigger an alert ...
0
votes
0
answers
129
views
Python - Trading IG - Reason: ATTACHED_ORDER_LEVEL_ERROR
I have tried to place a limit order in Python (using Trading-IG).
Here is the code:
resp = ig_service.create_working_order(
currency_code="GBP",
direction="BUY",
...