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)
Also.. in just thinking about it.. the example I created is WAY more complex than the basic example needs to be. I had some issues to work out with storing order names into the array... as that is how I created the order grid. I discussed that in THIS thread.
If you only need to do this with one order, or don't need a more complex grid of orders... THIS example may be the best to work with. It is how I built a basic functioning one the first time.
One other quirk I may have forgotten to mention, its been a while since I messed w/it.
But, for the ATM strat to work, I believe you have to have saved a ATM template, and it has to have the same name that I put into the script.
I named it "AtmStrategyTemplate".
So you need to create one using chart trader. Attached is a screenshot of the one I created.
When YOU create yours, you want to use that SAME name(or change it in the script to whatever you want to call it), and put your parameters in there. I used a a 50Tick stop and target, and I put a size of 10K in as I was testing on FX.
The stop/target.. The script will overwrite those values anyway once it places the order.