Questions tagged [trading]

The act of buying and selling financial instruments, such as money markets spot instruments, stocks, bonds, commodities, virtual currencies, indices, futures, options, CFD-s and other derivatives, performed on a for-profit basis.

Trading in general and speculative trading are a form of participation in a process of mutually beneficial exchange.

Speculative trading is a knowingly speculative, for-profit, participation in a multi-layer scene of sell-side and buy-side market participants ( liquidity providers ), brokerage entities / mediators, market regulators ( where territorially applicable and legally enforced ) and retail traders.

Markets typically offer trading in both Buy ( a.k.a. Long ) and Sell ( Short ) contract positions for various financial instruments such as:

  • money markets spot contracts,
  • ETF contracts,
  • virtual currencies,
  • stocks,
  • bonds,
  • commodities,
  • indices,
  • futures,
  • options,
  • options on index,
  • non-deliverable swaps,
  • CFD-s and other derivatives.
1444 questions
-2
votes
0 answers

Pine script weird behavior

Why does pine script do this?the two plots are from this code I have been testing on here is the code I have been messing on: //@version=4 // Copyright (c) 2019-present, Alex Orekhov (everget) // Chandelier Exit script may be freely distributed…
8meau
  • 1
  • 1
-2
votes
0 answers

Why BTC volume is not matching

I have seen 13 billion dollar volume on Coinbase website but when I request it through API it gives me correct price of BTC but wrong volume. { "ask":"29157.6", "bid":"29157.59", "volume":"6355.15089793", "trade_id":555319684, …
-2
votes
0 answers

eror during installing cctx python library in ubuntu

ERROR: Could not find a version that satisfies the requirement ccxt==1.18.119 (from versions: 1.0.0, 1.0.1, 1.3.1, 1.4.1, 1.5.1, 1.6.1, 1.7.1, 1.8.1, 1.9.1, 1.10.1, 1.11.1, 1.12.1, 1.13.1, 1.14.1, 1.15.1, 1.16.1, 1.17.1, 1.18.1, 1.19.1, 1.20.1,…
A D
  • 1
-2
votes
1 answer

How to count HL2 source in python Binance trading bot?

:)) I've made a crypto trading bot in python connected to my Binance account. My problem is to count HL2 source ((High+Low)/2). I want to make a sma(hl2, 17) but I can't figure out how to do it. If I use simply close (or open, low, high) it works…
-2
votes
1 answer

Pinescript - session parameter of the time function

I need a sleep/pause function. I use a trading bot and I want to not take a trade between 23:00 and 00:00 clock. I'm not good at coding, so if anybody can help me I'm gonna be very thankful.
Arvin
  • 1
  • 2
-2
votes
1 answer

Python Binance Futures - problem creating Take Profit Limit order -> (APIError(code=-2021): Order would immediately trigger.)

Trying to write a basic Binance trading bot in python. Keep getting "APIError(code=-2021): Order would immediately trigger" even though it makes no sense when placing a limit order. At the time of writing this the ETH/BUSD exchange is rate is at…
-2
votes
1 answer

Is there a way to send commands from a website to an Android app

Am working on this python project that automates trading. But I don't know how to get data from a trading indicator website and give a specific command to an App on Android. Anyone who can help me out......
Lord SC11
  • 1
  • 1
-2
votes
1 answer

My stop loss isn't working on my pine script for tradingview

I'm very new to coding and made the following parameters to automate my trading strategy. My stop loss just isn't working and I have no explanation as to why. Also I think my TP and SL are flipped, but even if flipped the TP works just the SL…
-2
votes
1 answer

Convert Pine-Script version 2.0 to version 5.0

i need help to convert this Indicator from V2 to V5. It is very complex for me. //@version=2 study("Heiken Ashi MTF") ha_t = heikinashi(tickerid) res = input('60', title="TM 1") ha_open = security(ha_t, res, open) ha_close = security(ha_t, res,…
Fabian D.
  • 1
  • 1
-2
votes
2 answers

How to update attribute value of one class from another class in parallel in python?

This is my first question in here. Question is mostly about Python but a little bit about writing crypto trading bot. I need to calculate some indicators about trading like Bollinger Bands, RSI or etc in my bot. Indicators are calculated from…
user18448203
-2
votes
1 answer

can you use pine-script to alert you that an indicator has passed a certain level for the first time in a few months?

so im trying to write a script which can alert me when the sma of the williams%r crosses above -20 or bellow -80, for the first time in 1 month for example. is this possible with pinescript?. thanks in advance.
-2
votes
1 answer

MACD Indicator binance

I am really beginner in programming / python. I don't have the MACD INDICATOR in python. for MACD indicator, how to say ' when the 2 lines are crossing (histograms flip from down to up) and vice versa, so buy ' I can do the buy order, but how to…
-2
votes
1 answer

Using conditionals: Having trouble coding for the script to restart from the beginning

I am having trouble telling the pine script to restart from the beginning. Here's what I hope to do: if a condition is false, then the script runs again to check if it is true. If and when it is true, the script moves on to check the next condition.…
-2
votes
1 answer

How to compare and rank ETF's in Python?

hope you are well? So I have recently started trying to experiment with trading algorithms. I am trying to create an ETF rotation strategy. I am struggling with how to compare the returns between the etfs? (Error at the bottom) Am I making a simple…
-2
votes
1 answer

How to stop generating multiple buy signal in PINE Editor

In Tradingview, how to stop generating multiple buy signal if already one buy signal is activated.