TradingView
ericlin0122
2021年3月29日午前2時48分

DCA Bot Emulator 

Bitcoin / United States DollarCoinbase

詳細

Emulate DCA bot. Buy ASAP. Set chart interval to 1 hour.

リリースノート

bug fix in safe order

リリースノート

clean base chart

リリースノート

clean base chart

リリースノート

enabled decimal inputs

リリースノート

max safe order should be integer

リリースノート

update price_deviation

リリースノート

correct the calculation on safe order scale. Thanks for @Steve83810

リリースノート

- allow source input from: ["Close", "Open", "High", "Low", "HL2", "HLC3", "OHLC4", "Median Body", "Weighted Close", "Trend Biased", "Trend Biased Extreme"]. default: OHLC4
- make safe_order_step_scale should be a geometric sequence

リリースノート

- add trailing deviation to take profit. (I hope my math is correct)

リリースノート

set step to 0.01 to take profit/trailing

リリースノート

fixed calculation on safe order step scale
コメント
Probase101
Thank you very much! Is this bot available?
ericlin0122
djshadowfax
@ericlin0122, is this still available?
ericlin0122
imjp2200
Thanks for sharing this. Can you please add external source option. Like i want to test external strategy with this emulator (anyone can choose external study like RSI, SMA, EMA or any custom TV indicator for trade conditions).
HanktheTank
I might add a trailing tp to this to see exactly what the score is.
ericlin0122
@HanktheTank, ya. i will have to think about the math. if you have idea feel free to link your script here. im more than happy to update it.
mreudaimonic
Brilliant @ericlin0122! Appreciate it!
@HanktheTank, true looking to have Trailing Take profit and Stop Loss integrated, will make more sense.
Any luck with adding TTP and SL.
ericlin0122
@mreudaimonic, added Trailing Take profit
EyeOfTheBulldog
I've been trying to run a script like this for some cryptocurrencies and getting zero orders. Try your script on LINK cryptocurrency with base order of $10 and safety order of $20 for instance. It's not that the conditions to place an order aren't met--it seems to have something to do with the quantity passed to the strategy.entry call. It makes it appear that some currencies don't allow fractional orders (like ordering 0.4 LINK if you're buying $10 worth of it). LINK doesn't work, but yet ETHER does even with small order sizes. It appears the same problem happens with BAL, so it's not just LINK. Anyone know why?

With ether it just places the order for 0.004 ether if youre buying $10 and the price of ether is $4000 per ether. But with LINK, it appears it will only allow ordering a whole number, not less than 1. Is there a way to fix it to allow it to work for those currencies like LINK? Or, is there a way to programmatically determine which currencies won't allow fractional orders?
詳細