[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 280
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
I can't find the command that redraws the custom indicator. If anyone knows, please tell me. Thanks in advance =)
I already found it. Thank you all =)
Good afternoon.
Can you help me come up with a formula?
I have a refill step SD=100;
if the price is 25, then for it the topping out level will be DE=100
if the price is 102, its rate of units will be UD=200
if the price is 215, then the rate of topping up is BP=300
the price fell to 135 again, the topping out level will be UD=200
And this order of things is normal (these are the principles of the terminal).
If you want indicator B to change its indications when parameters of indicator A change, make information exchange between indicators (may be a file, global variables of the terminal, computer RAM): indicator A passes its initializable parameters during initialization and indicator B periodically checks possible parameter changes of indicator A. When it detects changes, indicator B should also perinitialize with new parameters (forced init()).
The first code is indicator A.
Second code-indicator B.
The last question was solved, the new one is
I have the refill level recalculated on each bar.
How do I remember the level on the last bar
and use it to open a trade
Thank you for your reply, but I can't use it as I don't understand everything and am not very good at programming.
You are suggesting that I should do for you what you 'play with'. Sorry, not interested.
And, if you are learning to program, it is an interesting task for you.
int counted_bars=IndicatorCounted();
I understand the following construction:
Now the question. In the pure M1 version, the next thing is standard.
What to replace limit and counted_bars with? My understanding is,
(because the number of ticks in 60 seconds is not constant, i.e., just write int counted_bars=IndicatorCounted()/_number_of_ ticks_in_60_seconds_ will not work).
Or am I wrong about everything?
p.s. ahead of a possible question, I will answer: I know that on forex sec!=60 is not applicable, and sec=60 makes no sense, but I trade not on forex either.
Thank you for your reply, but I can't use it as I don't understand everything and am not good at programming, could you please make the necessary changes to my indicator codes.
Good afternoon everyone!
I am learning to use arrays.
I have an array .I have initialized it with strings i.e. double mass [3567]={0.85374 , 0.85694 , 0.85974 , .... };
And the program read the array and executed it.
Now I have initialized the same array into one column
double massi[3567]
{
mass [ 0] = 0.85374;
mass [ 1] = 0.85694;
mass [ 2] = 0. 85974;
mass [ 3] = 0.86174;
mass [ 4] = 0.86474;
mass [ 5] = 0.86494;
mass [ 6] = 0.86504;
mass [ 7] = 0.86524;
}
The compiler does not generate any errors but generates a warning.
'{' - expression on global scope not allowed C:\Program Files\Alpari NZ MT4(2)\experts\include\MASSIV.mqh (4, 2)
The array is declared globally as before (when it was initialized with strings and worked fine).
There are only 2 entries in the log.
2013.04.12 16:14:44 XXX test started
2013.04.12 16:14:36 XXX EURUSD,H1: loaded successfully
QUESTION.WHY IS THE PROGRAM NOT READING AN ARRAY INITIALIZED IN ONE COLUMN.
Thank you.