Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 405
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
And maybe the third time someone will still pay attention to my request?
I wrote the function by SAM, but the tester gives error 4051, i.e. impossible number of lots. Anyone have an opinion on this?
TP is a Take Profit value for the selected order? So take the value from the order, there are different Take Profits.
At this point you look for the amount of pips you are in the drawdown, divide it by the take profit and multiply by the lot value.
If you have a buy ticket, you are in profit when the Bid is above the buy price (ask). (Bid - OrderOpenPrice ())
You don't account for negative and positive profit tickets in general,
in case you don't have enough free funds to open with such a lot, because one negative ticket can overlap all the positive ones.
return (TotalLot); the function may return 0, under certain circumstances, is this checked further?
Are you sure you know what you're talking about?
The above phrase has several meanings. The meanings of this phrase are described below.
1 - A rebuke that I have misunderstood the code and have accordingly given wrong instruction.
2 - An indication of the difficulty of understanding my texts.
3 - A questioning of my psychological health.
Choose one of the options to continue communicating with me, as I cannot answer your question by intuitively choosing the option of interpreting the phrase.
The above phrase has several meanings. The meanings of this phrase are described below.
1 - A rebuke that I have misunderstood the code and have accordingly given wrong instruction.
2 - An indication of the difficulty of understanding my texts.
3 - A questioning of my psychological health.
Choose one of the options to continue communicating with me, as I cannot answer your question by intuitively choosing an option for interpreting the phrase.
I am sure that 1. You cannot reliably judge with what lot the position is opened, if only because the code of opening the position was not given by the author. And where you have seen zero, it is the initial value of the variable. It is too early for you to teach anyone.
Hello comrades. I'm new to programming, I'm just learning MQL4. Please explain how to open one order without waiting for certain conditions, and not on every candlestick, like mine. Maybe you have a standard code example or something else?
And maybe someone will pay attention to my request after the third time?
Wrote a CAM function, but the tester gives error 4051, i.e. impossible number of lots. Does anyone have an opinion on this?
функция поиска лота, необходимого для выхода из просадки после
//closing a grid of orders
the code ends with a view of
I would like to insert the sleep function with a period of 30 sec.
the whole code should run 2 times per minute instead of every tick, and
how to correctly insert this function ? where ? and how ? preferably at the end of the code with an example, thanks
the code ends with the view
I would like to insert a sleep function with a period of 30 seconds
the whole code should run 2 times per minute instead of every tick, and
how to correctly insert this function ? where ? and how ? preferably at the end of the code with an example, thanks
Remember the time at the end of the function code. Then compare it with the current time and if the current time exceeds the memorised time by 30 seconds, run the function again.
here is an example ... if you just put sleep at the end of the code, how will it work ?
If you don't care that start function will not start after start function for 30 seconds (and hence EA will not perform any actions during this time), then please put sleep.