![]() |
|
| Discuss AmiBroker formula Language at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Hello karthikmrar sir, I want to find highest high and lowest low values of previous ... |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools |
| Sponsored Links |
|
#151
|
|||
|
|||
|
Hello karthikmrar sir,
I want to find highest high and lowest low values of previous 20 days.for this i had written hhv function.But is showing all values from current date.But i want only highest high and lowestlow from past 20days.Can you help regarding this. |
| Sponsored Links |
|
#152
|
|||
|
|||
|
hello,
The beta version of Amibroker (5.02.2) can be find the solution, to set the candle color independently,but still it heavy for me in this manner yet unfortunately to write the correct formula . More hours I spent an attempt but I could not write the right formula. Only a step separates already from the solution. I have to modify only one value simply that: IIf( (C > O)AND (C < Ref( C, -1)) colorwhite( show candle with red outline but white inside) _SECTION_BEGIN("Price"); SetChartOptions(0,chartShowArrows|chartShowDates); _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); if (SetBarFillColor( IIf( (C < O) AND (C < Ref( C, -1)), colorRed, colorGreen ) ) ); else (SetBarFillColor( IIf( (C > O)AND (C < Ref( C, -1)), colorWhite,colorWhite))); Plot( C, "Close",IIf( Close < Ref( Close, -1), colorRed, colorGreen ), styleCandle ); _SECTION_END(); Do you know what is wrong in my afl coding? Thank you your help… |
|
#153
|
|||
|
|||
|
Quote:
If your this question is not solved, here is a solution! Please see attached AFL. H20 Water!!! ![]() ![]() ![]() Ref:-http://www.traderji.com/104429-post134.html Last edited by kuriako; 6th December 2007 at 03:53 PM. Reason: added the post reference |
|
#155
|
|||
|
|||
|
unfortunately no position can be fixed without referring an array!
But we can try with barcount to locate the position you need to get! And after getting that initial position using barcount, we can feed data to the new PlotOHLC array for the particular point! all others point till barcount can be set null! I am not that that familiar with Ami, but will try my best for a solution! I am trying to plot H20 if H-L>5. I will post it here if i win.. else you can assume!!! ![]() Was that "Sir" a sarcastic one! Dont embrace me BAV...I am younger and much inexperienced than you... Please call me kuriako
Last edited by kuriako; 6th December 2007 at 09:17 PM. Reason: made h-l>5 |
|
#156
|
|||
|
|||
|
Here it goes BAV!
|
|
#157
|
|||
|
|||
|
Hello Kuri
Right click on the chart you get parameters, in the parameter window u get Axis and Grid tab, in that you have a choice to select Upper/Lower Limit - Yes/No If you can get these values in your program, you should be able draw your vertical line, similar to the H2O lines. Thanks nb ___________________________________ TRADE WHAT YOU SEE, NOT WHAT YOU THINK |
|
#158
|
|||
|
|||
|
Quote:
We need to fix position of the bar where vertical line need to be drawn! I didnt understand your point clearly!Sorry!
|
|
#159
|
|||
|
|||
|
Quote:
![]() Maybe I am giving you a route to hydrabad, when you need hydrabadi biryani ! I meant you should use the Max Min values of current visible part of the chart as high low of the bar, something similar to the H2O lines you have already drawn !! To draw a line you need, 2 points and vertical line can be drawn as a single bar, instead of multiple ones you did with the above example. Quote:
You would have some reasons to choose the bar, same reasons / logic should be used to place the line. Maybe its still not clears, remember its me, not you who is .Thanks nb ___________________________________ TRADE WHAT YOU SEE, NOT WHAT YOU THINK |
|
#160
|
|||
|
|||
|
Scenario!
Naughty BAV (hope he is not reading this ) want to draw a vertical line of "certain dimension" above a particular bar!So for selecting a particular bar i used a mock condition (H-L>5) For plotting a vertical bar we need two points! Say (x,y1) and (x.y2) X is time... y1 for the scenario is taken as H and y2 as H+20 As we both are newbies, we can chit chat more like this!
|
| Sponsored Links |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads for: AmiBroker formula Language
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need help on formula | cmlee | MetaStock | 23 | 8th October 2007 07:55 PM |
| Metastock ,Metatrader & Amibroker indicator formula | saji oommen | MetaStock | 0 | 4th June 2006 06:35 PM |
| Metastock language help | Ropewalker | MetaStock | 4 | 1st November 2005 09:16 PM |
| TradeStation & MetaStock Formula Language | bikertrader | MetaStock | 4 | 10th December 2004 01:50 PM |
Indemnity, Disclaimer & Disclosure
Notice:
• By visiting Traderji.com you indicate your acceptance of our Forum
Rules Disclaimer & Disclosure and indemnify Traderji.com, its
associates and related parties of all claims howsoever resulting from
the usage of the forum.
• Disclaimer: Trading or investing in stocks & commodities
is a high risk activity. Any action you choose to take in the markets
is totally your own responsibility. Traderji.com will not be liable for
any, direct or indirect, consequential or incidental damages or loss arising out of the use of this information.
• Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein.
The writers may or may not be trading in the securities mentioned.
• All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy of information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. If you find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.