Questions tagged [algorithmic-trading]
Algorithmic trading is a technique of trading financial assets through an algorithm which has been fully or partially automated into a computer program.
algorithmic-trading
1,291
questions
-1
votes
0
answers
7
views
How to code a tradingview indicator that calculate How much the price have changed on each green candles streak with plotting the result
How to code a tradingview indicator that calculate How much the price have changed on each green candles streak with plotting the result
And samething for red candles straks
candles streak : means no ...
1
vote
1
answer
41
views
Wrong greeks (delta, vega, ...) results when requesting data using reqMktData
I am using the native library ibapi (Interactive Brokers). I have the following code:
from ibapi.client import EClient
from ibapi.wrapper import EWrapper
from ibapi.contract import ...
0
votes
0
answers
15
views
Algorithm to open a delta neutral position
I'm not sure how to articulate this problem exactly but what I am looking for as an answer is what approaches could be used to open a delta neutral position for the similar assets across exchanges ...
0
votes
0
answers
22
views
How are Momentum Range bars generated in tradovate?
Does anyone know what is the formula used by tradovate to generate their new(ish) Momentum Range chart type? I find that chart type very useful and would like to use it programatically in my code.
I ...
0
votes
1
answer
35
views
How to add prefix before value in the status line of chart(PINE script)
can't add prefix here
below is my code
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Bao1984
//@version=5
indicator("...
1
vote
0
answers
33
views
problem on state representaion Finrl StockTradingEnv
i'm trying to adjust and apply my own trading strategies on Finrl meta environment and ensmeble agent method. in this process i decide to add some new features which are produced by a neuran network ...
0
votes
1
answer
119
views
How to automate tradingview.com with binance to automaticly buy and sell based on indicator
I want to automate buying and selling on tradingview.com based on loaded indicator.
I have connected tradingview.com with binance.
I want to trade BTCUSDT.
I have loaded UT Bot Alerts indicator into ...
0
votes
0
answers
12
views
Is there a way to map an OUCH outbound message to its corresponding OUCH inbound message without using order token?
Wondering if this is possible as OrderRejected messages may not necessarily contain the order token?
Looked up OUCH documentation and it seems that it doesn't guarantee that outbound messages are in ...
1
vote
0
answers
26
views
Import Pandas in MetaEditor5 Python Script
I am trying to write a python script for a trading bot. I have opened up MetaEditor5 and I have created a new python script where the next pop-up asks me which packages I want to import and only ...
0
votes
1
answer
170
views
MT5 and Python Trading Bot
I am relatively new to trading and autonomous trading. I have implemented a trading bot in python (using anaconda navigator and Spyder) where I am using the MetaTrader5 API which is offered.
My bot ...
0
votes
0
answers
61
views
Pinescript request.securities not returning consistent data, pinescript v5
I requested data from a higher timeframe "selectedTimeframe" but the float array returned is completly incosistent with what i have on the actual higher timeframe
note: the chart below is ...
1
vote
0
answers
55
views
Discrepancy in Trade Counts Between Backtesting.py trade list and created trades
I used Backtesting.py to test my algorithm. When I run the following code, the output shows that 'ser' records 2530 trades, but the 'trades' contains 55641 trades. What is the reason for this ...
0
votes
1
answer
40
views
Trying to run some logic only at the Open of the 1st candle of the Regular Trading Day
I'm tyring to run some logic only at the open of the market. I tried to use the built in functions of barstate.isfirst and barstate.isnew but I'm finding that it keeps running until the first bar is ...
1
vote
1
answer
50
views
Training XGBoost over a single number metric
Assuming I am building an XGBoost model in Python (xgboost version 2.0.3) (regression or classification here it is does not matter at all) to predict a target variable in a stock market time series ...
0
votes
0
answers
51
views
AsyncClient for a Binance Trading Bot explanation?
Good morning,
I´m learning the introduction of algorithmic trading in Binance with the python-binance package and it is the first time I start with asynchronous programming.
I have created a ...