Strategy exit based on cumulative gain or loss - EasyLanguage Programming | futures io social day trading
futures io futures trading


Strategy exit based on cumulative gain or loss
Updated: Views / Replies:453 / 5
Created: by Donovan2580 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 100,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
 

Strategy exit based on cumulative gain or loss

  #1 (permalink)
Trading Apprentice
Port St. Lucie, FL
 
Futures Experience: Advanced
Platform: Tradestation 9.5
Favorite Futures: Emini
 
Posts: 11 since Jul 2016
Thanks: 6 given, 1 received

Strategy exit based on cumulative gain or loss

I am looking to have my strategy “Quit for the day” once I reach a certain profit target or loss amount.

I am hoping it will take into consideration the daily total of my completed trades, as well as any current trade I am in.

Any ideas on this?? Any help would be greatly appreciated.

I am decent at easy language, but really don't know where to start.

Thanks in advance,

Donovan

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,731 since Apr 2013
Thanks: 265 given, 998 received
Forum Reputation: Legendary


Donovan2580,

the code in the below link might not exactly do what you have in mind, but should give you a good idea about how you could do it:

https://futures.io/elite-easylanguage-automated-trading/42654-p-l-trailing-stop.html#post649526

Other than that you can likely find other examples here on futures.io using the search function or on the official TS forum.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #4 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,731 since Apr 2013
Thanks: 265 given, 998 received
Forum Reputation: Legendary

Donovan2580,

one idea that might work for you would include storing the net profit of your strategy on a date change in a variable and then comparing the current net profit against this variable.
Once the different is greater than your target, set a boolean flag to true and use this flag's value to exit any open positions and also to prevent new entries from being taken. Just keep in mind to set the boolean flag to false on a date change, too - otherwise your strategy wouldn't trade anymore after a profit exit.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #5 (permalink)
Trading Apprentice
Port St. Lucie, FL
 
Futures Experience: Advanced
Platform: Tradestation 9.5
Favorite Futures: Emini
 
Posts: 11 since Jul 2016
Thanks: 6 given, 1 received

Thanks

Just wanted to say thank you... The Boolean is maybe a bit over my head, but it gives me something to look into.

Thanks much for taking the time to reply

Reply With Quote
 
  #6 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,731 since Apr 2013
Thanks: 265 given, 998 received
Forum Reputation: Legendary

Donovan2580,

you are welcome. A boolean variable simply means that this variable is of the type bool and holds true or false as values (BOOL (Reserved Word))

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:

Reply



futures io > > > > > Strategy exit based on cumulative gain or loss

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

July Journal Challenge - $500 in Amazon Gift Cards!

July

Battlestations: $750 in prizes - Show us your trading desk!

August

TBA: FuturesTrader71 w/Morad Askar

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exit open positions based on time guppy EasyLanguage Programming 6 March 25th, 2018 12:13 PM
ES Mini Stop Loss and Exit price input Jdesey Psychology and Money Management 11 August 23rd, 2015 07:29 PM
How to set a dinamic stop loss based on percent Astrogirl NinjaTrader Programming 11 October 20th, 2013 09:22 AM
HELP in determining the Gain/Loss per move in SI,PL,NG,LE,etc..... mdsvtr Emini Index Futures Trading 2 February 20th, 2013 07:34 PM
Profit & Loss display based on Bid/ask instead of Last Amnesia Sierra Chart 3 September 2nd, 2012 09:30 PM


All times are GMT -4. The time now is 04:04 PM. (this page content is cached, log in for real-time version)

Copyright © 2018 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 2018-07-21 in 0.10 seconds with 14 queries on phoenix