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

New to Python. Making a crypto trading bot

At this point in my development I am trying to gather market data for more than one currency every 10 seconds and filter out only price, time, and currency name and put it in a dataframe. Here is my code so far: import websocket, json, pandas as…
-3
votes
1 answer

Find nearest previous Higher Pivot Point then lowest Pivot Point since then till Current Price (Pine)

I have found the TradingView "Pivot Point HL" built in Pine script, which gives me the pivot points. I am trying to write a Pine script that: Find the nearest previous Higher Pivot Point then lowest Pivot Point since then till Current Price. Draw…
JoHa
  • 1,989
  • 10
  • 28
  • 42
-3
votes
2 answers

Maximum close price pinescript tradingview

Is there a way to get the maximum close price of last 200 candles of 15 min ?
user14801702
-3
votes
1 answer

I need my strategy to check 80 previous bars for criteria x

i have a question on which I can not find any answer on web sources. I need my strategy to check 80 previous bars for criteria x. Can I shorten the code instead of writing like these: (below example of my code) Thank you so much for your help Like…
-3
votes
1 answer

I am trying to develop a strategy in squanstrat that buys the QQQ when the 200 SMA is greater than the stock and sells when it is the opposite

I am trying to develop a strategy in quanstrat that buys when the QQQ is greater than the SMA 200 and sells when the SMA 200 is less than the QQQ. But there is a propblem with my buy and sell signals . This is the error Error in…
user11344107
-3
votes
1 answer

When is Stop Loss automatically executed in this case?

I have a question about Stop Loss order - the automated closure of active trading position. It is well known that next candle almost always gets opened on EXACT price level where previous candle closes. But here is one exception: time period where…
Andrew0
  • 1
  • 5
-3
votes
1 answer

Which programming launguage can be used to buy/ sell FOREX currency pairs?

How can I automatically buy or sell a currency pair (on a demo account), depending on whether a financial event is above or below it's forecast figure? Obviously I know that many other factors affect the prices of currencies, but purely for the sake…
p.luck
  • 646
  • 2
  • 9
  • 34
-4
votes
0 answers

Algo trading short long and neutral position

I'm using multiple trading strategies. I participated in many courses on the subject. I couldn't find an answer anywhere if for example after going long if I get a signal to sell why not to sell and immediately going short. Thanks I've participated…
-4
votes
1 answer

Using python and yahoo finance (so something else) how can I get data for the price of an an asset throughout a trading day for X number of days

I don't really have sample code other than the library that I should be using is probably pandas? I am pretty new to both python and yahoo.
-4
votes
1 answer

java trading forex platform charts

Hi I'm trying to make a trading platform with java for a school project but I don't have no idea on how to create the candlestick bar chart and also the tecnical indicators I've searched thru the Internet but I can't find any good tutorial or…
George
  • 5
  • 1
-4
votes
1 answer

C++ File editing without deleting.other information

I am programming a stock trading program. For this function, I need to change the balance in a specific account, but whenever I output back to the file, it updates the balance for one account and deletes everyone else. Source Code: void…
-5
votes
1 answer

Can someone help me with the code? It's not working properly

import backtrader as bt class TestStrategy(bt.Strategy): def log(self, txt, dt=None): ''' Logging function fot this strategy''' dt = dt or self.datas[0].datetime.date(0) print('%s, %s' % (dt.isoformat(), txt)) def…
-5
votes
1 answer

Query in back-testing strategy in R- Indian trader perspective

There is a documentation for backtesting in R in GitHub(https://timtrice.github.io/backtesting-strategies/). I have a query in two lines of code mentioned in this document…
Praveen Kumar-M
  • 223
  • 2
  • 10
-7
votes
1 answer

Is it possible to extract everyday stock closing price in Python and store them to Excel?

Is it possible to extract closing prices of stock market and dynamically write them into an excel sheet using python? Example: Can I get GOOG, AAPL, MSFT, AMZN everyday closing stock prices from Google-Finance or Yahoo!-Finance and write them…
SandB
  • 11
  • 4
1 2 3
95
96