shadowkan
Newbie
Offline
Activity: 10
Merit: 0
|
|
July 30, 2017, 08:16:08 AM |
|
hi sampey,
I trade cryptos from a couple of years, but I am new at this trading bot thing.
I had a look at your user guide, but didn't find material about how to write my algorithm.
I am looking for automate a ping-pong trade like in this example: - at the beginning of every 30 minutes candle set a limit order 100 USD lower than the opening price of the current 30 minutes candle - once the buy order is filled (even just partially) put a limit sell at 50 USD over the buying price (+ an eventual a once-cancel-the-other limit stop sell at 100 USD below the buying price)
The variables of course will be: - the candles (1 min, 5 min, 30 min, 1 hour, etc..) - the limit sell positive differential (value in USD or %) - the stop limit sell differential (value in USD or %)
FYI I'm doing this on bifinex.
Hi, CAT doesn't works with candle, sorry you can set price limit for the opening order (PING). Then you will obtain the behaviour you describe (when a partial/total trade occurs CAT can create a new PONG Order at the % Of gain you set) And of course you can set a stop loss vale. Ok, I got it. Maybe there is the possibility to automatize the ping order as described below? For example, every 40 seconds request the lowest ask price and: - first remove all the eventual former orders - second put a buy limit 50 usd lower - once is filled (even partially) put a limit sell + an eventual stop (OCO)
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
July 30, 2017, 08:25:13 AM |
|
For example, every 40 seconds request the lowest ask price and: - first remove all the eventual former orders - second put a buy limit 50 usd lower - once is filled (even partially) put a limit sell + an eventual stop (OCO)
ok so 40 Second is the PING-PONG algorithm lookup time CAT remove your orders and all the "filter" (you have a set of filters over qty/price/total) then calculate the best price the filling part is when a trade occurs over a PING (or PONG Order). In the ping case a new order (of opposite type) is created with the min price to allowed you to have the % GAIN you set in your parameters. The stop part is an option called "Run algorithm for X Minutes the return all to <Primary>/<Secondary>" It's not exactly what you ask, but it can be similar
|
|
|
|
shadowkan
Newbie
Offline
Activity: 10
Merit: 0
|
|
July 30, 2017, 08:39:37 AM |
|
yes, can be used in order to obtain a quite similar result. 40 Second is the PING-PONG algorithm lookup time
yes, i read it before. and can't be adjusted to 60 or 300 seconds, for example, or it is a fixed lookup time? CAT remove your orders and all the "filter" (you have a set of filters over qty/price/total) then calculate the best price
in this way it should be able to update the best price every 40 sec, keeping open only the ping-filled orders waiting for their pong to close them. In the ping case a new order (of opposite type) is created with the min price to allowed you to have the % GAIN you set in your parameters.
and this % is net, deducted of fees. right? I guess can't be setted an absolute value instead of %, right?
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
July 30, 2017, 08:50:16 AM |
|
yes, i read it before. and can't be adjusted to 60 or 300 seconds, for example, or it is a fixed lookup time? you can modify this value as you prefer and for any single algorithm you're running. in this way it should be able to update the best price every 40 sec, keeping open only the ping-filled orders waiting for their pong to close them. yes, there's also the RECALCULATION routine : CAT tries to recreate (if you want) your ping (or pong) order in the best market position. and this % is net, deducted of fees. right? I guess can't be setted an absolute value instead of %, right? is WITH Fee, so if you're on an exchange with 0.25% FEE, you should calculate 0.25% (PING FEE) + 0.25% (PONG FEE) + REAL GAIN (Example 0.1%) = 0.6% CAT always suggest as default the "min gain" as buyfee + sell see + 0.1%
|
|
|
|
shadowkan
Newbie
Offline
Activity: 10
Merit: 0
|
|
July 30, 2017, 09:27:55 AM |
|
sounds great. seems to be what i'm looking for. yes, there's also the RECALCULATION routine : CAT tries to recreate (if you want) your ping (or pong) order in the best market position.
not sure to understand this point. do you confirm that at each iteration I can automatically remove the former(s) pings, without removing former(s) pongs and place a new ping recalculated on the basis of the last "lowest ask" received? is it eventually possible to try your software for a trial period of say 1 week or something?
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
July 30, 2017, 09:31:23 AM |
|
sounds great. seems to be what i'm looking for. yes, there's also the RECALCULATION routine : CAT tries to recreate (if you want) your ping (or pong) order in the best market position.
not sure to understand this point. do you confirm that at each iteration I can automatically remove the former(s) pings, without removing former(s) pongs and place a new ping recalculated on the basis of the last "lowest ask" received? is it eventually possible to try your software for a trial period of say 1 week or something? There's no demo copy sorry In general : Manually you can do what you wants. Whan you say "Remove the formers(s) pings" what do you mean? Just to be more precise....
|
|
|
|
shadowkan
Newbie
Offline
Activity: 10
Merit: 0
|
|
July 30, 2017, 10:15:17 AM |
|
wait.. i edit my post. sorry
|
|
|
|
|
shadowkan
Newbie
Offline
Activity: 10
Merit: 0
|
|
July 30, 2017, 10:26:37 AM |
|
I wrote an answer before but was complitely wrong. Too rush now it's fixed: the part about the deleting is in bold below. i will give you an example: iteration 1: the bot "read" the lowest ask from bitfinex = 2500 USD the bot creates a ping (buy) at say 1% under the lowest ask = 2475 USD iteration 2: (1 minute after) in the book we have the ping created at iteration 1 unfilled --> the bot delete it ****the bot "read" the lowest ask from bitfinex = 2600 USD the bot creates a ping (buy) at say 1% under the lowest ask = 2574 USD then, before the iteration 3 happens: the ping created at iteration 2 gets filled --> the bot creates the pong (sell) at say 1% over the buy = 2599.7 USD iteration 3: (1 minute after) in the book we don’t have the ping created at iteration 1 --> the bot deleted ita t iteration 2 in the book we have the pong created after iteration 2 --> the bot keep it open the bot "read" the lowest ask from bitfinex = 2550 USD the bot creates a ping (buy) at say 1% under the lowest ask = 2524.5 USD then, before the iteration 4 happens: the ping created after iteration 2 gets filled --> the bot close it and so on.. **** with the expression delete it I meant this: the bot delete ping unfilled at each iteration, in order to always have maximum 1 unfilled ping (1% under the last lowest ask).ty for your patience!
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
July 30, 2017, 10:43:04 AM |
|
I wrote an answer before but was complitely wrong. Too rush now it's fixed: the part about the deleting is in bold below. i will give you an example: iteration 1: the bot "read" the lowest ask from bitfinex = 2500 USD the bot creates a ping (buy) at say 1% under the lowest ask = 2475 USD iteration 2: (1 minute after) in the book we have the ping created at iteration 1 unfilled --> the bot delete it ****the bot "read" the lowest ask from bitfinex = 2600 USD the bot creates a ping (buy) at say 1% under the lowest ask = 2574 USD then, before the iteration 3 happens: the ping created at iteration 2 gets filled --> the bot creates the pong (sell) at say 1% over the buy = 2599.7 USD iteration 3: (1 minute after) in the book we don’t have the ping created at iteration 1 --> the bot deleted ita t iteration 2 in the book we have the pong created after iteration 2 --> the bot keep it open the bot "read" the lowest ask from bitfinex = 2550 USD the bot creates a ping (buy) at say 1% under the lowest ask = 2524.5 USD then, before the iteration 4 happens: the ping created after iteration 2 gets filled --> the bot close it and so on.. **** with the expression delete it I meant this: the bot delete ping unfilled at each iteration, in order to always have maximum 1 unfilled ping (1% under the last lowest ask).ty for your patience! Iteration 1 is not possible, there's no "Create order at market price - X%" you should use another way like price limit options. Iteration 2 is called RECREATION and you can make cat perform this operation every 1 Lookup (by default is 5). CAT is able to manage partially trades and continue pong only with partial trade. Recreation occurs over the current orders. And if CAT is able to recreate that orders then order will be deleted and recreated. Otherwise order will remain in the order book at the same position. CAT creat new ping starting from a structure called BUY/SELL POOL. As i said before you can find all the info in the CAT tips & Trickes. There's also a schema about ping-pong.
|
|
|
|
shadowkan
Newbie
Offline
Activity: 10
Merit: 0
|
|
July 30, 2017, 10:55:29 AM |
|
and price limit must be a number that I insert, can't be self-calculated by the CAT?
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
July 30, 2017, 10:56:14 AM |
|
and price limit must be a number that I insert, can't be self-calculated by the CAT?
there are dynamic limit like "Never Buy/Sell Under/Over your last Buy/SEll Ping/Pong Price +/- X%"
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
July 31, 2017, 06:33:03 PM |
|
Tomorrow i will launch the AUGUST OFFER31 Days WITH BIG DISCOUNT Over a CAT Copy purchase Stay tuned!!!
|
|
|
|
tommereith
Newbie
Offline
Activity: 26
Merit: 0
|
|
July 31, 2017, 06:44:42 PM |
|
Will GDAX be added to exchanges in the future?
|
|
|
|
dpapaemc
|
|
July 31, 2017, 06:44:54 PM |
|
Tomorrow i will launch the AUGUST OFFER31 Days WITH BIG DISCOUNT Over a CAT Copy purchase Stay tuned!!! Got any August Specials on Exchange API for those who already own the core.
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
July 31, 2017, 06:46:23 PM |
|
Will GDAX be added to exchanges in the future?
GDAX still request documents for layer 1 right? In other words is there a way to trade on GDAX without send documents?
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
July 31, 2017, 06:46:38 PM |
|
Tomorrow i will launch the AUGUST OFFER31 Days WITH BIG DISCOUNT Over a CAT Copy purchase Stay tuned!!! Got any August Specials on Exchange API for those who already own the core. Maybe
|
|
|
|
tommereith
Newbie
Offline
Activity: 26
Merit: 0
|
|
July 31, 2017, 07:41:20 PM |
|
Will GDAX be added to exchanges in the future?
GDAX still request documents for layer 1 right? In other words is there a way to trade on GDAX without send documents? It does look like you need to upload docs to create an account. Is that a problem for the CAT program?
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
July 31, 2017, 07:44:47 PM |
|
Will GDAX be added to exchanges in the future?
GDAX still request documents for layer 1 right? In other words is there a way to trade on GDAX without send documents? It does look like you need to upload docs to create an account. Is that a problem for the CAT program? No it's a problem for me :-) i don't want to give personal documents to an exchange i don't use and i don't trust (well to be honest i don't trust any exchange ).
|
|
|
|
tommereith
Newbie
Offline
Activity: 26
Merit: 0
|
|
July 31, 2017, 07:48:51 PM |
|
Will GDAX be added to exchanges in the future?
GDAX still request documents for layer 1 right? In other words is there a way to trade on GDAX without send documents? It does look like you need to upload docs to create an account. Is that a problem for the CAT program? No it's a problem for me :-) i don't want to give personal documents to an exchange i don't use and i don't trust (well to be honest i don't trust any exchange ). Ahhh... I think I understand. You can't implement the api because you don't want to create an account to test it with. Is that correct?
|
|
|
|
|