Bitcoin Forum
October 01, 2025, 12:55:56 PM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Trading Discussion / creating macd script on: May 25, 2020, 07:59:50 PM
this was a script I found for trading with macd. It is taken from trality.com:

@schedule(interval="1h", symbol="BTCUSDT")
def handler(state, data):
    macd_ind = data.macd(12,26,9).last

    if macd_ind is None:
        return

    signal = macd_ind['macd_signal']
    macd = macd_ind['macd']

    has_position = has_open_position(data.symbol, truncated=True)
    balance_base = float(query_balance_free(data.base))
    balance_quoted = float(query_balance_free(data.quoted))
    buy_amount = balance_quoted *  0.80 / data.close_last

    if macd > signal and balance_base<buy_amount:
       print("-------")
       print("Checking for buying possibility of {}".format(data.symbol))
       print("buy amount:",buy_amount)
       print("buy price:", data.close_last)

       create_order(symbol=data.symbol,amount = buy_amount)

    elif macd < signal and has_position:
       print("-------")
       print("Checking for selling possibility of {}".format(data.symbol))
       print("sell amount:",balance_base)
       print("sell price:",data.close_last)
       
       close_position(data.symbol)



The problem is that it is based on a macd signal. And I want to define my own macd constraints instead of using a signal. Does anyone know where I could find a python script where you can alter the macd constraints yourself?
2  Economy / Trading Discussion / Re: how do you withdraw from crypto1xbit on: December 02, 2017, 09:35:18 AM
case solved. It was the bitcoin adress that one should use as the E-payment account or ID number.
3  Economy / Trading Discussion / how do you withdraw from crypto1xbit on: December 01, 2017, 03:10:29 AM
I have won a bet at crypto1xbit the bet site. I have never taken bitcoins out of the site. Has anyone done that? At the withdrawing from account site. Is the E-payment account or ID number simply a bitcoin adress for example at my exchange?
4  Alternate cryptocurrencies / Altcoin Discussion / place for gossip on: November 25, 2017, 07:28:52 PM
Does anyone know about a place where gossip about cryptocurrencies are posted. For example that bitquence changed its name from bitquence to ethos this week. And that lisk was placed at binance this week?
5  Economy / Exchanges / Re: YOBIT DEPOSIT MISSING -- POSSIBLE THEFT BY YOBIT on: October 27, 2017, 08:09:42 PM
I am trying to transfer greencoin (GRE) to yobit but it says that


Deposit for such currency is temporary off

Anyone knows when the wallet will be open?
6  Alternate cryptocurrencies / Altcoin Discussion / Re: How to get bitcoin gold ? on: October 25, 2017, 02:53:45 AM
You will have bitcoin gold, if you own the private key to the BTC wallet. Bitcoin Gold is already listed on some exchanges, just go to coinmarketcap.com and it will list all the support.

My problem is that I cant transfer bitcoin gold between different exchanges. Does anyone know when this could be possible?
7  Alternate cryptocurrencies / Altcoin Discussion / Re: How to get bitcoin gold ? on: October 24, 2017, 09:34:14 PM
when can one deposit bitcoin gold into exchanges?
8  Alternate cryptocurrencies / Announcements (Altcoins) / Re: Announcing ReeCoin: People’s Coin on: October 17, 2017, 08:12:17 PM
I saw that ree coin was at 0.2 dollars from 11-13 july. Did anyone manage to sell their ree coins at that price in that time span?
9  Alternate cryptocurrencies / Marketplace (Altcoins) / buying dentacoins on: October 10, 2017, 08:24:02 PM
Hi. I am a newbie at cryptocurrencies. In order to buy shares in dentacoin I need to fill up my bitcoin wallet. I have registered myself for an electrum wallet. But I dont know what site to use to transfer bitcions into it. Can you help out?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!