NemoDam

Trader
Feb 22, 2023
5
1
19
46
In TrailingStop()


MQL5:
if ((SLBuy == 0) || (SLSell == 0) || (SLSell == EMPTY_VALUE) || (SLSell == EMPTY_VALUE))
 
replace in :
 
if ((SLBuy == 0) || (SLSell == 0) || (SLBuy == EMPTY_VALUE) || (SLSell == EMPTY_VALUE))
 
  • 👍
Reactions: Enivid

rabcnesbit

Newbie
Apr 5, 2024
5
0
2
57
Hello, in the parameter setting "Apply To Current Symbol Only — if false, the trailing stop will be applied to trades on all symbols using the respective Fractals value. ", do the other symbols have to have their charts open? For example, I attach the EA to eurusd 4H chart only, but got trades on other symbols say gbpusd, usdjpy, nzdusd etc. do I have to have these symbols charts open as well for the EA to manage their orders (Fractal trailing the stops)? Thanks
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,212
1,504
144
Odesa
www.earnforex.com
Hello, in the parameter setting "Apply To Current Symbol Only — if false, the trailing stop will be applied to trades on all symbols using the respective Fractals value. ", do the other symbols have to have their charts open? For example, I attach the EA to eurusd 4H chart only, but got trades on other symbols say gbpusd, usdjpy, nzdusd etc. do I have to have these symbols charts open as well for the EA to manage their orders (Fractal trailing the stops)? Thanks
No, you don't need other charts to be open for this to work.
 

Okanaotura

Trader
Apr 26, 2024
1
0
7
42
Hello friend, has anyone tried to create the function to establish the Take profit in the configuration? Is it possible to modify it so that once a lower fractal exists and the next candle closes bullishly, place a buy order and if the opposite happens with the upper fractal and close of the lower candle, place an order for sale?
 

imosane

Trader
May 30, 2024
3
0
7
45
Hello there, is it possible to place stop loss before placing a stop order without the stop loss moving either direction? What I mean is, I want to place my stop loss first, then wait for the price close and then set my order without the stoploss moving. I hope I am clear. Thank you in advance.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,212
1,504
144
Odesa
www.earnforex.com
Hello there, is it possible to place stop loss before placing a stop order without the stop loss moving either direction? What I mean is, I want to place my stop loss first, then wait for the price close and then set my order without the stoploss moving. I hope I am clear. Thank you in advance.
Sorry, I don't understand what you are trying to do.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,212
1,504
144
Odesa
www.earnforex.com
Version 1.02 of the Fractals Trailing Stop EA has been released. It implements the following changes:
  • Added an option to trail stop-losses only when a trade reaches some amount of profit first (ProfitPoints). (via GitHub)
  • Improved the fluidness of button state update on the chart in MT5.
  • Fixed a minor bug in the MT5 version of the expert advisor that could lead to the EA attempt to trail stops when not all required data has been loaded. (@NemoDam)
 
Last edited:

Tradr

Newbie
Oct 29, 2024
4
0
1
46
Hello,

Thank you very much for the creation of this EA. Two questions please?

1. How does the EA determine when to raise the stoploss (if long) or drop it (if short)? I notice it sometimes skips a fractal and not sure how it manages the risk management. Could you give an example please?
2. How can I contribute/donate as I find this EA very useful and wish to give credit where credit is due.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,212
1,504
144
Odesa
www.earnforex.com
1. How does the EA determine when to raise the stoploss (if long) or drop it (if short)? I notice it sometimes skips a fractal and not sure how it manages the risk management. Could you give an example please?
It sets stop-loss according to the input parameters. It may skip the fractal if it's too close to the current price or if it's farther away than the current stop-loss. Could you please provide an example of it skipping a fractal?

2. How can I contribute/donate as I find this EA very useful and wish to give credit where credit is due.
We don't accept donations, but there are several ways you can help without directly paying:
  • Submitting bug reports, feature ideas, and code fixes.
  • Spreading the word about us among other traders is always welcome.
  • Reviewing our website on Trustpilot or subscribing to our social media (Twitter, Facebook, YouTube) helps a lot too.
 

Tradr

Newbie
Oct 29, 2024
4
0
1
46
It sets stop-loss according to the input parameters. It may skip the fractal if it's too close to the current price or if it's farther away than the current stop-loss. Could you please provide an example of it skipping a fractal?


We don't accept donations, but there are several ways you can help without directly paying:
  • Submitting bug reports, feature ideas, and code fixes.
  • Spreading the word about us among other traders is always welcome.
  • Reviewing our website on Trustpilot or subscribing to our social media (Twitter, Facebook, YouTube) helps a lot too.
Thank you for your prompt response. I endeavoured to re-create the trade in the pic attached

1730197447975.png

- Notice the last change, it was moved up to 153.345 skipping the 153.295 fractal despite a significant move higher. The S/L change to 153.345 was very close to the current price such that initially it was rejected (as it was within 5 pips set by broker) but thankfully, as you can see, the market moved up on the next candle so it was able to be placed. It was stopped out at this level approximately 15-20min later. I should also point out I use a 30 bar lookback and a Fractal number to use of 1 (1st Fractal).

Noted on the ways to contribute and will do as suggested, thank you once again.
 

Attachments

  • TrailingStop.png
    TrailingStop.png
    82.5 KB · Views: 3

Enivid

Administrator
Staff member
Nov 30, 2008
19,212
1,504
144
Odesa
www.earnforex.com
Thank you for your prompt response. I endeavoured to re-create the trade in the pic attached

View attachment 30023

- Notice the last change, it was moved up to 153.345 skipping the 153.295 fractal despite a significant move higher. The S/L change to 153.345 was very close to the current price such that initially it was rejected (as it was within 5 pips set by broker) but thankfully, as you can see, the market moved up on the next candle so it was able to be placed. It was stopped out at this level approximately 15-20min later. I should also point out I use a 30 bar lookback and a Fractal number to use of 1 (1st Fractal).

Noted on the ways to contribute and will do as suggested, thank you once again.
Can you copy & paste the relevant portions of the Experts and Journal logs' output?
 

Tradr

Newbie
Oct 29, 2024
4
0
1
46
Sure, please see attached. I should also make mention that the fractals pictured are from the fractal indicator in MT4.
 

Attachments

  • EAHistory.png
    EAHistory.png
    231 KB · Views: 2
  • MT4History.png
    MT4History.png
    125.4 KB · Views: 2
Last edited:

Enivid

Administrator
Staff member
Nov 30, 2008
19,212
1,504
144
Odesa
www.earnforex.com
Sure, please see attached. I should also make mention that the fractals pictured are from the fractal indicator in MT4.
Thanks! Yes, there was a bug that wouldn't allow the SL to be changed if the new one is too close to the old one, even if it's higher. Please download version 1.04. It should be fixed there.