Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have signal but not trade #296

Open
anakein opened this issue Apr 13, 2022 · 1 comment
Open

I have signal but not trade #296

anakein opened this issue Apr 13, 2022 · 1 comment

Comments

@anakein
Copy link

anakein commented Apr 13, 2022

I have this signals but dont trade.

binance BNBUSDT   dip_catcher 13.04.22 12:45   {"price":"414.90000000","strategy":"dip_catcher","raw":"{"_debug":{"candles":{"time":1649845800,"open":416.4,"high":417.3,"low":414.5,"close":414.9,"volume":12447.492},"hma_high":418.3043650793479,"hma_low":414.3188888885682,"hma":416.7155555557874,"cloud":{"conversion":416.85,"base":413.5,"spanA":415.175,"spanB":406.15},"bb":{"lower":415.815310236732,"middle":418.5550000000003,"upper":421.2946897632686,"width":0.013091181628547265},"trend":true,"message":"long_lower_cross"},"_signal":"long","placeOrders":[]}"}
binance AVAXUSDT   dip_catcher 13.04.22 12:45   {"price":"76.45000000","strategy":"dip_catcher","raw":"{"_debug":{"candles":{"time":1649845800,"open":76.68,"high":76.82,"low":76.38,"close":76.44,"volume":18479.65},"hma_high":77.0917063491061,"hma_low":76.31122222226547,"hma":76.74596296289485,"cloud":{"conversion":77.19,"base":76.85499999999999,"spanA":77.0225,"spanB":76.52000000000001},"bb":{"lower":76.60480504039076,"middle":77.32299999999998,"upper":78.0411949596092,"width":0.018576489779476252},"trend":true,"message":"long_lower_cross"},"_signal":"long","placeOrders":[]}"}
binance XRPUSDT   dip_catcher 13.04.22 12:45   {"price":"0.71050000","strategy":"dip_catcher","raw":"{"_debug":{"candles":{"time":1649845800,"open":0.7098,"high":0.7118,"low":0.7075,"close":0.7106,"volume":2646097},"hma_high":0.7112269841271015,"hma_low":0.7073811111113143,"hma":0.7106011111110777,"cloud":{"conversion":0.7160500000000001,"base":0.7132000000000001,"spanA":0.7146250000000001,"spanB":0.7124},"bb":{"lower":0.7088052471618723,"middle":0.7145199999999998,"upper":0.7202347528381273,"width":0.015996061238670724},"trend":true,"message":"long_lower_cross"},"_signal":"long","placeOrders":[]}"}
 

this is my intance.js

var c = module.exports = {}

c.symbols = []

let z = [
'BTCUSDT', 'ETHUSDT', 'BNBUSDT', 'SOLUSDT', "LUNAUSDT", 'XRPUSDT', 'DOTUSDT', 'GMTUSDT', 'ADAUSDT', "AVAXUSDT",
]

z.forEach((pair) => {
c.symbols.push({
'symbol': pair,
'periods': ['1m', '15m', '1h'],
'exchange': 'binance',
'state': 'watch',
'watchdogs': [
{
'name': 'stoploss_watch',
'stop': 2.5,
}
],
'strategies': [
{
strategy: 'dip_catcher',
options: {
"period": "15m",
"trend_cloud_multiplier": 4,
"hma_high_period": 7,
"hma_high_candle_source": "high",
"hma_low_period": 4,
"hma_low_candle_source": "low"
},
}
]
})
})
//tradear
let x = [
'BTCEUR', "LUNAEUR",
]

x.forEach((pair) => {
c.symbols.push({
'symbol': pair,
'periods': ['1m', '15m', '1h'],
'exchange': 'binance',
'state': 'trade',
'watchdogs': [
{
'name': 'stoploss_watch',
'stop': 2.5,
}
],
'strategies': [
{
strategy: 'dip_catcher',
options: {
"period": "15m",
"trend_cloud_multiplier": 5,
"hma_high_period": 7,
"hma_high_candle_source": "close",
"hma_low_period": 4,
"hma_low_candle_source": "close"
},
}
],

    'trade ': {
        currency_capital: 100,
        strategies: [
            {
            strategy: 'dip_catcher',
            interval: '15m',
            options: {
                "period": "15m",
                "trend_cloud_multiplier": 5,
                "hma_high_period": 7,
                "hma_high_candle_source": "close",
                "hma_low_period": 4,
                "hma_low_candle_source": "close"
              },
            }
        ],
     }   
})

})

@anakein
Copy link
Author

anakein commented Apr 15, 2022

Solved.

this is my instance.js

var c = module.exports = {}

c.symbols = []

// only watch solo mirar
let z = [
    'BTCUSDT', 'ETHUSDT', 'BNBUSDT', 'SOLUSDT', "LUNAUSDT", 'XRPUSDT', 'DOTUSDT', 'GMTUSDT', 'ADAUSDT', "AVAXUSDT",
]

z.forEach((pair) => {
    c.symbols.push({
        'symbol': pair,
        'periods': ['1m', '15m', '1h'],
        'exchange': 'binance',
        'state': 'watch',
        'watchdogs': [
            {
                'name': 'stoploss_watch',
                'stop': 2.5,
            }
        ],
        'strategies': [
            {
            strategy: 'dip_catcher',
            options: {
                "period": "15m",
                "trend_cloud_multiplier": 4,
                "hma_high_period": 9,
                "hma_high_candle_source": "close",
                "hma_low_period": 7,
                "hma_low_candle_source": "close"
                },
            }
        ]
    })
})
//trade 
let x = [
    'BTCEUR', "LUNAEUR", 
]

x.forEach((pair) => {
    c.symbols.push({
        symbol: pair,
        periods: ['1m', '15m', '1h'],
        exchange: 'binance',
        trade : {
            currency_capital: 100,
            strategies: [
                {
                strategy: 'dip_catcher',
                interval: '15m',
                options: {
                    "period": "15m",
                    "trend_cloud_multiplier": 5,
                    "hma_high_period": 7,
                    "hma_high_candle_source": "close",
                    "hma_low_period": 4,
                    "hma_low_candle_source": "close"
                  }
                }
            ]
         }, 
        watchdogs: [
            {
                name: 'stoploss_watch',
                stop: 2.5,
            }
        ]
  
    })
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant