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
4
votes
3 answers

Kraken Exchange API: AddOrder's expiretm parameter

Does the API AddOrder() command support expiretm for limit orders? I always get an EGeneral:Invalid arguments:expiretm error when I set this parameter. I tried to expire 3 seconds from now with the following settings: 1) expiretm = 3 #…
user2694588
  • 163
  • 1
  • 8
4
votes
1 answer

.NET: Can't get correct RSI and MACD values from TA-Lib

I'm trying to use TA-Lib for technical analysis. I downloaded TA-Lib-Core Nuget package for .NET. Unfortunately, I can't find any API documentation so some method parameters are a bit of mystery. I downloaded historical data for AMD between…
Mark13426
  • 2,569
  • 6
  • 41
  • 75
4
votes
1 answer

What is the meaning of the values returned from trader_bbands()?

I am using the trader library of PHP. I use the trader_bbands() function $bBand = trader_bbands( $NumberArray, 25, TRADER_REAL_MIN, TRADER_REAL_MIN, …
whitebear
  • 11,200
  • 24
  • 114
  • 237
4
votes
2 answers

Clojure for trading strategies

Is anybody using Clojure for developing automated trading strategies? What is your experience? I am anticipating learning Clojure and wanted to know whether or not I could use it in this context. If there are any resources for using it in this…
RubyGladiator
  • 1,765
  • 3
  • 18
  • 27
4
votes
2 answers

How can I download options data from yahoo using Perl?

I am trying to get yahoo options data into mysql using perl. I found modules to download stock prices, but not options data. Anyone know what would be the easiest way to do that? If I have to roll my own, what modules should I use? Thanks, CP
CptanPanic
  • 609
  • 8
  • 22
4
votes
1 answer

Stock chart pattern finder with Javascript (Node)

I am building a little stock trader program, that try's to find patterns in (many) forex charts. There is a lot of information on the web, about the most used patterns. 1:…
DutchKevv
  • 1,659
  • 2
  • 22
  • 39
4
votes
2 answers

Transactions reshaping from long to wide, joining Buy and Sell dataframes

I have buy and sell transactions in long format and I want to transform it to wide format. Look at example: For every BUY transaction of some ticker must exist SELL transaction of the same ticker which closes position. If SELL transaction don't…
Eldar Agalarov
  • 4,849
  • 4
  • 30
  • 38
4
votes
2 answers

Sample call to Interactive Brokers for a currency pair?

I'm attempting to run Interactive Broker's included code sample. http://www.interactivebrokers.com/download/JavaAPIGettingStarted.pdf On about page 42 it details how to pull market data feeds. My question is, has anyone successfully put in the…
Erik
  • 2,782
  • 3
  • 34
  • 64
4
votes
1 answer

Developing a Java Trading Application: do patterns/frameworks exist for defining trading rules?

I am in the process of designing a trading application which will use a Market's API to place orders on the Market. This isn't a complex high performance algorithmic trading application of the kind found in investment banks. This is just a small…
user63904
4
votes
1 answer

How to connect to TT X_TRADER API in order to create an automated trading system using python?

I've seen this question posted several times in the interal development forums and thus wanted to provide a quick example of how this can be achieved in python in no time.
Muppet
  • 5,767
  • 6
  • 29
  • 39
4
votes
2 answers

Fix OrigClOrdID (tag 41) in a chain of replaces. Is it the very first one of the order OR the previous one in the chain?

So whenever I want to change (reduce) the quantity of my order (OrderCancelReplaceRequest) I have to send a new ClOrdID and the original ClOrdID (tag 41). Ok, so let's say I change the quantity for a second time. Does the original ClOrdID (tag 41) I…
Becky
  • 41
  • 2
3
votes
3 answers

How do I devise a python trading algorithm that identifies pivot highs and lows to inform breakout points?

I want to create an algorithm, which will help me point the breakout points in the trading and devise my strategy accordingly. My code: import pandas as pd import pandas_ta as ta import matplotlib.pyplot as plt import numpy as np from statistics…
driver
  • 61
  • 5
3
votes
2 answers

Is it possible to align asset performance by trading session in python?

I have time series data in one minute intervals for the last 7 business days and I want to calculate and plot the cumulative change by trading session like this: The 23-Jun 'Asia' trading session overlaps two days (i.e. 23:00 on 22-Jun > 07:00 on…
Analyst
  • 139
  • 2
  • 9
3
votes
1 answer

Available data in TradingView's exported chart data file

To back-test a trading strategy, I use the replay feature in trading view and mark my trades by adding a "long position" or "short position" from the left panel. Like this: I need to save the data (chart data including the positions, or any other…
3
votes
1 answer

TradingView STC vs any python STC

I am trying to use in a trading strategy the STC indicator, but I can not find out why its not working properly. The chart that I am using is BTC/USDT on UTC as a timeframe. Chart time: 01 Feb 22 - 16:20 UTC ------------------- TradingView:…
Mircea
  • 1,671
  • 7
  • 25
  • 41