FXCM Forex Trading

Fractal trailing stop

Strategies are published here.

Moderator: admin

Fractal trailing stop

Postby Alexander.Gettinger » Thu Nov 25, 2010 1:03 am

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 1107 times


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



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

FractalStopAllTrades.lua
(9.68 KiB) Downloaded 87 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 2777
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Fractal trailing stop

Postby wanabetrader » Fri Mar 04, 2011 7:56 am

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?
wanabetrader
 
Posts: 4
Joined: Sat Dec 04, 2010 8:56 am

Re: Fractal trailing stop

Postby sho-me-pips » Mon Feb 06, 2012 10:04 pm

Please make this strategy compatible with FIFO accounts.
"A hundred pips a day keeps the collector away"
User avatar
sho-me-pips
 
Posts: 82
Joined: Sat Sep 11, 2010 8:38 am

Re: Fractal trailing stop

Postby Alexander.Gettinger » Wed Feb 08, 2012 12:19 pm

Fractal stop for FIFO accounts:
FractalStop2.lua
(9.47 KiB) Downloaded 557 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 2777
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Fractal trailing stop

Postby sho-me-pips » Sat Feb 11, 2012 11:33 am

Alexander.Gettinger wrote:Fractal stop for FIFO accounts:
FractalStop2.lua


Thank You VERRRRY much!!
"A hundred pips a day keeps the collector away"
User avatar
sho-me-pips
 
Posts: 82
Joined: Sat Sep 11, 2010 8:38 am

Re: Fractal trailing stop

Postby Alexander.Gettinger » Thu Feb 23, 2012 12:55 pm

Fractal stop that works with all the orders for the selected pair:
FractalStop4.lua
(8.97 KiB) Downloaded 652 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 2777
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Fractal trailing stop

Postby nakaza » Tue Mar 06, 2012 10:25 am

does the number specified allow to trail by a fractal of X numbers behind? or only the current fractal?
nakaza
 
Posts: 3
Joined: Tue Jul 12, 2011 8:31 pm

Re: Fractal trailing stop

Postby Apprentice » Thu Mar 08, 2012 5:57 am

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
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17153
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Fractal trailing stop

Postby Alexander.Gettinger » Thu Mar 08, 2012 8:59 am

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.
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 2777
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Fractal trailing stop

Postby subliminal » Thu Mar 08, 2012 5:29 pm

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.
subliminal
 
Posts: 16
Joined: Wed Nov 02, 2011 3:51 pm
Location: London

Next

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 4 guests