Trailing Stops
-
i have a problem with trailing SL, please help
i want to close trade with DI+ and DI- (ADX crossover), while trailing SL is running.
but it is only trailing SL, it does not close trade when DI+ crossover DI- (if i set trailing block upper adx condition block) and vice versa -
One last question for you sir. The trailing stop block connected directly to a buy or sell block, if set to start a trailing stop once the trade has moved 10 pips in a favourable direction, will that clear out the stop loss in the buy or sell block?
Example of what I mean.
http://fxdreema.com/shared/F6XcJmOmd
Thanks again,
-
No, not like that. Connect Trailing stop somewhere below "If trade exists" (or similar) or with "Just pass". It needs to be executed on every tick.
-
Thanks for the fast reply.
-
@haidang8055 Can you please share your project?
-
@l-andorrà 0_1603523140469_fxdreema check adx.ex4
please check and tell me how to fix, i need breakeven and trailing ,when DI+ crossover DI- (or vice versa) it close the trade
-
@haidang8055 Can you please share the link of your project instead of the file?
-
-
@haidang8055 It is never recommended to connect a trailing or a break even block below a 'For each trade' block. All of them are loops and that can mess up your strategy. Disconnect them from there instead and create a new separated block three with both of them connected under a 'Pass' block.
-
@l-andorrà thank you alot, it works when i seperate them and set them under PASS block. could you tell me more about Terminal variables, how can i set value when i press F3 to go to Global Variables.
I want to set new value for EA -
@haidang8055 AFAIK, terminal variables are only useful when you want to communicate your MT4 platform with another device. They are NOT useful for internal calculations of your EA. Is that what you are looking for?
-
@l-andorrà i rent a VPS for runing robot with timeframe h1 and m15, so i need 2 differrent value for 2 timeframe, could i fix value by using Global variables?
-
@haidang8055 That is not necessary if you are using them in the same EA. You can select as many different timeframes within your EA as you need.
-
@l-andorrà said in Trailing Stops:
You can select as many different timeframes within your EA as you
sorry because of my bad english, i mean i want to change SL, breakeven, lotsize... in 1 EA for 2 timeframes. is it possible by using Globle variables?
ex: M15, SL is 10 pips; breakeven is 11 pips
H1 SL is 20pips, breakeven is 22 pips
actually 2 EA
or how can i change value in Internal calculation EA? -
@haidang8055 No. None of them can be changed with Global Variables. You wil need 'normal' variables as described here:
https://fxdreema.com/instructions/builder/constants-and-variables
Simply forget Global Variables and Terminal Variables for your 2 EAs unless you want to communicate two separate MT4 platforms.