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)
what does "it does not seem to be working" mean? What does the code do versus what should the code do?
Are there any error messages? What is the platform you are coding this in (Multicharts or Tradestation)?
HI Edwin, From what I understand TS strategy only support StopLoss Order, which are a stop market, and Limit as SetProfitTarget.
but a way to hack it into being a limit would be :
if C crosses below (StopLevel) then
Sell next bar at (StopLevel) Limit;
In my opinion its a bad idea all around, because it will take away from the fidelity of your backtest and you will always need very fine LIBB. You will also need to make sure you have the box checked about limit order fills. I would recommend you simply add a couple of ticks of slippage and comms and design your strategy work with it.
Im using Multicharts - posted in wrong section my accident.
I'm still having trouble making the stop limit work. I'm pretty sure its how im calculating the stop from the entry.. You would think that there would be a simple function for stop limit and stop limit trailing.
Problem I'm having is a I had a great system developed. But then realised that I had been market buying in and not accounting for slippage. Even with 1 tick slippage the system is broken.
I tried half slippage to account for say 50% of the time buying market is on the bid or ask the same as backtesting. It was a little better.
If I can limit in and out then I might salvage the premise of the strategy.