Re: [amibroker] Re: Anyone Been able to do this yet?

 


Great.
Thank you for sharing Andy.

To get the VAP of the day, a little mod.

segments = IIf( Interval() < inDaily, Day(), Month() );
segments = segments != Ref( segments , -1 );
daysback = Param("DaysBack", 1, 1, 100, 1);

bi = BarIndex();
//fvb = BeginValue(bi);
fvb = Lastvalue( Valuewhen( segments, bi, daysback ) );
lvb = EndValue(bi);


Best regards


Le 30/04/2016 07:16, jorgen.wallgren@gmail.com [amibroker] a écrit :
Cool!

Then you can go one step further an automate the number of Bins and Rectangle Height:

//bins = Param("Bins", 100, 3, 100, 1); REPLACED BY:
Tick = 0.25; // Tick-size for ES e-mini future.
VisNumBars = LVB - FVB;
HighestHigh = HHV( High, VisNumBars );
LowestLow = LLV( Low, VisNumBars );
bins = SelectedValue( 1 + ( HighestHigh - LowestLow ) / Tick );

and

//pRecHeight = Param("Rectangle Height", 0.90, 0.10, 1, 0.05); REPLACED BY:
pRecHeight = SelectedValue( ( HighestHigh - LowestLow ) / ( bins - 1 ) );

Regards,

Jorgen

__._,_.___

Posted by: reinsley <reinsley@yahoo.fr>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (6)

Check out the automatic photo album with 1 photo(s) from this topic.
VAP.png

Upgrade your account with the latest Yahoo Mail app
Get organized with the fast and easy-to-use Yahoo Mail app. Upgrade today!

**** 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/


.

__,_._,___


EmoticonEmoticon