π·π This is Butcher of FatPig signals ππ·
# npm
npm i skinnypig
# yarn
yarn add skinnypig
// esm
import { butcher } from "skinnypig"
// cjs
const { butcher } = require("skinnypig")
// async
try {
const { signal, confidence } = await butcher("path/Of/fatPigSignalImage.jpg")
/** signal output
* {
* pair: ["BNB", "USDT"],
* entry: [560, 614],
* stop: [479],
* targets: [632, 658, 705, 780, 900, 1150]
* }
*/
} catch (e) {
// The image is unrecognizable
}
// sync
butcher("path/Of/fatPigSignalImage.jpg")
.then(({ signal, confidence }) => {
/** confidence output
* 92
*/
})
.catch((e) => {
// The image is unrecognizable
})
butcher "path/Of/target.jpg" --reflect "path/of/reflect.jpg" --log
- Not browser-compatible.
- Only images like targets are supported.