Last exit order type - EasyLanguage Programming | futures.io
futures.io futures trading


Last exit order type
Started: by TraderWalrus Views / Replies:125 / 4
Last Reply: 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

Reply
 
Thread Tools Search this Thread
 

Last exit order type

  #1 (permalink)
Trading Apprentice
Bangkok Thailand
 
Futures Experience: Intermediate
Platform: IB, MC
Favorite Futures: Forex
 
Posts: 21 since May 2016
Thanks: 9 given, 5 received

Last exit order type

My strategy sends both stop and limit orders once a position is initiated.
How can I know, using Easylanguage, whether the last exit was done with the stop or the limit order?

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: abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,192 since Apr 2013
Thanks: 198 given, 681 received


TraderWalrus,

you can for example use the OrderFill method of the StrategyHost object to obtain the type or name of a filled order.

In legacy Easylanguage you could use the exit price to calculate what exit order resulted in the exit.

In Multicharts you could use ExitName or PosTradeExitName to obtain the name of the exit - which in turn should enable you to know if the stop or target was hit.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #4 (permalink)
Trading Apprentice
Bangkok Thailand
 
Futures Experience: Intermediate
Platform: IB, MC
Favorite Futures: Forex
 
Posts: 21 since May 2016
Thanks: 9 given, 5 received

Thank you, it's very helpful.

I'm using Multicharts. ExitName looks suitable. Regarding PosTradeExitName, I found info in PosTradeExitName - MultiCharts but don't understand the second parameter there.

Reply With Quote
 
  #5 (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,192 since Apr 2013
Thanks: 198 given, 681 received

Futures Edge on FIO

Which products do you trade?

 
TraderWalrus,

you are welcome. The second parameter is the trade number, which comes into play when you handle multi leg positions. Assume you scale into a long position with three entries, you can access each of these legs (with using the values 0 to 2 for the second parameter). Keep in mind that it's zero based, so the first trade into each position has the trade number 0.
To access the total number of trades for a position you can use the PosTradeCount reserved word.

Regards,

ABCTG

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

Reply



futures.io > > > > > Last exit order type

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Anthony Drager: Pulling the trigger with confidence

Elite only
 

Leo Murphy: The Art and Science of Technical Analysis

Elite only
 

FuturesTrader71: Ask Me Anything

Elite only

TopstepTrader: TBA

Feb 2
 

FuturesTrader71: Understanding Price Risk vs Information Risk

Elite only

Kevin Davey: Algorithmic Trading

Elite only

Al Brooks: TBA

Elite only

Ernie Chan: Quants (TBA)

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check type of exit: stop or take? Dzam MultiCharts 4 May 8th, 2016 01:45 PM
Correct order type a resting order breakout trade skiguy Beginners and Introductions 4 May 11th, 2015 11:41 AM
Market order type better for futures vs Limit order? zx58 Beginners and Introductions 8 January 19th, 2015 03:56 PM
Order Type on the DOM ReaM MultiCharts 0 October 1st, 2013 08:58 AM
Order entering at lower volume (ETH-RTH times) - Position Sizing / Order Type Koepisch Traders Hideout 4 August 22nd, 2012 05:12 PM


All times are GMT -4. The time now is 07:32 PM.

no new posts
Page generated 2017-01-24 in 0.09 seconds with 20 queries on phoenix via your IP 54.205.47.26