Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
trading bot
SUBMITTED BY:
Guest
DATE:
Jan. 13, 2015, 12:49 a.m.
FORMAT:
Python
SIZE:
525 Bytes
Raw
Download
Tweet
HITS:
875
Go to comments
Report
# Donations: 16RdQZ86NUWQbE6rM86JbxnnaCDcAKqa9
def
getTrend
():
return
getCurrentPrice
()
-
getOldPrice
()
def
chekMax
():
if
getOldTrend
()
>
0
and
getCurrentTrend
()
<
0
:
return
True
return
False
def
checkMax
():
if
getOldTrend
()
<
0
and
getCurrentTrend
()
>
0
:
return
True
return
False
def
action
():
if
getTrend
()
>
O
and
checkMin
():
buy
(
0.01
)
else
if
getTrend
()
<
0
and
checkMax
():
sell
(
0.01
)
Timer
(
300
,
action
,
())
.
start
()
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus