![]() |
|
| Discuss How to plot Buy/Sell arrows in Indicators at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; hello, i wud like a help... i use qstick indicator with EMA.. i wud like ... |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools |
| Sponsored Links |
|
#1
|
|||
|
|||
|
hello, i wud like a help...
i use qstick indicator with EMA.. i wud like to generate Buy/Sell Signal in case of crossovers... i need help in the coding.. In amibroker _SECTION_BEGIN("qstick"); /* QStick from Tushar Chande. This indicator measures intraday momentum by using the distance between the open and close of price over "n periods". It is set at the default ( 8 ) periods that Chande suggest. */ MaxGraph=3; Graph0=MA( C-O,8); // The '0' line. Graph1=0; Graph1Style=5; Graph1Style=styleNoLabel; _SECTION_END(); _SECTION_BEGIN("EMA"); P = ParamField("Price field",-1); Periods = Param("Periods", 15, 2, 200, 1, 10 ); Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); _SECTION_END(); Plz help.. Thanx. |
|
#2
|
|||
|
|||
|
Quote:
Hi Mansukh Don't know much about the indicator...but can suggest you how to code that in Ami. You first need to specify Buy and Sell variables based on crossovers.... Just include these few lines at the last of your code: Buy=Cross(Graph0, Graph1); Sell=Cross(Graph1, Graph0); shape = Buy * shapeUpArrow + Sell * shapeDownArrow; PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low, High ) ); GraphXSpace = 5; Should work. Hope this helps. Cheers D J Sinha |
| Sponsored Links |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
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.