Page 1 of 4

Fractal trailing stop

PostPosted: Thu Nov 25, 2010 1:03 am
by Alexander.Gettinger
The strategy sets stop value for the chosen trade using fractals.
Strategy parameters:
Frame - Number of bars for fractals,
Indent - Indent from fractal, if =0 then stop put directly on fractal,
MoveBack - if false then for BUY stop moves up only and for SELL stop moves down only.

FractalStop.png


Download:
FractalStop.lua
(7.07 KiB) Downloaded 1300 times


Asymmetric Fractal Stop.lua
(7.09 KiB) Downloaded 364 times



Version for orders.
FractalStopOrder.lua
(7.98 KiB) Downloaded 254 times

FractalStopAllTrades.lua
(9.68 KiB) Downloaded 266 times

Re: Fractal trailing stop

PostPosted: Fri Mar 04, 2011 7:56 am
by wanabetrader
I'm having trouble with this strategy/stop-trailer. It worked a few days ago and trailed my stop just fine but in the last two days it has said "Stop creation failed because command is disabled". Is there anything I'm doing because all I am doing is selecting the timeframe and bid/ask putting in the indent and selecting the trade to trail. I really, really need this for my systems to work while I'm away it is a invaluable tool in my arsenal. Could it be that I have a U.S. F.I.F.O account?

Re: Fractal trailing stop

PostPosted: Mon Feb 06, 2012 10:04 pm
by sho-me-pips
Please make this strategy compatible with FIFO accounts.

Re: Fractal trailing stop

PostPosted: Wed Feb 08, 2012 12:19 pm
by Alexander.Gettinger
Fractal stop for FIFO accounts:
FractalStop2.lua
(9.47 KiB) Downloaded 722 times

Re: Fractal trailing stop

PostPosted: Sat Feb 11, 2012 11:33 am
by sho-me-pips
Alexander.Gettinger wrote:Fractal stop for FIFO accounts:
FractalStop2.lua


Thank You VERRRRY much!!

Re: Fractal trailing stop

PostPosted: Thu Feb 23, 2012 12:55 pm
by Alexander.Gettinger
Fractal stop that works with all the orders for the selected pair:
FractalStop4.lua
(8.97 KiB) Downloaded 832 times

Re: Fractal trailing stop

PostPosted: Tue Mar 06, 2012 10:25 am
by nakaza
does the number specified allow to trail by a fractal of X numbers behind? or only the current fractal?

Re: Fractal trailing stop

PostPosted: Thu Mar 08, 2012 5:57 am
by Apprentice
This parameter defines the algorithm for the detection of fractals.
For example, 5 is the standard TS fractal.

Fractal Technical Indicator it is a series of at least five successive bars, with the highest HIGH in the middle, and two lower HIGHs on both sides. The reversing set is a series of at least five successive bars, with the lowest LOW in the middle, and two higher LOWs on both sides, which correlates to the sell fractal.

For more information see
viewtopic.php?f=17&t=724&hilit=Advanced+Fractal

Re: Fractal trailing stop

PostPosted: Thu Mar 08, 2012 8:59 am
by Alexander.Gettinger
nakaza wrote:does the number specified allow to trail by a fractal of X numbers behind? or only the current fractal?

Strategy use a last fractal for trailing.

Re: Fractal trailing stop

PostPosted: Thu Mar 08, 2012 5:29 pm
by subliminal
Is it possible to have an option to choose the fractal number? I know 5 is the standard but would love to have an option to increase it to something like 7 or 9 or even go lower to 3.