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)
Using SuperTrend for trailing stop in a strategy - help needed
hello guys does anyone no if it possilble to use the trend lines in TS super trend to trail a stop and use it in a ATM strategy. And if its possible how would it be done, i dont really know a lot about writing code to do this. Thanks
Can you help answer these questions from other members on NexusFi?
i see what you mean now - these supertrend-hash-marks ....
i can say that .....
1) its not possible with the strategy wizard.
2) its not possible with ATMs
3) it needs costume coding - a bit advanced i would say -
4) it will work with "stop-order-modification"-function - always changing the value of your stop to the new value of the supertrend hashes.
thats what i can tell you - but never did such stuff by myself.
i gonna change the thread-title to find some helpers maybe
Hey DarrenH , if Im not mistaken the hash marks on tss are average true range . What may work equally well as a trailing stop in a strategy and accomplish the same thing is ADXVMA and would be easier to code too . Try plotting ADXVMA as a hash and see if you like it then go from there .
Yes, it is possible. Anything is possible. It is not easy however.
Where are you running into problems?
Remove SuperTrend from the equation, you have a working updating-stop working and in-place for some basic indicator? Using an ATM generally means you want the ATM to update the stop using the ATM template itself.
Why do you want to use an ATM if your strategy will have an advanced trailing stop system? Just use the strategy itself and forego the ATM to control the order more precisely, it will be easier.
If I understand what you want correctly, it can be done. One method of doing this is to save the list of the trend-line locations that you want to move your stop to AND the locations at which you want to update your stop price. If the location is a set (say X ticks) away from the AvgFillPrice of your order, it can be done without knowing beforehand when you want to update the stop-prices.
One way to accomplish this is to compare the close price of the current bar with your AvgFillPrice. Like this perhaps:
Like max-td mentioned, this will require some custom coding, BUT you could use the internal order handling functions that NT offers in tandem with your custom code. Check out: