Traderji.com - Discussion forum for Stocks Commodities & Forex

Trailing Stoploss Indicator

Discuss Trailing Stoploss Indicator at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Hi Friends, Here is the formula for a simple Trailing stop indicator The formula draws ...


Go Back   Traderji.com - Discussion forum for Stocks Commodities & Forex > TOOLS & RESOURCES > Software > AmiBroker

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #1  
Old 27th October 2006, 03:39 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 914
Thanks: 0
Thanked 33 Times in 3 Posts
bvpraveen will become famous soon enough
Reputation: 65
Default Trailing Stoploss Indicator

Quote:
Hi Friends,

Here is the formula for a simple Trailing stop indicator

The formula draws a stoploss loss line which will be 7% below the highest close within a lookback period of 20 bars.

The Stoploss % and the Lookback period can be varied. When you plot the indicator you will be prompted for Look back period and Stoploss%. The defaults are set to 20 bars and 7%.

THIS IS METASTOCK FORMULA
LB:= Input("Enter lookback period",15,30,20);
PERIOD:= Input("ENTER % STOPLOSS",2,10,7);
HHV(C ,LB)-(HHV(C,LB)*(PERIOD/100))

A chart is enclosed just to give an idea how this one looks

regards,
karthik
Hi Friends,

Karthickmarar had given the above formula for Metastock. Below you can find the corresponding formulat for AmiBroker.

CORRESPONDING AMIBROKER FORMULA

lookbackPeriod = Param("Lookback period", 20, 15, 30);
stoplossPercentage = Param("Stoploss Percentage", 7, 2, 10);
Plot(HHV(C,lookbackPeriod) - HHV(C,lookbackPeriod) * (stoplossPercentage / 100), "Trailing stoploss", ParamColor( "Color", colorCycle ));

It will prompt for Period, SL % and Colour. Ofcourse default values are given for all the three. The user can change them according to their needs.

The attached amibroker screen shot will give you an idea about the whole picture.

Thanks,
Praveen.
Attached Images
File Type: png TrailingStoploss.PNG (14.5 KB, 193 views)

Last edited by bvpraveen; 27th October 2006 at 03:52 PM. Reason: Attached the screenshot
Reply With Quote
Sponsored Links

Sponsored Links
Reply

Bookmarks


Advertise Here


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads for: Trailing Stoploss Indicator
Thread Thread Starter Forum Replies Last Post
Need Help with setting Trailing Stoploss in Indiabulls anandm Brokers & Demat Matters 8 7th July 2008 08:05 AM
Trailing Stoploss Indicator karthikmarar MetaStock 5 5th May 2008 08:54 AM
Stoploss Is My Boss rvlv Trading Psychology 7 20th April 2008 05:46 PM
Stoploss and co -simple formulae rvlv Trading Psychology 1 4th June 2007 01:40 AM
ATR Based trailing Stoploss Indicator indianbullbear MetaStock 1 16th November 2005 12:58 AM


All times are GMT +5.5. The time now is 12:07 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.
 


Copyright © 2001 - 2008, Traderji.com All Rights Reserved.

Recommended Websites - www.TradersEdgeIndia.com - www.TradingPicks.com - www.MasterOfTrading.com