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,102 / 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 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 dont 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)

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
NinjaScript Coding crazyhorse2393 NinjaTrader Programming 19 August 3rd, 2014 09:11 PM
Profit from spam Big Mike Off-Topic 2 March 27th, 2011 06:02 AM
Japan Says Partial Meltdown Likely at Second Reactor Quick Summary News and Current Events 0 March 13th, 2011 12:40 AM
about multichart coding max-td MultiCharts 3 April 9th, 2010 09:49 AM
Coding Standards Saroj NinjaTrader Programming 0 July 10th, 2009 12:31 AM


All times are GMT -4. The time now is 01:34 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-17 in 0.09 seconds with 19 queries on phoenix via your IP 54.226.113.250