[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 377

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
Good afternoon. The system provides three entry points for BUY and SELL. But when a signal comes in, positions are opened on every tick as long as the signal exists. There is an error somewhere with flags. Please help me to understand it.
OrdersTotal() gives the number of already opened positions, i.e., we can use it to check if there is already an open position or not.
OrdersTotal() gives the number of already opened positions, i.e., you can use it to check if there is already an open position or not.
I use Terminal() function from the tutorial when closing positions, provided that Mas_Ord_New[0][0]!=0. But we have another task here: we should create a flag prohibiting to trade by the current signal if one order has already been opened by it. I'm trying to use flags, but I made a mistake in some way.
Parny needs help What is it
2012.09.10 18:40:20 '6257743': order buy 5.00 EURUSD opening at 1.27816 sl: 1.27791 tp: 1.27876 failed [Invalid S/L or T/P]
Also why is the price and stop loss the same:
Price 1.25618 Stop Loss 1.25618 Take Profit 1.25698
Take Profit 60 pips
Stop Loss 20
Hello. I have a question about custom indicators. The iCustom description says:
Question: how to get the value of "shift" (when calling the indicator with a shift, it uses the values as without it, i.e.iCustom(NULL, 0, "name",pam1,0,1)= iCustom(NULL, 0, "name",pam1,0,100), but if I call the indicator 100 bars ago, it will have a different value from iCustom(NULL, 0, "name",pam1,0,100). The indicator is simple, uses 5 previous Close values, takes their average.
I will be grateful for your help.
You have set the deviation from the main line to 0 (zero). It should be more than zero.
Would you set the deviation to negative as well?
Thank you, comrades! Exactly! I was too busy working and didn't have a clue. I wish I could have just clicked the thank you button, so as not to multiply. )
By the way, it would be useful to recommend newbies to pass parameters to indicators via variables with eloquent names. So far I have done so, this time I missed something.
Good evening all!
I wanted to ask the same question and took the function from here https://www.mql5.com/ru/forum/131859
I get errors--->
All variables in the function are defined inside it...what's wrong?
copied it, pasted it. --->
There are no mistakes there:
But, you only need to specify a colour, for example -CLR_NONE.And it looks like you have this 'hanging in the air':
Actually, such a condition (High[2]==High[1 ]) or such(Close[2]==High[1 ]) or such(High[2]==Open[1 ]) is rare. Look at the graph, how many of these coincidences will you find?In terms of the logic of removing the order, ... - also suffers, in short.
copied the code from here and created a new project (EA) pasted the code -> compiled
Strangely, it still gives the same errors...