Source: https://fxcodebase.com/code/viewtopic.php?f=31&t=69543
Forum: 31 · Topic 69543 · 13 post(s)
Apprentice · Tue Mar 17, 2020 12:33 pm


Based on request. viewtopic.php?f=27&t=69534
Wilders_Trailing_Stop.lua is available here. viewtopic.php?f=17&t=60028&p=119817&hilit=Wilders+trailing+stop#p119817
Driss99 · Wed Mar 18, 2020 11:40 am
Hi Apprentice
I have tested the strategy and noticed a few problems. I have added my parameters in the first three pictures.
Thanks already for reviewing my previous proposal. Kind regards
Apprentice · Thu Mar 19, 2020 4:26 am
Your request is added to the development list. Development reference 899.
Apprentice · Thu Mar 19, 2020 6:18 am
Try this version.
Driss99 · Thu Mar 19, 2020 9:04 am
Hi apprentice
I reviewed the new version and it already works a lot better! However there are still a few problems.
Thanks for taking the time to look at the problems and fix them. Kind regards
Apprentice · Thu Mar 19, 2020 9:25 am
Your request is added to the development list. Development reference 907.
Apprentice · Fri Mar 20, 2020 6:07 am
Try it now.
Driss99 · Fri Mar 20, 2020 9:05 am
Hi Apprentice
I tested the latest update and everything seems to work fine now. There remains one problem the strategy only opens long positions while strategy is allowed to trade in both sides. Maybe this is because it closes all buy positions after sell crossover but does not open an extra 3 positions?
Furthermore would it be possible to program a second variant of the strategy with the following trading rules: When a buy/sell crossover happens it opens 3 positions with a fixed stop loss, position one and two each have a profit target. If profit target of position 1 is reached we move sl to break even for the remaining two positions, if profit target of position 2 is reached we move sl to profit target 1 and let position 3 run till it’s stopped out or till a crossover in the other direction happens. Then we close all remaining positions and open 3 extra positions . Here we do not use Wilders anymore, stop loss just moves when a target is reached. I hope it is possible to program this other variant so I can compare both variants. Kind regards
Apprentice · Mon Mar 23, 2020 5:21 am
Your request is added to the development list. Development reference 930.
Apprentice · Thu Apr 02, 2020 6:47 am
Try this versions.
Driss99 · Tue Apr 07, 2020 4:47 pm
Hi Apprentice
The strategy with Wilders and rsi is working perfectly. I thought that the Open Close Strategy 2 file was the second varaint I asked for. However this still has the rsi as a parameter and there is no second profit target. Would it be possible to also program this second variant, I have modified it a little bit further, and the rules are as following:
When a buy/sell crossover happens it opens 3 positions with a fixed stop loss, each position has its own profit target (position 1 lowest tp and position 3 highest tp). If profit target of position 1 is reached we move sl to break even for the remaining two positions, if profit target of position 2 is reached we move sl to profit target 1 for the last position and let it run till it’s stopped out or till a crossover in the other direction happens or we hit profit target. Stop loss remains fixed till a profit target is hit, then it moves to the next level. I hope it is possible to program this other variant so I can compare both variants.
Apprentice · Thu Apr 09, 2020 5:26 am
Your request is added to the development list. Development reference 1037.
Apprentice · Fri May 08, 2020 6:09 am
Try this version.