Skip to main content
The 2024 Developer Survey results are live! See the results

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 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 ...
Hanafi Yacine's user avatar
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 ...
clex's user avatar
  • 645
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 ...
warrenn's user avatar
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 ...
Bassem Yacoube's user avatar
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("...
Genshinn1999's user avatar
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 ...
alee stvr's user avatar
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 ...
taga's user avatar
  • 3,715
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 ...
whwh's user avatar
  • 1
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 ...
Nikola Matic's user avatar
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 ...
Nikola Matic's user avatar
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 ...
Oyeleke Isreal Timilehin's user avatar
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 ...
shidrang's user avatar
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 ...
A Singh's user avatar
  • 21
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 ...
tost's user avatar
  • 43
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 ...
Manuel Veiga's user avatar

15 30 50 per page
1
2 3 4 5
87