Re: Fractal trailing stop
Posted: Mon Dec 05, 2016 11:00 pm
Can you add Fractal trailingstop into Fractal Strategy? It's very useful.
Thanks!
Thanks!
Your last stop on a way to find a fast growing community of forex traders and software developers. Best forex charts indicators are available here for download. Custom development of indicators and translation to .LUA is also available on request.
http://fxcodebase.com/code/
Cactus wrote:Apprentice wrote:Asymmetric Fractal Stop.lua added.
Thank you, however, is it the same as "Fractalstop4.lua", just using asymmetric fractals?
Studying the code I notice it is less in size, and generally it is more like the original .lua in the first post, which does not work on all orders?
I see it is
- Code: Select all
instance.parameters.Trade .. ")";
Instead of
- Code: Select all
instance.parameters.Symbol .. ")";
etc.
I can try fix it copy pasting lines between the two strategies to achieve this and post it here later for your confirmation if it is correct but if there's a quicker way of doing it can you post the "Fractalstop4.lua" version with Asymmetric Fractals, thanks.
Cactus wrote:Alexander.Gettinger wrote:Fractal stop that works with all the orders for the selected pair:
Hello, I like this. I think this is the only trailing stop on the forum that works for "all orders". I shall study it and see how the code can be adapted for other trialing stops in a similar fashion.
Meanwhile, I would like to request a change to this version of the strategy. Can the asymmetrical fractal indicator be used as the fractal base on which to place stop losses?
It can be found here:
viewtopic.php?f=17&t=32544&p=55438
Everything else would stay the same, I just want to specify the before and after number of candles that form a fractal for this trailing stop.