Exemple #1
0
def search_ema_hourly(pair, exchange):
    coin = Coin(pair, exchange)
    bullish_cross, hours_ago = coin.ema_bullish_cross(timeframe="1h",
                                                      fast_period=4,
                                                      slow_period=18)
    if bullish_cross and hours_ago <= 5:
        print(coin.pair, "({})".format(coin.exchange),
              "EMA 4-18 bullish cross {} hours ago".format(hours_ago))
Exemple #2
0
def search_ema_daily_mature(pair, exchange):
    """
    Finds older bullish crosses that are probably a stronger upwards trend.
    1. Bullruns that are just about to end
    2. Pumps that are slowly dying out
    3. Look for the ones that haven't increased so much since then, and are slowly rising.
    """
    coin = Coin(pair, exchange)
    bullish_cross, days_ago = coin.ema_bullish_cross(timeframe="1d",
                                                     fast_period=9,
                                                     slow_period=26)
    if bullish_cross and (8 <= days_ago <= 20):
        print(coin.pair, "({})".format(coin.exchange),
              "EMA 9-26 bullish cross, confirmed by {} days".format(days_ago))
Exemple #3
0
def search_ema_daily(pair, exchange):
    """
    Find recent bullish crosses (recent being < 10 days ago)
    Remember to take the market condition and type of coin into account.
    Finds these kinds of coins:
    1. pumps that are just about to dump (look at the slope)
    2. pumps in the process of dumping
    3. gradual, weak bullish crosses that'll peter out soon
    4. gradual small bullish crosses that'll could become something big
    """
    coin = Coin(pair, exchange)
    bullish_cross, days_ago = coin.ema_bullish_cross(timeframe="1d",
                                                     fast_period=9,
                                                     slow_period=26)
    if bullish_cross and days_ago <= 10:
        print(coin.pair, "({})".format(coin.exchange),
              "EMA 9-26 bullish cross {} days ago".format(days_ago))