Post
Topic
Board Trading Discussion
Re: Chrome Browser extension: MtGox trading bot
by
Gimmoroy
on 18/05/2013, 00:07:06 UTC
Thanks a lot for the extension. Especially for the modified version. May I suggest one small improvement? Storing current price in localstorage after buy order was executed and checkbox in options page  to skip sell if current sell price lower than pervious buy price.
Code:
....
if ((tradingEnabled==1)&&(ApiKey!='')) {
if ((skipSellEnabled==1)&&(currentPrice>lastBuyPrice)) {
console.log("SELL! (EMA("+EmaShortPar+")/EMA("+EmaLongPar+")<-"+MinSellThreshold+"% for "+tickCountSell+" or more ticks)");
...

Exactly a current price is not the current price. You make sell order at some time, looking for delayed data....  sell price can be requested from gox only after operation completed.  Shocked