Category "trading"

What are the symbols used in Binance's dapi (coin futures api)?

I am trying to download historical price data of BTC/USD perpetual futures using binance's api for coin futures, specifically, I'd like to use this endpoint. Ho

Storing crossover values for multi-crossover condition check Pine script

I'm developing a strategy that triggers signal after recording 4 crossovers of different lines. The final variable I will use to trigger signals will be: longSi

How to get alternating trading signals?

I am trying to develop a simple RSI strategy by using this code. As you can see by plotting the code, there are too many consecutive sell signals. I'd like ther

strategy.exit exiting all orders at arbitrary point even with independent pts/stop losses (pyramiding)

So this is a follow-up from my previous question. I've tried to utilize some arrays to create multiple buy, profit taking and stop orders so that trades can be

Optimal grid trading strategy when price out of grid bounds

I'm considering various grid trading strategies and I'm wondering what's the optimal action (if any) to take when the price goes out of grid bounds. In the imag

Transfer USDT between spot and futures in Binance using ccxt python

exchange = ccxt.binance({ -- "apiKey": 'xxx', "secret": 'xxx', 'options': { 'adjustForTimeDifference': True }, 'enableRateLimit': True }) exchange_f = ccxt.

How to get ALL (or multiple) pair's historical klines from Binance API in ONE request?

I have a trading bot that trades multiple pairs (30-40). It uses the previous 5m candle for the price input. Therefore, I get 5m history for ALL pairs one by on

How to store High or Low values (trading)

I would like to develop a code which add a Series to my DataFrame; the Series should store the lowest value of the Close until a new low is reached. When a new

How to calculate Connors RSI (CRSI)

I’m trying to calculate Connor’s RSI (CRSI). RSI and ROC give correct results, but due to streaks I get incorrect results for CRSI. Does anyone know