Take profit and pip value - EasyLanguage Programming | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming

Take profit and pip value
Started:May 11th, 2015 (09:44 AM) by sistemafuso Views / Replies:636 / 4
Last Reply:June 2nd, 2015 (10:50 AM) Attachments:0

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Take profit and pip value

Old May 11th, 2015, 09:44 AM   #1 (permalink)
Trading Apprentice
verona veneto italy
Futures Experience: Intermediate
Platform: TradeStation pyton matlab jforex
Favorite Futures: fx
Posts: 1 since May 2015
Thanks: 1 given, 0 received

Take profit and pip value

Hy guys!

I am new in this forum and I am basically new in easylanguage programming (trying to learn as a self-taught) so take patience if my questions are silly.
I am building a very easy TS which basically is recognising engulfing pattern and placing a sell limit oder on L[1].
I arbitrarily put 40 pips as TP but the Tradestation seams to forget to take the profit and is gonna close my open position just when another pattern is recognise or whe the SL is touched.
Everytime my condition is realize even though the price move way more than 40 pips the Tradestation doesn't close the position.
I've realized that if the TP is right after the candle with enter order the Tradestation is actually going to close the position correctly.

Here the code:

Variable: prezzo_stop(0),prezzo_take(0);

if close[1]> open[1] and close [0] < open [0] and C <l[1] and h>h[1] then begin

Sellshort next bar at l[1] limit;
SetProfitTarget (((bigpointvalue/1000)*10*pip_tp));


Buytocover ("Loss")next bar at prezzo_stop stop ;

Thanks for your help.
Ah sorry for the really brutal english I have but I am from Italy where unfortunately there is no real possibility to learn this programming language.

Reply With Quote

Old May 11th, 2015, 09:44 AM   #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.


Old May 11th, 2015, 10:13 AM   #3 (permalink)
 Vendor: abctradinggroup.com 
Hamburg Germany
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
Posts: 1,103 since Apr 2013
Thanks: 186 given, 622 received


don't place the Take Profit reserved word within your entry condition, this will likely lead to the situation that's only active during bars where the condition is fulfilled.
You should also read up about the SetStopPosition reserved word in the Tradestation help. To make sure that you correctly base the take profit on either the entire position or not.


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

Old June 1st, 2015, 08:57 PM   #4 (permalink)
Trading Apprentice
Saint Joseph, Michigan
Futures Experience: Advanced
Platform: TradeStation
Favorite Futures: Forex
Posts: 7 since Jul 2014
Thanks: 2 given, 2 received

Is this for advanced charts or timebased charting?


Reply With Quote

Old June 2nd, 2015, 10:50 AM   #5 (permalink)
 Vendor: tradingcode.net 
The Netherlands
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: -
Jura's Avatar
Posts: 766 since Apr 2010
Thanks: 2,347 given, 643 received

Futures Edge on FIO

What happens to the S&P 500 when a new President takes office?


dojirock View Post
Is this for advanced charts or timebased charting?

If "this" is the `SetProfitTarget` keyword mentioned in the first post, then yes, this works on any chart. If "this" is referring to ABCTG's post, then yes, this works on any chart irrespective of the time frame.

Reply With Quote


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming > Take profit and pip value

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
IB Pip/point/qty? Joseph689 Brokers and Data Feeds 4 February 22nd, 2015 05:10 PM
What is 1 pip ( tick ) worth mdsvtr Currency Futures 8 November 8th, 2014 12:48 PM
Showing candle in full pip themchose Sierra Chart 3 January 15th, 2012 09:58 PM
Lowest cost per pip alpine4133 Traders Hideout 0 September 12th, 2009 10:35 PM

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

Copyright © 2016 by 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 2016-10-22 in 0.08 seconds with 20 queries on phoenix via your IP