Hello,
I have made an EA but im having trouble making the "Modify Buy Logic" and "Modify Sell Logic" to work properly. Im hoping someone could help me figure out whats going on and how to fix it. Cant figure out if the code is wrong or the argument is wrong. The modify rules are below. Any help would be appreciated.
Modify Buy Logic
I have made an EA but im having trouble making the "Modify Buy Logic" and "Modify Sell Logic" to work properly. Im hoping someone could help me figure out whats going on and how to fix it. Cant figure out if the code is wrong or the argument is wrong. The modify rules are below. Any help would be appreciated.
Modify Buy Logic
- The difference between the open and first stoploss is saved as "Stop_Loss_Long_Transfer". Below conditions are checked every new 4h bar.
- When ask is less than 1:1 then the new stop loss is the bottom donchian channel line.
- When ask is more than 1:1 but less than 3:1 then the new stop loss is the midpoint between the top and bottom donchian channel lines.
- When ask is more than 3:1 then the new stop loss is 1/4 the distance between the top and bottom donchain channel lines from top to bottom (meaning 1/4 the distance is subtracted from top donchian channel line).
Modify Sell Logic
- Completely the opposite of the Modify Buy Logic.
Thanks,
Ernie.
Attached File(s)
Blizzard.ex4
20 KB
|
103 downloads
Blizzard.mq4
8 KB
|
110 downloads
Donchian Channels - Generalized version.ex4
10 KB
|
101 downloads
Donchian Channels - Generalized version.mq4
7 KB
|
108 downloads