trading

Getting signals from telegram channel and placing them in MT4 using Python

前提是你 提交于 2021-01-25 07:12:38
问题 I would like to read messages from a Telegram channel (which are essential forex signals) and place the orders in MT4 windows application. For now, I have made a python script which listens to the channels and stores messages in a database. I can also parse the messages for necessary values like TP,SL etc. Now, that I have those signals, how can I place them? I read in others answers about ZeroMQ and Python binding but I don't need to do any analysis or strategy building, I just want to place

Getting signals from telegram channel and placing them in MT4 using Python

試著忘記壹切 提交于 2021-01-25 07:10:39
问题 I would like to read messages from a Telegram channel (which are essential forex signals) and place the orders in MT4 windows application. For now, I have made a python script which listens to the channels and stores messages in a database. I can also parse the messages for necessary values like TP,SL etc. Now, that I have those signals, how can I place them? I read in others answers about ZeroMQ and Python binding but I don't need to do any analysis or strategy building, I just want to place

Getting signals from telegram channel and placing them in MT4 using Python

旧城冷巷雨未停 提交于 2021-01-25 07:09:51
问题 I would like to read messages from a Telegram channel (which are essential forex signals) and place the orders in MT4 windows application. For now, I have made a python script which listens to the channels and stores messages in a database. I can also parse the messages for necessary values like TP,SL etc. Now, that I have those signals, how can I place them? I read in others answers about ZeroMQ and Python binding but I don't need to do any analysis or strategy building, I just want to place

Getting signals from telegram channel and placing them in MT4 using Python

人盡茶涼 提交于 2021-01-25 07:09:44
问题 I would like to read messages from a Telegram channel (which are essential forex signals) and place the orders in MT4 windows application. For now, I have made a python script which listens to the channels and stores messages in a database. I can also parse the messages for necessary values like TP,SL etc. Now, that I have those signals, how can I place them? I read in others answers about ZeroMQ and Python binding but I don't need to do any analysis or strategy building, I just want to place

Fail to get real time prices from Alpha Vantage API. Prices are one day old

孤者浪人 提交于 2021-01-04 12:33:30
问题 I am trying to get the latest Intraday prices from Alpha Vantage API. Currently it is Friday, 9:16PM Eastern European Time. I am trying to get Tesla stock. Markets are still open. However, The API call returns me yesterday's data only. What could be the problem? ts = TimeSeries(key='API_KEY', output_format='pandas') data, meta_data = ts.get_intraday(symbol='TSLA',interval='1min', outputsize='full') print(data.head(5)) print(meta_data) 1. open 2. high 3. low 4. close 5. volume date 2020-04-16

Pandas calculate result dataframe from a dataframe of multiple trades at same timestamp

China☆狼群 提交于 2020-12-14 07:57:15
问题 I have a dataframe containing trades with duplicated timestamps and buy and sell orders divided over several rows. In my example the total order amount is the sum over the same timestamp for that particular stock. I have created a simplified dataframe to show how the data looks like. I would like to end up with an dataframe with results from the trades and a trading ID for each trades. All trades are long positions, ie buy and try to sell at a higher price. The ID column for the desired

Pandas calculate result dataframe from a dataframe of multiple trades at same timestamp

。_饼干妹妹 提交于 2020-12-14 07:54:01
问题 I have a dataframe containing trades with duplicated timestamps and buy and sell orders divided over several rows. In my example the total order amount is the sum over the same timestamp for that particular stock. I have created a simplified dataframe to show how the data looks like. I would like to end up with an dataframe with results from the trades and a trading ID for each trades. All trades are long positions, ie buy and try to sell at a higher price. The ID column for the desired

Pinescript set a position size

ぃ、小莉子 提交于 2020-12-01 12:56:00
问题 My strategy() is fully working but now I'm trying to manage how money is put in the trade. HERE'S MY CURRENT SITUATION : I have a SL set at the lowest low of the last 10 bars and a TP set at 1.5xSL. My strategy.exit : strategy.exit("EXIT LONG","LONG", stop=longSL, limit=longTP) Until here, everything is working fine. THE PROBLEM : Even though I use : strategy("TEST MACD DEFAULT", shorttitle="MACD", overlay=true, initial_capital=1000, default_qty_type=strategy.equity, default_qty_value=1,

Pinescript set a position size

为君一笑 提交于 2020-12-01 12:55:34
问题 My strategy() is fully working but now I'm trying to manage how money is put in the trade. HERE'S MY CURRENT SITUATION : I have a SL set at the lowest low of the last 10 bars and a TP set at 1.5xSL. My strategy.exit : strategy.exit("EXIT LONG","LONG", stop=longSL, limit=longTP) Until here, everything is working fine. THE PROBLEM : Even though I use : strategy("TEST MACD DEFAULT", shorttitle="MACD", overlay=true, initial_capital=1000, default_qty_type=strategy.equity, default_qty_value=1,

Pinescript set a position size

隐身守侯 提交于 2020-12-01 12:52:43
问题 My strategy() is fully working but now I'm trying to manage how money is put in the trade. HERE'S MY CURRENT SITUATION : I have a SL set at the lowest low of the last 10 bars and a TP set at 1.5xSL. My strategy.exit : strategy.exit("EXIT LONG","LONG", stop=longSL, limit=longTP) Until here, everything is working fine. THE PROBLEM : Even though I use : strategy("TEST MACD DEFAULT", shorttitle="MACD", overlay=true, initial_capital=1000, default_qty_type=strategy.equity, default_qty_value=1,