You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
the option of trawl and stop loss is a single function
if - 0 nothing will happen
or set the distance - then at position opening, horizontal line will be set and as the price moves away - the horizontal line will be pulled up behind the price
option - how to use an indicator for trawling
Choose an indicator and set (true) the default indicator #resource "\\Indicators\\\Examples\\ZigzagColor.ex5" here
input bool ClosedStop = false; // Closed Buy/Sell. Closed Buy/Sell
------------------------
It is also possible to have a horizontal line at a given distance from the indicator without opening a position - with the following command
Clearly explain how to make money here
4. How to earn money at MQL5.community
You can increase your balance at MQL5.community website not only by depositing, but also by doing some work! Users of our resource can do this using the following services.
Freelance. If you are a programmer and feel yourself able to write in MQL5 on commission, you can find a job on a competitive basis in the appropriate section. A distinctive feature of the Freelance service is its security. The customer and the contractor are protected from unfair practices of the opposite side throughout their joint work, and if any disputes arise - the administration of the service is ready to act as an arbitrator.
Articles. You can publish articles on various topics related to MQL5 and automated trading systems on your own initiative. Articles fees start at 200 USD, and the final cost will depend on how your article will be of interest to community members, according to editors. You can find all the details in the Write and earn money on MQL5 topic in our forum.
Market. Here you can sell your own applications written in MQL4 and MQL5 to other MQL5.community members. The Market operates similarly to mobile application marketplaces. To be able to sell your application at the Market, you should register as a seller and post your application on the market.
Signals. Do you have a proven trading strategy? You can sell not an Expert Advisor itself, but trading signals that it generates. Thus, you can constantly adjust it to changing market, without disclosing all the subtleties.
MQL5 Cloud Network. Most of the processor time is wasted, but you can rent it for a small fee. All you need is to install remote tester agents and allow them to participate in the MQL5 Cloud Network. You can withdraw earned money or spend them in the Market, subscribe to Signals and place orders in Freelance.
It turns out you can use this function by pressing ( V ) - only these horizontal lines need to be renamed
so version 4 is fully functional
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
You can draw lines, rename them and pressthe (V) key once more to avoid unnecessary horizontal lines.
and so, I have now figured out how to use named objects myself.
You just need to name the objects with the names from the Expert Advisor TOP 1, LOWER 2, TOP 3, LOWER 4 and so on.
#property version "1.05"
no changes in the code itself
the default setting has changed a little
here is your balance plus how much you want to earn. if the amount is less than your balance - expert will close the open position and exit
it is also very important here - if it is 0 --- then the open position, will be closed immediately
all the same - easy with these horizontal lines (which run from a computer key ( V ) or ( M ) Russian)
I press - raise and lower it to the necessary position, and then rename it if it is "LOWER 10" if it is "TOP 9" at the bottom
and then I press (V) or (M) Russian again - all unnecessary things will be removed, only the ones I have renamed will remain.
The result is not an Expert but a constructor
---------------------------------------------------
Example - when it reaches the green digits, it closes the position.
below, the red line follows the price and as soon as it touches it, it will go to sell
(not necessarily to the sell - any command - whatever you set).
example
for a normal lot - you can specify either - MaximumRisk = 0.03; // Maximum Risk in percentage
or maxLimits = 3; // Number of Positions to Open in one side
Maybe I'm suffering from persecution - but the lot with the risk looked suspicious to me
here in the threadhttps://www.mql5.com/ru/forum/326509