EA simple that works by the movement of the price.
-
Must be reduced by Dynamic Size, and is 3 pips above the top line of the price channel, and 3 pips below the low of the price channel.
The Dynamic Size Price'm using the Channel, as the shared project previously.
As I said, the block "(in loop) Shrink SL ..." functioned properly, and did not change after he was fired the BE. It's what I need.
Now the block "(in loop) Modify SL ..." occasionally kept changing. Activated the BE, and then returned to the previous level, and previous BE.I need you to do work with the block "(in loop) Shrink SL ..." and not with "(in loop) Modify SL ..."
I repeat. block "(in loop) Shrink SL ..." is working as I want. I just need to work also constant.
The constant work properly on the block "(in loop) SL Modify ...", but I need it to work by block "(in loop) Shrink SL ...".
-
Well, if you work with multiple SL-modify mechanisms at the same time over the same trade, I can't save you from multiple and weird SL changes. I didn't changed that Shrink block, so it is the same as months ago. And you can easily see if it's working, for example: http://fxdreema.com/shared/7OAF3VzZc
Shrink block takes the current SL (and/or TP) and makes it smaller with X pips. The amount of pips you defined in one of these formats:
pips format - where "1" means 1 pip
digits format - where "0.0001" means 1 pip if Point format setting is "0.0001", which is the default state.Shrink block does not care of any previous SL and TP states. It just takes the current one and makes it smaller.
So what you must see in the above example is how SL line moves to the open-price line. Try this in low-speed visual mode.
-
Yes .. this is what I need, the SL always becomes smaller. And I have achieved this using the "(loop) Shrink SL ..." and decreased by Dinamic Size happens with Price Channel indicator. But I need it to work correctly toDigits (SLPipsDistPriceChannel), it seems that this has worked inverted. Instead of being 3 pips below the line of the Down Channel, this above, and vice versa for the Up Channel.
Do you understand me now? Please review the project have shared here posted: Fri Apr 12, 2013 11:07 pm
-
Ok, once again
Shrink block gets the Price Channel value, adds or (subtracts) 3 pips from it, which in the case does not matter because the output value is considered as pips size and it is added (or subtracted) to the current SL level.For example, if you want to manipulate SL of a buy trade:
- Say that Price Channel value is 1.3000
- You remove 3 pips from this value using toDigits(3), and now Price Channel is like 1.2997. Just in case, toDigits(3) is 0.0003.
- 1,2997 is considered as pips size, and it is transformed in digits format inside the Shrink block => 0.00013. Here you can see that your 3 pips are actually lost, because the value is rounded to the 5th sign at best.
- Say that SL of the trade is 1.3010. The block modifies it to 1.30113 (because 1.3010+0.00013=1.30113)
- In the next step it will again move SL with ~1.3 pips
The whole prodedure will be the same if you just use fixed value of 1.3 pips in Shrink block. Any movements of Price Channel indicator does not make significant difference and you are just sliding the trade upwards with 1.3 pips on every new candle.
Is that what happens to your EA and is that what you expect to happen?
-
When buying, I need the SL "(loop) Shrink SL (Channel Down) ..." function with three pips below the "Channel Down" indicator Price Channel;
When selling, I need the SL "(loop) Shrink SL (Up Channel) ..." work with 3 pips above the "Channel Up the Price Channel indicator.
Is it possible?
Summarize everything I said earlier.
Please review the link if the project is needed: http://fxdreema.com/shared/S53qTfyJb
-
There is some misunderstood here. But I will explain it again. With the word "shrink" I mean the opposite of "expand". I'm not native english, but I think that similar word for "shrink" is "contraction". It's when something becomes smaller and smaller. This block moves SL only in direction to the OpenPrice, and TP only in direction to the OpenPrice. If you have SL 100 pips and you shrink it with 10 pips, it will become 90 pips. If you have TP 200 pips and you shrink it with 50 pips, it will be 150 pips.
This block does not care where Price Channel is, it only cares where SL and TP are at the moment. To place SL 3 pips below Price Channel, use "Modify" block, not "Shrink", because "Modify" block can put SL/TP on the exact price level you tell. "Shrink" block has only 1 direction -> to the OpenPrice. "Shrink" block takes the current SL/TP prices and moves them from that position with your input pips.
But as you show me this EA... it does not work with "Modify" blocks, it does not work with "Shrink" blocks as well. Because blocks 6 and 9 are disabled, they will not be executed, and because of that blocks 13 and 26 will not be executed as well.
You can check my example that I posted before.
-
I'm sorry if I was not clear, but had already mentioned in past messages. The block "(in loop) Shrink" is working correctly with the Price Channel, by way of dynamic SL. Download the project and test by yourself and confirm. It worked better than the block "(in loop) Modify" because the latter was rising when the SL had the opportunity. Already block "(in loop) Shrink" only reduces, and precisely why I chose him because he does not rise to the SL.
The block "(in loop) Shrink" is working the way "Dynamic Size" with the price channel indicator. The problem is that it is not 3 pips above the Channel Up and Down 3 pips below the channel.
-
Well, I don't think that Modify or Shrink blocks are working at all in your example, they are just excluded from the project. See the red glowing blocks 6 and 9. If block 6, 9, 13 or 26 is ever executed in this EA, this will be a bug actually. But even if 6 and 9 were not disabled... don't you think that using both Modify and Shrink blocks one after another is not the best logic in the world?
By the way if you think that when a block is red glowing, that means that it is skipped and the next one is executed - no, this is not the situation. Red glowing blocks are disabled with all the blocks that follow.
-
__By the way if you think that when a block is red glowing, that means that it is skipped and the next one is executed - no, this is not the situation. Red glowing blocks are disabled with all the blocks that follow.[/quote:30xn81oy]
So ... if u is saying that, then maybe I'm wrong. Well, what I need then, no matter Shrink or Modify from functioning and not be changing, at least up to a maximum period of Price Channel indicator. I was believing it would work with "(in loop) Shrink". I'll be doing more tests.The block "(in loop) Shrink" I believe the way it works "Dynamic Size" with the price channel indicator. The problem is that it is not 3 pips above the Channel Up and Down 3 pips below the channel.
-
__The block "(in loop) Shrink" I believe the way it works "Dynamic Size" with the price channel indicator. The problem is that it is not 3 pips above the Channel Up and Down 3 pips below the channel.[/quote:1fu3zmj7]
Why are you repeating that, after I told you 100 times that this is not how Shrink block works. You want to use Modify block, not Shrink block. Shrink block CAN NOT place SL or TP at 3 pips below or above any indicator, but Modify block is used exactly to do that. -
Hello fxDreema.
Okay with you?
So ... and transfer to MT5, and so far this ok. Now in MT4 version, even with the modified external parameters, the SL has not worked, as arranged. I have seen that the SL was fired with 50 pips, and I put to work with 5 pips.
Please find attached the log files and the link of my project:
http://fxdreema.com/shared/b8EsOhfac......
20130509.log
20130510.log -
Do you talk for points or pips? If your broker is 5-digits, then 50 points will be 5 pips (0.00050). Play with Point format in the settings if needed.
-
I say 5.0 pips. Had forgotten to send the log file, but is attached in the previous message.
-
How much are 5.0 pips for you? 0.0005 or 0.00005?
-
0.00005. I will also need to 0.0005. He adds the SL at the opening order for brokers that are not ECN STP?
-
fxDreema EA's does not care how many digits the broker use. Practically, 1 pip is always 0.0001 no matter if the broker uses 4 or 5 digit prices. Or you know some 5-digit broker (most of them are now 5-digits) which says that it's spread is 10 or 20 pips? No, everybody knows that normal broker spreads are from 1 to 5 pips (from 0.00010 to 0.00050). But if you prefer to think that 1 pip = 0.00001, then...
Options -> Current project options -> Point format (set it to 0.00001)
-
Hello fxDreema. Alright? I will be sending the link to my EA for analysis. Continues with the problem of higher SL and lots of previous operations. I think the problem is in the code. I set up the lots to open at 0.1, but this opening the previous batches, which is 0.6. Did not work either changing lots.
http://fxdreema.com/shared/l2Iy7kvTb
......
20130515.log
20130510.log
20130509.log -
__Equity is above Upper Target Equity (2012.18>=112.18)[/quote:96illrl5]
Upper target equity is initially set to AccountBalance()+(RJFR_unitsRJFR_delta)*
So the problem is when the EA starts, it is confused of the initial balance. What is your initial balance and equity? Is balance around 100 dollars?
I changed AccountBanalce with AccountEquity in this formula, I wonder how it will work with it...
-
Ok .. Thank you. I'll be doing the tests. I believe that you can now work properly, it is best if the base net income than the balance sheet.
5/15/2013 6:15:04 TCF CBBP Tony 24h EA for MT5 1.5.4 (EURUSDL, M1) (4756) Trade failed sending request
5/15/2013 6:15:04 TCF CBBP Tony 24h EA for MT5 1.5.4 (EURUSDL, M1) Autotrading is disabled by the serverWhat does that mean?
-
It sounds to me like the server does not allow you to trade with EA
Can you trade with other EAs? If there is a restriction you can try to trade with magic number 0 (set Magic Start to 0 and do not change Group parameter in the projects), but I'm not sure if this will work.