This is a discussion on ManualTrader EA within the Trading tools forums, part of the Trading Forum category; Originally Posted by Eris Hi Igor, Is it possible to enhance the "Take Profit" function with a ATR projected target? ...
Hi,
This is a great EA and very useful. Please could I request a section based on ATR. My preferred stop loss method is 1.8 x ATR, take 1/2 profit at ATR and let the rest ride with a jumping stop loss of ATR. Would it be possible to add this to the EA?
Many thanks
TMT
ManualTrader EA
- ManualTrader_v1.0.1 EA is on this thread.
- ManualTrader_v1.2 EA is on this post. EA was improved to set StopLosses by the Risk Factor
- ManualTrader_v1.3 EA is on this post. This is updated EA with ability to set the Hidden Stoploss
- ManualTrader_v1.4 EA is on this post. This version of the EA is having the ability to close trades by AllTrendEnvelopes_v2 (ExMode = 1) and to trail stop (TrailingMode = 2).
- ManualTrader_v1.4 600+ EA is on this post. This version works with Metatrader 4 build 600 and above.
- ManualTrader_v1.6 600+ EA is on this post. This is the updated ManualTrader EA with ability to work with the ChandelierStop indicator. This version works with Metatrader 4 build 600 and above.
- ManualTrader_v1.7 600+ EA is on this post. This is fixed version ManualTrader EA with ability to work with the ChandelierStop indicator (trailing stop was fixed). This version works with Metatrader 4 build 600 and above.
Premium Trading Forum: subscription, public discussion and latest news
Trading Forum wiki || MQL5 channel for the forum
Trading blogs || My blog
Close and delete all at certain times - expert for MetaTrader 5
The time is set in the ' Beginning time (only HH: MM: SS) ' parameter - note, a prompt is given right away that only hours, minutes and seconds are taken into account in the specified time. When the specified time comes, an order is issued to close all positions and delete all pending orders. Here, 'all' means all symbols and all Magic number.
EA which opens positions when the price crosses the rectangle that was placed on the chart manually.
----------------
Manual Rectangle - expert for MetaTrader 5
Close after N - expert for MetaTrader 5
Position lifetime is set through three independent parameters: ' After: Hour ', ' After: Minutes ', ' After: Seconds '. There is a limitation: any of these three parameters cannot have a value greater than 255.
Since the EA's Magic number is equal to '0', it will be seen in the history that the closing was made by the EA with the Magic number '0'.
Close All at New Bar - expert for MetaTrader 5
At the beginning of each bar (timeframe of a bar is set in ' Timeframe new bar ') the EA closes all positions opened in the terminal. That is, there is no filter by symbol name and there is no filter by Magic.
more...I sometimes receive private messages from those who want to learn how to create their own Expert Advisors or indicators. Although there is a lot of material on this site and on the Internet in general, including very good resources with examples, beginners still need help. Some users seek more consistency in presentation, others require clarity or something else. Sometimes users ask: "Add comments to the code of a working Expert Advisor, I will understand everything and make the same one myself!" But, after they see a hundred lines of code, they get scared, confused and give up the idea. Instead, they say: "Better create an Expert Advisor for me."
Anyway, there are people who still want to "understand everything". This is when a step-by-step guide, explaining things from simple to complex, may come in handy. Well, users can't find such a step-by-step guide for the MQL5 language.
I am starting this series of articles specifically for beginners, for those who are encountering programming for the first time and are willing to learn it. These articles are intended for traders who no longer want to depend on programmers and wish to understand how everything works. The articles offer consistent and detailed information, with pictures and examples, guiding readers to the level of "MQL5 language proficiency".
more...In my previous article we looked at the main programs that are used by MQL5 programmers (and came to the conclusion that the MetaEditor IDE is well suited for beginner needs). In addition, we took a quick look at the concept of a function and created a simple script that prints a message in the system log. These messages can be viewed at the bottom of the terminal window in the Experts tab.
Now we come to the point that this data must be stored somewhere.
Today we will talk about how data is stored in RAM. The data can be stored in memory as variables or constants.
Bookmarks