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
-1
votes
1 answer

I can not authorize to hitbtc api from c#

my code is: HitBtcApi.HitBtcApi hitbtc = new HitBtcApi.HitBtcApi(); hitbtc.Authorize("xxx", "xxx"); RestRequest request2 = new RestRequest("/api/2/account/balance", method.GET); var x= await hitbtc.Execute(request2, true); …
-1
votes
1 answer

creating signals based on current and prior time periods

I'm trying to write a trading algo and I am very new to python. Lots of things are easy to understand but I get lost easily. I have a strategy I want to use, but the coding is getting in the way. I want to create two moving averages and when…
-1
votes
1 answer

Testing a trading strategy in python without loop

I'm quite a python newbie and I would kindly need your help. I'm trying to test a trading strategy very similar to what has been discussed here: Python trading logic however in my case: once a buy or sell signal is triggered (Gregorio's answer is…
Andrea
  • 113
  • 1
  • 4
  • 10
-1
votes
1 answer

Is making an always running wordpress plugin possible?

I'm currently creating a trading bot which should constantly check the bitcoin market and buy/sell bitcoins when bitcoin reaches a determinate value. I'm building a Wordpress plugin and I would like the application constantly running on my website,…
Filippo
  • 97
  • 1
  • 11
-1
votes
2 answers

Python if statements: Trading logic based on my entry position, then setting variables based on action

I'm working on getting the current buy and sell price from a Trading API, compare it to the position I bought in at, then take the appropriate action - sell or buy There are sell and buy prices due to transaction fees There are 5 components: Start…
-1
votes
1 answer

How to style one half of a Highchart one way and the other another?

I'm building a depth chart for a trading system. : We're using Highcharts. There are two approaches: stack two charts next to one another and have separate data, or load the bid and ask data into one list and create the chart that way. Is one way…
JohnAllen
  • 7,317
  • 9
  • 41
  • 65
-1
votes
1 answer

OHLC data for bitcoin using bitfinex's API - issue with API

Using this API call I want to get a complete BTCUSD data set for 5 minute OHLC data. I tried the following code in python but the API isn't returning the right data: import requests import pandas as pd r =…
David Hancock
  • 453
  • 1
  • 11
  • 24
-1
votes
1 answer

Applying technical trading rule to all combination of inputs

I have a Dataframe with columns containing different time series of data. I need to insert these columns into the function below automatically to find the best combination (highest return): returns <- as.data.frame(rep(0, 4261)) #4261 because…
-1
votes
1 answer

Pricing of Asian Option using R

The pricing of the Asian option is approximated, using Monte Carlo simulation, by: delta <- 1/12 T <- 2 S0 <- 100 sigma <- 0.20 K <- 100 r <- 0.01 n <- 10^4 m <- T/delta S <- S0 for(i in 1:n) { for(j in 1:m) { W <- rnorm(1) Si <-…
user6149765
  • 15
  • 1
  • 4
-1
votes
1 answer

Bug calculating RSI or bug in MetaTrader 4?

I am creating a simple function in order to calculate Relative Strength Index ( RSI ). I am following the instructions from this website…
Mig
  • 11
  • 1
-1
votes
1 answer

Excel price function what is meant by DSC,E,A?

In excel PRICE function there are constants DSC,E,A what are these values? It is very confusing when there are more than one coupon period available for the bond. They have provided explanation for DSC,E,A as follows. DSC = number of days from…
-1
votes
1 answer

Bollinger Strategy in R with Entry and Exit Signals at Re-allocation Dates

I have the following simple trading strategy: Entry Signal: when the Price of IBM is above the upper Bollinger band. Close Signal: when the Price of IBM is below the lower Bollinger band. Here are the Bollinger Bands: require(quantmod) # load IBM…
Pat
  • 1,299
  • 4
  • 17
  • 40
-1
votes
1 answer

Searching for a live stock trade web service

I'm searching for a reliable trading company which exposes a web service for live trade. Basically I'm interested in: opening an account (you know, minimum everything for a start - minimum account value for opening, minimum commissions, etc.) and…
Hemulin
  • 23
  • 6
-1
votes
1 answer

How to download historical data using R?

I am looking for a package to download historical data of Futures (NO STOCK DATA). could someone advice me some good R package? Thanks! P.S. I Know there are many packages, but they only seem to retrive stock prices, and not Futures. I Only need…
Dail
  • 4,622
  • 16
  • 74
  • 109
-1
votes
1 answer

Bloomberg real-time data with lot sizes

I am trying to download real-time trading data from Bloomberg using the api. So far I can get bid / ask / last prices successfully but in some exchanges (like canada) quote sizes are in lots. I can query the lots sizes of course with reference data…
Stylus
  • 89
  • 8