Hello all, is it possible to pyramid orders w/unique stops in MC (not all exiting at once), and if so, how do you recommend to do so?
Also, my stops are based on Acct equity (ie while portfolio testing a result of my trades at the time), volatility (ATR), and are a % of overall equity. My question is: can I access Acct equity while portfolio testing (to calculate my stops), and is there any other way to implement a stop loss other than the actual dollar value ie Stop Loss ($500)? Thanks
Pyramiding Orders w/unique stops & current acct balance
-
- Posts: 38
- Joined: 26 Oct 2011
- Has thanked: 6 times
- Been thanked: 2 times
Re: Pyramiding Orders w/unique stops & current acct balance
Very good questions, I wanted to ask the same.
Re: Pyramiding Orders w/unique stops & current acct balance
i am also working on how to make the positions exit separately, i have browse some website, and found that a way to do that is making use of counters, the code is come from markplex.
it works, but it's a bit cumbersome.
i wonder is there any other simpler method can do the same job.
any keywords that helps would be welcome. thanks all.
Code: Select all
var: ce(0),twoctr(0),threectr(0),startcounttwo(false),startcountthree(False);
CE = CurrentEntries;
If CE = 2 and CE[1] <>2 then
begin
TwoCtr = 0;
StartCountTwo = True;
end;
if ce = 3 and ce[1] <>3 then
begin
threectr = 0;
startcountthree = true;
end;
if startcounttwo then twoctr = twoctr + 1;
if startcountthree then threectr = twoctr + 1;
if barssinceentry = 10 then sell from entry ("one") next bar at market;
if twoctr = 11 then
begin
sell from entry ("two") next bar at market;
startcounttwo = false;
end;
if threectr = 11 then
begin
sell from entry ("three") next bar at market;
startcountthree = false;
end;
i wonder is there any other simpler method can do the same job.
any keywords that helps would be welcome. thanks all.
Re: Pyramiding Orders w/unique stops & current acct balance
MC is in its 7th iteration and still is severely lacking in order execution and order management. In theory with auto-trading software I should be able to (at least emulate) any sequence of manual orders with a broker (simply and robustly), and ideally automate those orders seamlessly through a broker. I simply cannot do that with this software.
And the testing software is useless if you can't access your acct equity.
And the testing software is useless if you can't access your acct equity.
- furytrader
- Posts: 354
- Joined: 30 Jul 2010
- Location: Chicago, IL
- Has thanked: 155 times
- Been thanked: 217 times
Re: Pyramiding Orders w/unique stops & current acct balance
Really? Why not?"MC is in its 7th iteration and still is severely lacking in order execution and order management. In theory with auto-trading software I should be able to (at least emulate) any sequence of manual orders with a broker (simply and robustly), and ideally automate those orders seamlessly through a broker. I simply cannot do that with this software. "
If you want to exit a position on an incremental basis, then use the following command structure (assuming you're long) to partially exit a position using a stop:
Code: Select all
SELL <AMOUNT> CONTRACT TOTAL FROM <"ENTRY LABEL"> NEXT BAR AT <PRICE LEVEL> STOP;
Also, to say "And the testing software is useless if you can't access your acct equity" is goofy because (1) It's not true, since not everyone uses account equity as part of their backtesting process and (2) You can simulate account equity quite easily for an account that only trades that strategy. For accounts that trade mutliple strategies, you can simulate portfolio equity using the Portfolio Backtester (command "Portfolio_NetProfit").
Re: Pyramiding Orders w/unique stops & current acct balance
For me - multi targets exits doesn't work as expected.
If the first target is filled - it would cancel the other orders in queue and would re-submit again at the same price ( as the conditions are still valid ). This is very important aspect for me - and there is no work around at this time unfortunately.
https://www.multicharts.com/pm/viewissu ... _no=MC-454 - pm request
If the first target is filled - it would cancel the other orders in queue and would re-submit again at the same price ( as the conditions are still valid ). This is very important aspect for me - and there is no work around at this time unfortunately.
https://www.multicharts.com/pm/viewissu ... _no=MC-454 - pm request
Re: Pyramiding Orders w/unique stops & current acct balance
Thanks for the info. viking, looks like MC does not support the functionality I described in terms of multiple pyramid entries / and a unique stop loss for each one.
Re: Pyramiding Orders w/unique stops & current acct balance
SELL <AMOUNT> CONTRACT TOTAL FROM <"ENTRY LABEL"> NEXT BAR AT <PRICE LEVEL> STOP;
Actually placing a price with each order where it would exit would be much easier than manually telling it to exit this many contracts as was done above, because with the implementation above I will have to recognize in the strategy where I want the stop to occur, which means I have to cycle through order history and current trade information, and hope that MC implements it correctly in the testing. In other words, that is messy, especially when your strategy uses robust risk management. Also, I want the stops to happen AT a specific price level, not at the next bar, and this often is difficult to do with MC, at least for me.
- TJ
- Posts: 7744
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Pyramiding Orders w/unique stops & current acct balance
This can be done, I have seen people do it.Hello all, is it possible to pyramid orders w/unique stops in MC (not all exiting at once), and if so, how do you recommend to do so?
Also, my stops are based on Acct equity (ie while portfolio testing a result of my trades at the time), volatility (ATR), and are a % of overall equity. My question is: can I access Acct equity while portfolio testing (to calculate my stops), and is there any other way to implement a stop loss other than the actual dollar value ie Stop Loss ($500)? Thanks
Bear in mind, what you have described is a very high level concept.
It sounds simple, but in reality is a complicated undertaking that requires detailed planning.
This is like telling people you are going to Florida for vacation; but how you are you going to get there? which highway to take? when to stop for lunch, where to stay overnight? The possibility of the decision tree is enormous.
I would suggest you to start with a flowchart.
You must map out all the IF-THEN-ElSE decisions along the way, then code your instructions accordingly.
example of a flowchart:
Remember, you are asking the computer to work for you.
The computer is dumb, it cannot read your mind, it can only do what you tell it to do.