I'm trying to port frogdogs frog bot to python, but I'm having trouble converting the code.
Here is the original:
This is what I have now (should be public now), and I'm stuck at this point:
Hopefully someone can help me move a bit further or explain what I'm doing wrong. Thanks
Hey @jurrien -- you'll need to set your strategy as public so that we can view it.
Instructions here: https://discuss.tradewave.net/t/easy-way-to-make-your-strategy-public/330
ahh yes, should be public now
First of all, I think you should give some credit to the original author at the top of your port. Maybe let him or her know too, just out of courtesy. There's no license in the original.
Second, what are you having trouble with? I noticed a syntax error on line 135, but this fixed it:
time_diff = ((timestamp - storage.begin) % (storage.total_period*24*60*60)) / (24*60*60)
Sure, you're right James. I'm not fully aware of all the ethics in this branche. I'm just playing around for a short time, so I hope no one will blame me.
I thought about my first post and there is to much going on, so maybe it would be better if I post a piece of code I've trouble with:
for x in [0..instrument.close.length] by factor
if x < instrument.close.length-1
for x in [0..data.length]
for x in close[-100:0:factor]:
if x < close[-1]:
for x in storage.data[-100:0]:
There seems to by nothing in the lists...
Edit: This piece of code seems redundant... moving on
I'm afraid it's to difficult for me to decode his code. So I stop here. If someone wants to take it over, feel free.