Last exit order type - futures io
futures io futures trading



Last exit order type


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,029 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Last exit order type

(login for full post details)
  #1 (permalink)
Bangkok Thailand
 
 
Posts: 36 since May 2016
Thanks: 15 given, 17 received

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

Can you help answer these questions
from other members on futures io?
Automatic pattern research with NT
Elite Algorithmic NinjaTrader Trading
Indicators for pair trading MES and M2K
Platforms and Indicators
Work with historical tcks data on MUltichart NET PowerLa …
MultiCharts
If ES tracks SPX, why do support/resistance, Level 2, vo …
Emini and Emicro Index
Reading A set of Trading Signals
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Selling Options on Futures?
109 thanks
Battlestations: Show us your trading desks!
108 thanks
Rank your Futures vs Stocks trading priority
55 thanks
Want your NinjaTrader indicator created, free?
27 thanks
Whats this confusion with margins?
21 thanks
 
(login for full post details)
  #3 (permalink)
 
 
Posts: 2,230 since Apr 2013
Thanks: 409 given, 1,471 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

Follow me on Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:
 
(login for full post details)
  #4 (permalink)
Bangkok Thailand
 
 
Posts: 36 since May 2016
Thanks: 15 given, 17 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
 
(login for full post details)
  #5 (permalink)
 
 
Posts: 2,230 since Apr 2013
Thanks: 409 given, 1,471 received

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

Follow me on Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Last exit order type


Last Updated on August 17, 2016


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 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