Coding an Exit method - AmiBroker | futures io social day trading
futures io futures trading


Coding an Exit method
Updated: Views / Replies:3,220 / 11
Created: by Alessandro47 Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Coding an Exit method

  #1 (permalink)
Trading Apprentice
Sydney
 
Futures Experience: Intermediate
Platform: Amibroker
Favorite Futures: Forex
 
Posts: 6 since Mar 2014
Thanks: 2 given, 0 received

Coding an Exit method

Dear All,

I am reasonably new to AB but learning at a great rate of knots. I'd like to create some code as follows and would appreciate any advice:

After a Buy signal (already coded) set an initial stop at (say) 10% from the prior period close.
As prices rise, have the trailing stop follow up, trailing 10% from the highest close recorded since the Buy (a bit like a chandelier stop) i.e. the stop is never lowered.

Many thanks in anticipation of your assistance.

Cheers.

Reply With Quote
 
  #2 (permalink)
Trading Apprentice
Asheville, North Carolina
 
Futures Experience: Advanced
Platform: AmiBroker, Dynamic Trader, Metastock, FreeStockCharts, TradingView
Favorite Futures: stocks, options
 
Posts: 24 since Sep 2010
Thanks: 1 given, 15 received

Have you looked at the ApplyStop() function or the codes in the library?

Reply With Quote
 
  #3 (permalink)
Banned: Rude behavior towards others
London UK
 
Futures Experience: Advanced
Platform: -
Favorite Futures: any
 
Posts: 18 since Mar 2014
Thanks: 3 given, 9 received


Here is a link to the knowledge base with an example that explains one applystop and one loop version AmiBroker Knowledge Base » How to plot a trailing stop in the Price chart both executing the same thing. You could alter that loop version to apply any other stop/target method or could write your own loop from scratch or just use Applystop function with built-in methods. If Applystop doesn't have your preferred method in place then as mentioned with a selfmade loop version you can create that one or any other one yourself.

Here is an example from the AB users forum trail stop+initial stop which seems to be similar to what you are looking for.

Reply With Quote
The following user says Thank You to occasionallurker for this post:
 
  #4 (permalink)
Trading Apprentice
Sydney
 
Futures Experience: Intermediate
Platform: Amibroker
Favorite Futures: Forex
 
Posts: 6 since Mar 2014
Thanks: 2 given, 0 received

Thanks occasionallurker. Can you please advise how I can get a copiable version of the code you referred to in "Here is an example from the AB users forum trail stop+initial stop which seems to be similar to what you are looking for." as the link is an image file

Reply With Quote
 
  #5 (permalink)
Banned: Rude behavior towards others
London UK
 
Futures Experience: Advanced
Platform: -
Favorite Futures: any
 
Posts: 18 since Mar 2014
Thanks: 3 given, 9 received


Alessandro47 View Post
Thanks occasionallurker. Can you please advise how I can get a copiable version of the code you referred to in "Here is an example from the AB users forum trail stop+initial stop which seems to be similar to what you are looking for." as the link is an image file

Do you mean to say that both of your hands are too tired or too much broken or even too much non-existent in order to be able to transcribe just a few lines of code from a picture? What about the guy(s) who had to think and to write at the same time? Would you agree that doing just a little bit of handwork without thinking looks like a fair deal or would you agree that this world is becoming a sadder place with every new day?

Reply With Quote
 
  #6 (permalink)
Trading Apprentice
Sydney
 
Futures Experience: Intermediate
Platform: Amibroker
Favorite Futures: Forex
 
Posts: 6 since Mar 2014
Thanks: 2 given, 0 received

You know what, that is exactly what I did in the end. Your impertinence and sarcasm is astounding to say the least. I agree the world is not what it used to be, particularly regarding manners and civility. Perhaps you had a bad day and if so I'm sorry for you, your wife or dog whichever you normally bully. Sometimes it's better to not respond and in this case it would have been better. In the meantime I sincerely wish you well in your trading.

Reply With Quote
 
  #7 (permalink)
Banned: Rude behavior towards others
London UK
 
Futures Experience: Advanced
Platform: -
Favorite Futures: any
 
Posts: 18 since Mar 2014
Thanks: 3 given, 9 received

That's interesting that posting two links and pointing out the truth about obvious laziness is equal to being impertinent nowadays. Please give me a moment to get the complete logic. I'm sorry in advance if it may take a few hundreds of years to understand even 1% of it since in my world the meaning of impertinence could rather be described by the words "Give them a finger, and they'll take the whole hand". But perhaps I haven't been realizing yet that I have been frozen for a few hundreds of years and the meaning has changed dramatically since back then. Then I'm very sorry for not being up-to-date. My bad. I'm gonna download and installl the most recent stupidity update from MS servers and reboot my brain.

Reply With Quote
 
  #8 (permalink)
Trading Apprentice
Sydney
 
Futures Experience: Intermediate
Platform: Amibroker
Favorite Futures: Forex
 
Posts: 6 since Mar 2014
Thanks: 2 given, 0 received

Lurking a dark art form

In your response you demonstrate the same attitude "it's not me!". Go ahead and live in your ignorance but don't drag the world in to it. Quite frankly I find this, not you, boring. I will move on making good profits from good expectancy and leave you to it. As I said before I wish you well. Goodbye lurker.

Reply With Quote
 
  #9 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,354 given, 83,236 received

Moderator Note


The user occasionallurker has been banned for rude behavior. We have no tolerance for that here.




Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #10 (permalink)
Trading Apprentice
Sydney
 
Futures Experience: Intermediate
Platform: Amibroker
Favorite Futures: Forex
 
Posts: 6 since Mar 2014
Thanks: 2 given, 0 received

Thanks


A good outcome, thank you. I was just about to unsubscribe from the site because of this but am refreshed by the your decision. Life is too short so let's get on being positive. Good fortune to all who participate herein.

Reply With Quote

Reply



futures io > > > > Coding an Exit method

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Coding help Pitrader EasyLanguage Programming 5 January 30th, 2014 10:12 AM
timed exit sr114 AmiBroker 2 January 16th, 2013 11:46 AM
It's all about the exit DarkPoolTrading Traders Hideout 1 May 28th, 2012 05:47 AM
Exit Only Strategy ? buylosellhi MultiCharts 6 November 15th, 2011 09:38 PM
Coding a simple entry and exit johni EasyLanguage Programming 10 July 1st, 2011 07:44 AM


All times are GMT -4. The time now is 01:09 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-16 in 0.13 seconds with 19 queries on phoenix via your IP 54.91.38.173