My first EA FxDreema
-
I tried, but I do not know how. I could not.
I also tried to do with what the SL moves along with the Price Channel indicator, and still does not work properly.
I will be sending my 2 versions of the EA for an analysis.
I am awaiting to know where I'm going wrong for me to do the right way. Please share with me if possible the project will work in 2 versions, preferably on version 1.6, which is a 3 pips SL Price's Channel. I also realized that I'll need to shift the SL 1 or 2 to 3 pip distance from Price Channel.
-
__
My goal is to track and close the Price Channel 3 pips below DowChannel order buy, and 3 pips above UpChannel order to sell.
[/quote:h199qyy9]
To track and close you don't need to extend the current SL with 3 more pipe on each bar. Why don't just... track and close? Track with "Condition" and close with "Close each trade".
In "Condition" put "Ask" or "Bid" on the left side and that indicator on the right (or the opposide). To add or remove 3 pips from one of operands, use it's "Adjust" field. To add 3 pips, write "+3pips", otherwise write "-3pips".If you really prefer to use SL, you can use "(in loop) Modify SL and TP" with the indicator inside. Again, use "+3pips" and "-3pips" in Adjust field. But I think you have to use 2 blocks of these and separate buys and sells with "(in loop) Check trade/order type".
-
I prefer to use SL because it is safer already have an SL in order to close the chart directly from EA. For the SL is further guaranteed.
I tried this way that I said, but continues to within 15 pips instead of 3 pips.
I will be sending you the link to my project.
-
Thanks for the help fxDreema. It worked! That was exactly what I needed! I'm knew he could help me! Now how do I modify the "Set" of +3 Pips e-3Pips platform as a constant input of EA?
Something unexpected happened now. I reported the bug report here and fixes: http://fxdreema.com/forum/topic/1919
Since already thank you!
-
Adjust field can contain any MQL code, so you can put the name of any variable there, but "pips" keyword can't help in this case
If you can have the variable with value like 0.0003, fine. Otherwise you can try this way:+toDigits(MyPips)Where MyPips is the name of the constant. toDigits is a function that turns "3" into "0.0003" when the project uses point format "0.0001".
-
__Well, we dig into programming stuff here. When needed, you can use integer instead of float number datatype (aka "double").[/quote:18jdpfra]
Ok ... Now I got my build this version MT5 EA. Now I can also test. Thank you! -
But unfortunately after having built, he did not open any order. This strategy I use on MT4 and redid all blocks in MT5. What should be happening? Please check if I messed up because I need something that works.