Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hi I have a random entry generating strategy that can scale out. But I am having trouble implementing a scale in feature. I want to do coin toss experiments comparing scale in scale out and AIAO. but i just cant figure out how to add scaling in. I am looking to enter a random position then add 1 when the Market Position is = 1 or MP = -1.
can anyone help?
Can you help answer these questions from other members on NexusFi?
treydog999,
what are the problems you are facing with the scale in part? Do you have it coded and it doesn't do what you have in mind or do you have problems with how to implement it?
If the signal is long and you want to scale in, should add positions on every new bar until the maximum allowed position size is reached?
I do not have it coded. I tried and failed. I posted the code above which does not scale in but can compile. I want it to scale in at a certain amount of ticks after entry which will be selectable. For example if we go long, i would like to select to scale in after 10 ticks in profit, or 10 ticks at a loss. Reverse for shorts. The above code does random generation already so its just a matter of figuring out how to add the new type of order management.
I think you could get what you want by using the built-in functions Like- currentcontracts, marketposition and Entryprice;
For the second "scaled in" entry, Something like the code below (untested)..
Yeah i been working with that. it just doesn't function right. I am doing this.
IF MP = 1 and currentcontracts = 1 then
buy ("LEscale") 1 contract next bar at entryprice(0) + .0008 stop;
IF MP = -1 and currentcontracts = 1 then
sellshort("SEscale") 1 contracts next bar at entryprice(0) - .0008 stop;
You might also want to take a look at the "Strategy Position Trades" reserved words, as they are build to handle entries and exits with multiple legs and in my opinion give you a lot
more control.
you should specify different order names for each order and tie the exits to your entry. This should do what you have in mind.
buy ("myOrder") 3 contracts this bar at close;
...
sell ("myExit1") 2 contracts from Entry ("myOrder") …
That thread moved onto other topics. Since TreyDog created this thread just for scaling, and what I am doing is so similar, it makes more sense for me to post here and revive this thread.
TreyDog wanted to compare Scaling in and Scaling out to AIAO. I want to use Scaling In and Scaling Out simultaneously and indefinitely. Does regular Multicharts (not .NET) support this?
Must my entry and exit be coded in the same one signal for this to work? If my entry signal and my exit signal are each an independent signal with independent code, and both signals are added to the same chart, does scaling in and scaling out become impossible to achieve?
For scaling in, I was hoping to merely check the signal properties check box to "Allow up to _____ entry orders in the same direction... "
Meanwhile, on the exit side of things, I was building an independent exit signal to exit only 1 contract each time my exit signal is true and my CurrentEntries > 1.
I was hoping the combination of these two things would allow me to scale in and scale out repeatedly and indefinitely, possibly always being in a trade. (I understand I can't be long and short at once) My real question is with the scaling in and scaling out at the same time.
you can build that and it will work fine in backtesting. If you create issues in realtime will depend on your exact strategy. If you have multiple orders in the market, Multicharts will cancel and resend them in case one order changes.This can become problematic if you handle many open orders at the same time and constantly have to delete/change at least one of them.