Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 133
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
Professionals can't go anywhere without you.
Help with the function. Which counts the last number of losing orders in the history to a plus order.
I.e., the history shows 3 last orders in minus, then 1 in plus and 2 in minus.
This function should count the last three (before the positive order)
Orders closed only in deficit are counted here. If earnings = 0 (zero), the counting is interrupted.
I want to rephrase and add to my previous question.
Below is the code for an array of 4 elements. Actually the number of items in the array is a variable.
How can I change the code so that the number of nested 'for' loops becomes variable, one 'for' per array item?
Thank you!
Looking at this situation, I started to wonder. When a bunch of nested loops are available. How do the calculations take place? From the deepest nested one or vice versa?
I.e. the first to be calculated:
Or from the other side? I want to understand how it all works.
How to make an EA take into account levels of technical indicators. For example cci. If the line is higher than 0, then perform actions. How to do?
If cci is greater than zero, then ... If cci is less than zero. then ...
Function iCCI();
Gurus, tell me how to solve a problem. We need a positive number when calculating the difference between opening and closing. For example, if the price rises and subtracts the closing price from the opening price, you get a minus number.
If cci is greater than zero, then ... If cci is less than zero. then ...
Function iCCI();
No. I know the function, but I don't know how to reflect it in the code. How about this?
Gurus, tell me how to solve a problem. We need a positive number when calculating the difference between opening and closing. For example, if price goes up and I subtract a negative number from the opening price, I get a negative number.
Looking at this situation, I started to wonder. When a bunch of nested loops are available. How do the calculations take place? From the deepest nested one or vice versa?
I.e. the first to be calculated:
Or from the other side? I want to understand how it all works...
You can see the results I gave earlier for 4 cycles, there the innermost cycle is triggered once to get 1234.
I don't. I know the function, but I don't know how to reflect it in the code. How about this?