NexusFi: Find Your Edge


Home Menu

 





Problem with naming multiple entry/exits


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Big Mike with 6 posts (1 thanks)
    2. looks_two equalizer with 6 posts (0 thanks)
    3. looks_3 NW27 with 3 posts (0 thanks)
    4. looks_4 ABCTG with 2 posts (0 thanks)
    1. trending_up 12,664 views
    2. thumb_up 2 thanks given
    3. group 8 followers
    1. forum 21 posts
    2. attach_file 0 attachments




 
Search this Thread

Problem with naming multiple entry/exits

  #11 (permalink)
 NW27 
Newcastle, Australia
 
Experience: Intermediate
Platform: Multicharts 8 - Full Version
Broker: IB
Trading: SPI,FTSE100, 6E, 6A
Posts: 285 since Oct 2010
Thanks Given: 108
Thanks Received: 188

What version are you running ?
There was an issue with multiple exits and this that was fixed in 7.4 (build 5032)
Version 8 may be ok?


Thanks,
Neil.

(Sent from my Galaxy S2 via Tapatalk)

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Deepmoney LLM
Elite Quantitative GenAI/LLM
Are there any eval firms that allow you to sink to your …
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
GFIs1 1 DAX trade per day journal
22 thanks
NexusFi site changelog and issues/problem reporting
22 thanks
The Program
20 thanks
  #12 (permalink)
equalizer
Las Vegas, Nevada
 
Posts: 10 since Mar 2012
Thanks Given: 1
Thanks Received: 0

7.4 4953 - so maybe this was just fixed? (I guess MC doesn't have an autoupdater/checker, right - so I should get used to checking for new versions like I do with TWS...) I will attempt an update when I can take it offline again.

Reply With Quote
  #13 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,399 since Jun 2009
Thanks Given: 33,173
Thanks Received: 101,539



equalizer View Post
I think Contract and Share are equivalent. SetStopContract is for the built-in stop though (which I am using for initial stop loss, but not for my custom trailing stop).

My understanding is SetStopContract modifies behavior of stop loss and profit target orders. Without specifying this reserve word, a single uniform "all out" stop is hit for both stop losses and profit targets, whereas if you do specify it, the stops and targets are unique for each entry order.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #14 (permalink)
equalizer
Las Vegas, Nevada
 
Posts: 10 since Mar 2012
Thanks Given: 1
Thanks Received: 0


Big Mike View Post
My understanding is SetStopContract modifies behavior of stop loss and profit target orders. Without specifying this reserve word, a single uniform "all out" stop is hit for both stop losses and profit targets, whereas if you do specify it, the stops and targets are unique for each entry order.

Mike


Interesting - my understanding was different; I thought it meant that SetStopPosition will mean that the dollar amount fed to SetStopLoss(amount) will be calculated off the entire position, whereas with SetStopContract will mean the amount is the amount lost per contract/share; but that in either case, the entire position will be closed.

That's why I always ended up implementing my own stop order logic for any stops beyond the initial "worst case" stop - because the built-in stop, while easy to use in that it's always calculating every tick without any additional work, will always close out the whole position (and has to be set across the board at all times).

Are you saying it's possible to customize it per order? Perhaps using From Entry("name") could be used with it? I still don't think so though - that's why the included Stop Loss Strategy (only several lines total) can be applied to the chart with any other built-in strategy, because it's always for the whole position.

I hope my understanding is wrong though!

Reply With Quote
  #15 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,399 since Jun 2009
Thanks Given: 33,173
Thanks Received: 101,539

You can't customize it per order. I have an open PM request to address that, but no word yet.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #16 (permalink)
equalizer
Las Vegas, Nevada
 
Posts: 10 since Mar 2012
Thanks Given: 1
Thanks Received: 0


Big Mike View Post
My understanding is SetStopContract modifies behavior of stop loss and profit target orders. Without specifying this reserve word, a single uniform "all out" stop is hit for both stop losses and profit targets, whereas if you do specify it, the stops and targets are unique for each entry order.

I guess I am not sure what you meant by this then. Again, I think it only specifies if the dollar amount is for the whole position, or per contract - not whether it applies to a stop loss vs. a profit taking order. But if I am missing something, it would be pretty important to know the subtleties.

That's great you have an active request regarding customing it per order (by name or id). I too think it would be a pretty important feature.

Reply With Quote
  #17 (permalink)
lismore
Zurich/Switzerland
 
Posts: 1 since Jul 2012
Thanks Given: 0
Thanks Received: 0

Could you provide an example of tied exits (stoploss and profit target) to each of these entries? Tks.

Var: PosNum(0),PosPrice1(0),PosPrice2(0),PosPrice3(0);

switch (PosNum) begin

case 1: Buy ("LE # 1") 1 Contract Next Bar At PosPrice1 Limit;
case 2: Buy ("LE # 2") 1 Contract Next Bar At PosPrice2 Limit;
case 3: Buy ("LE # 3") 1 Contract Next Bar At PosPrice3 Limit;

end;

Reply With Quote
  #18 (permalink)
equalizer
Las Vegas, Nevada
 
Posts: 10 since Mar 2012
Thanks Given: 1
Thanks Received: 0

You cannot tie those exits to each entry as far as I understood (but can set it for the same number of shares per entry). This is one of reasons I ended up migrating to Amibroker, so I am afraid I won't be able to assist further. Perhaps Mike can.

Reply With Quote
  #19 (permalink)
 bomberone1 
London
 
Experience: Beginner
Platform: MultiCharts
Posts: 277 since Nov 2010
Thanks Given: 14
Thanks Received: 29

Any Solution?

Reply With Quote
  #20 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623


bomberone1,

a solution to what particular problem in this thread? There might be solutions now.

Regards,

ABCTG


bomberone1 View Post
Any Solution?


Follow me on Twitter Reply With Quote




Last Updated on July 26, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts