Candle Trailing Stop

Strategies are published here.

Moderator: admin

Candle Trailing Stop

Postby Apprentice » Mon Mar 05, 2018 12:15 pm

Based on the request.
viewtopic.php?f=27&t=24012

Bullish : The strategy checks, if a trade is opened. If yes, a stop loss is set a specified number of pips below the low of the latest bullish candle. Afterwards, the stop is trailed to the next low of the next closed bullish candle etc.. If the next closed candle is not bullish, the stop remains where it was until a bullish candle is created.

Bearish: vice versa

Candle Trailing Stop.lua
(42.08 KiB) Downloaded 133 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19792
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Candle Trailing Stop

Postby alienmole » Sat Mar 10, 2018 1:57 pm

Hi

I've tried this strategy out and it does trail but not as described, any chance you could check it please because this is a really useful trailing stop loss.

Im not sure why there is an option to input what Time frame you want as I thought this wouldn't be needed as it runs based on which order its assigned to, however if this is necessary could you add an option please for custom time frames, eg I use a 2 Minute Chart a lot.

Thanks
alienmole
 
Posts: 28
Joined: Tue Mar 06, 2018 10:24 am


Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 3 guests