Coding for a partial profit - EasyLanguage Programming | futures io social day trading
futures io futures trading


Coding for a partial profit
Updated: Views / Replies:2,256 / 2
Created: by arjfca 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
 

Coding for a partial profit

  #1 (permalink)
Elite Member
Montreal, Canada
 
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: Interactive Broker
Favorite Futures: Forex
 
Posts: 262 since Sep 2010
Thanks: 436 given, 86 received

Coding for a partial profit

Hello and Happy New Year to all

- Is it possible to capture the actual profit of a position or I need to calculate it using the actual price and the price of entry?

- Using Multicharts (TradeSation), how can i code for a partial profit stop loss?

I'm in profit and the actual profit is more than my 2X my initial risk . If I want to protect half of my actual profit, how can I code it?

Any input trully appreciated.

Martin

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)
 Vendor: www.systemtradersuccess.com 
Gurnee, IL
 
Futures Experience: Advanced
Platform: TradeStation
Broker/Data: TradeStation
Favorite Futures: Futures
 
Posts: 46 since Apr 2010
Thanks: 17 given, 92 received


Is this what you had in mind? It will start a trailing stop 30% from your live position equity once 2*Risk in profit is reached. Compiled under TradeStation 9.0

 
Code
Variables:
   ProfitTrigger$(0), // The amount of profit need to trigger trailing stop
   PctTrailing(30),   // Percent to trail
   Risk$(0);          // The risk in dollars for the given trade
   
   // Let Risk = dollars risked on your trade
   // Then set ProfitTarget = 2 * Risk$
   // Then use SetPercentTrailing
   
   SetStopPosition;
   SetPercentTrailing( ProfitTrigger$, PctTrailing ) ;

arjfca View Post
Hello and Happy New Year to all

- Is it possible to capture the actual profit of a position or I need to calculate it using the actual price and the price of entry?

- Using Multicharts (TradeSation), how can i code for a partial profit stop loss?

I'm in profit and the actual profit is more than my 2X my initial risk . If I want to protect half of my actual profit, how can I code it?

Any input trully appreciated.

Martin


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

Reply



futures io > > > > > Coding for a partial profit

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

September Journal Challenge (sponsored by TopstepTrader)

September

Battlestations! Win $947 in prizes for showing us your trading desk!

October
 

Finding Your Edge & Maximizing Returns w/Richard L Weissman

Oct 16
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
NinjaScript Coding crazyhorse2393 NinjaTrader Programming 19 August 3rd, 2014 08:11 PM
Profit from spam Big Mike Off-Topic 2 March 27th, 2011 05:02 AM
Japan Says Partial Meltdown Likely at Second Reactor Quick Summary News and Current Events 0 March 12th, 2011 11:40 PM
about multichart coding max-td MultiCharts 3 April 9th, 2010 08:49 AM
Coding Standards Saroj NinjaTrader Programming 0 July 9th, 2009 11:31 PM


All times are GMT -4. The time now is 03:19 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-10-17 in 0.09 seconds with 15 queries on phoenix