[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Price scaling question


  • Date: Tue, 9 Mar 2010 22:18:24 +1100
  • From: "Neil Wrightson" <neilw@xxxxxxxxxx>
  • Subject: RE: [amibroker] Price scaling question

PureBytes Links

Trading Reference Links



Hi Reinsley,
 
Works well.
 
Thanks.
 

Regards,

Neil Wrightson.



From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Reinsley
Sent: Tuesday, 9 March 2010 4:00 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Price scaling question

 



// adjustable scale
gridINCR =
Param( "incr", 50, 5, 100, 5 );

if ( ParamToggle( "show custom grid", "NO|YES", 1 ) )
{
    
SetChartOptions( 1, chartShowArrows | chartShowDates, 0 );
    firstbarvisible =
BarIndex() == 1 OR ( Status( "barvisible" ) AND NOT Ref(
                                              
Status( "barvisible" ), -1 ) );
    GridMIN =
LastValue( LowestSince( firstbarvisible, round( ( Low
                                      -
40 ) / 10 ) * 10 ) );
    GridMAX =
LastValue( HighestSince( firstbarvisible, round( ( High
                                       +
40 ) / 10 ) * 10 ) );
    steps = ( GridMAX - GridMIN ) / gridINCR ;

    
for ( i = 0;i < steps;i++ )
//Plot(GridMIN+i*gridINCR, "",ParamColor("color", colorBlack ), styleNoTitle | ParamStyle("style", styleLine | styleNoLabel, maskHistogram ) );//solid
        
PlotGrid( GridMIN + i*gridINCR, colorBlack );// dash
}
else
    
SetChartOptions( 1, chartShowArrows | chartShowDates );



Le 08/03/2010 12:29, Neil Wrightson a écrit :

 

Hi,
 
I trade the FTSE and Australian SPI on 5min charts, both of which are around 5000 points in value and have 20..100 point moves in a day.
 
What I would like to be able to do, is have the price scale on the right hand side of the chart fixed to a certain size.
I.e. on my screen it would be good if the 10 points equaled 30mm in height.
It would also be good if the grid lines could be set at a defined user amount, say every 10 points I.e. a horizontal grid line at 4840, 4830,4820 etc or perhaps at a 5 point level.
 
The chart would still be allowed to automatically move up and down on the screen, so that the last price was always on the screen.
 
I feel the above gives a better common perspective from day to day, as opposed to the scale dynamically changing every second.

Regards,

Neil Wrightson.




__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___