as title...I want to implement a function that close all orders when price touch the line i draw by myself...
Is that possible?
What can i do?thanks for any reply :)
Yes it is possible, but you will have to either learn how to do it yourself or hire someone to code it for you.
Forum on trading, automated trading systems and testing trading strategies
Can you help modify this indicator?
Alain Verleyen, 2017.08.29 12:34
Usually people who can't code don't receive free help on this forum, though it could happen if you are lucky, be patient.
Programmers (any programmers) are coding for free:
other options :
Is it easy (or difficult) to …?
Fernando Carreiro, 2017.08.30 21:43
This post could be considered a “rant”, but I would like to take the opportunity to relay to those that ask similar questions, the difficulty involved in answering such a simple query – “Is it is easy (or difficult) to …?”
So, even if the task is just changing one line of code; remember that you are “compensating” the person for his knowledge and skills and not for just one line of code.
The same applies to those that request for something “simple” to be done for free. It is NEVER “simple”. If it were that “simple” then you would be able to do it yourself.
So, respect the hard work and effort the coder went through to gain his skills and knowledge and “compensate” him/her for it. Wanting it for free is being totally disrespectful!
PS! In conclusion, learn to use the Freelance Jobs section and recognise and respect those more skilled, knowledgeable and experienced than you!
EDIT: Please note that I use the term "compensation" and not "payment", because there are many ways to "compensate" for work done. Sometimes a coder will be "compensated" with gained or shared knowledge instead of money, or by an exchange of ideas or other things. It is not always about the money but it is about the "compensation"!
Hi, yes, you can find or get properties of any object on the chart by its name, try using unique name and get desired property (Price, in this case) by ObjectGetDouble.
are you want when sum of profits from many your position received to example 30$ close all of them?
I just want to know which Mt4 function can help me to do this stuff
If it's possible, i'll do it by myself :)
thank you, i'll try it :)
No ! i want to draw a trend line at main chart, and if market price below( or above)the trend line, i hope that EA can close all long (or short )orders
It is easy, only two functions to use.
Draw the line on the chart, double click the line, give it a name, say : "line_up".
then in the EA look for the line : if( ObjectFind("line_up") > - 1 ) //line is found
Then, if( close > ObjecGetValueByShift( "line_up",0 ) // mean line is touched with price going up
Check for exact formulation of fonction, (this is MT4)
There is an article with a ready-made EA with sources which does what you want. Unfortunately it's not yet translated to English. Only Russian and German versions are available.