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.
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?