• Australian (ASX) Stock Market Forum

Amibroker, change Volume format so easier to read

Discussion in 'Software and Data' started by lockscombi, Aug 24, 2016.

  1. lockscombi

    lockscombi lockscombi

    Posts:
    44
    Likes Received:
    0
    Joined:
    Jul 27, 2016
    Hey guys

    Loving this program now. Flying through it :)

    One thing that bothers me is when i move my mouse cursor over a volume candle, it brings up a new box which will say the volume price amount for eg: 24675345

    That's great but is there a way to change the format so it can read: 24m 675 or 24.67534? This simple change will speed up my analytical process greatly. I have looked in tools preferences etc but can't find a section for this

    Thanks in advance
     
  2. RowanC

    RowanC

    Posts:
    39
    Likes Received:
    3
    Joined:
    Jul 2, 2010
    I'm sure there is a proper way, but you could just make a custom volume function like:

    n = 1000000;
    V2 = V / n;
    Plot(V2, "Percent V", colorBrightGreen, styleHistogram);
     
  3. RowanC

    RowanC

    Posts:
    39
    Likes Received:
    3
    Joined:
    Jul 2, 2010
    And in case you're quite new to the coding also

    To insert it.

    Go to Analysis > Formula Editor
    Paste the code in and save it as whatever name you like

    The function will show up in custom and you can drag it on to your chart.
     
  4. Wysiwyg

    Wysiwyg Everyone wants money

    Posts:
    7,710
    Likes Received:
    107
    Joined:
    Aug 8, 2006
    The cursor cross hair and x-y labels can be turned off in View -> x-y labels -> off. There is no adjustment to decimal places for the cursor/crosshair feature. To get the volume amount in easier to see format then as Rowan posted, code it onto the volume chart like so ...
    Code:
    _SECTION_BEGIN("Volume");
    SetChartOptions(0, chartHideQuoteMarker);
    
    Title = EncodeColor(colorYellow)+ " Volume : "+ WriteVal(V, 1);
    
    Plot(V, "", colorWhite, styleHistogram | styleOwnScale | styleThick);
    _SECTION_END();
    Untitled.png

    AFL is very flexible. Good for imaginative types that like colourful displays of price or volume.
     
Loading...

Share This Page