Post
Topic
Board Trading Discussion
Re: Chrome Browser extension: MtGox trading bot
by
jon@bitcoinads.com
on 09/05/2013, 00:34:31 UTC
Tobbe

Your modified extension is Ba Dass!

A couple of thoughts:

You should add a space to line 22 of popup.js for the ticks element.

    document.getElementById("ticks").innerHTML=bp.tickCount+ " samples"


And I added a new Ema s/l % metric to the graph tooltip (You won't want to add it like this, it's just a hack):

function formatEMALongTooltip(sp, options, fields){
    var trend='?';
    if (lastEmaTime==fields.x)
        trend=(fields.yUP':(fields.y>lastEmaShort?'DOWN':'none'));

    //
    // Display EMA S/L %. Helpful for gauging on the graph when trades execute on new trend directions.
    // Round to 3 decimal places.
    //
    var per = ((lastEmaShort-fields.y) / ((lastEmaShort+fields.y)/2)) * 100;
    trend = trend + ' ' + Math.abs(Math.round(per*1000)/1000) + '%';

    return ' EMA'+bp.EmaLongPar+': '+formatChartNumbers(fields.y)+'Trend: '+trend;
}

I wanted to see from the chart when trades would be placed having different thresholds....

Cheers.
Jon