But, being a Supply / Demand trader, do you prefer rectangles or levels?
This is an example of a level AFL that I use:
Hi João,
thanks for a tips, I'm a supply/demand trader and using rectangles to draw zones. If am I now wrong, studies drawn by AFL will stay on a chart even when you switch to another instument? I don't think so that GFX plots can be locked to specified intrument.
I'll make a short video about my progress :)
Snapping to open/close works if 'o' or 'c' key if pressed (if Snap to price enabled).
Thanks again
Luke
On 21/05/2016 07:15, João Flávio Machado Derzi joaoderzi@gmail.com [amibroker] wrote:
Luke,
about the rectangles, I believe it will be easier to create an AFL where you draw them using Ctrl+Left Mouse Button, for example.
Much easier and faster than create studies and fill IDs.
It is easy to code, specially when using a limited max number of rectangles per symbol (3, 5...).
For an unlimited number, it is a little harder depending of how you wanna the AFL to behave.
You would have to use static arrays to store the rectangles instead of static variables. If you delete one rectangle you should rearrenge the array. Not a big deal but harder than only test 5 staticvars.
I can give you a hand but I will be really busy until the 25th.
If you wanna do it by your own, search for "Vertical Study Line instead of SelectedValue, BeginValue, EndValue".Somewhere there, there is a code I made that shows some basics about getting the mouse clicks and position.
About the open/close, some tools like trendlines already do that.If that is not enough you can use the option Format / Snap to price. It will help a lot.Be sure to fill the Tick Size on the Symbol information window.
There is a current thread about it.
--
2016-05-19 14:40 GMT-03:00 Lukasz Kubisz jawakow@yahoo.pl [amibroker] <amibroker@yahoogroups.com>:
All rectangles are drawn manually. I've managed to get lines with prices by retrieving study coordinates by AFL, but that requires different study ID for every study and duplicate functions in AFL. Is there any chance to change study properties by AFL?
Another off topic question: is snapping to bar open/close possible?
Thanks.
Luke
How the rectangles are drawn, manually or AFL created?
2016-05-17 10:18 GMT-03:00 Sab Nys sabnys@yahoo.com [amibroker] <amibroker@yahoogroups.com>:
>> It seems that inline pictures are not displaying
Maybe try Thunderbird.
It seems that inline pictures are not displaying, so here it is.
https://groups.yahoo.com/neo/groups/amibroker/photos/albums/1264309556/lightbox/160572435?orderBy=ordinal&sortOrder=asc&photoFilter=ALL
Agradeço antecipadamente,
----------------------------------------------------------João Flávio Machado Derzi+55 (31) 9 9731-4469
Posted by: =?UTF-8?Q?Jo=C3=A3o_Fl=C3=A1vio_Machado_Derzi?= <joaoderzi@gmail.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (10) |
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