[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 222
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
The essence of the question is that I need to count the number of bars in each continuous block of the bar diagram of the top indicator. I wrote such an indicator (the lowest). In it, the value of each bar chart column corresponds to the number of bars in a continuous block of the top indicator, but it starts displaying ONLY since its installation (the red vertical line).I want it to be displayed on the previous bars (like when you install AO or CCI), i.e. the "picture" was similar to the middle indicator (it is the same indicator, but installed even earlier). I will listen to any suggestions with gratitude (preferably with code snippets).
The essence of the question is that I need to count the number of bars in each continuous block of the bar diagram of the top indicator. I wrote such an indicator (the lowest). In it, the value of each bar chart column corresponds to the number of bars in a continuous block of the top indicator, but it starts displaying ONLY since its installation (the red vertical line).But I need it to be displayed on previous bars also (like when you install AO or CCI), i.e. the "picture" was similar to the middle indicator (it is the same as lower indicator, but it was installed even earlier).
Something like this?
-
Something like this?
-
Thank you so much! Just what you need!
int start()
{
double Sl =Low[1];
double Tpb =((High[1]-Open[1])/Tp)+Open;
double bar2b;
if (Open[2]<Close[2])bar2b=(High[2]-Open[2];
double bar1b;
if(Open[1]<Close[1])bar1b=(High[1]-Open[1]);
if(bar2b<bar1b)OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Sl,Tpb,",16384,0,Green);
help!!!
simple moving average indicator
how to apply it in an EA to: Previous Indicators Data
iMA(NULL,0,8,0,MODE_EMA,PRICE_PREVIOUS,0);
Spam. Enough of a separate branch
It is better to write a lot of words than just help "this is a higher life credo I guess".
Gentlemen! Good evening!
Could you please tell me why the compiler thinks that in the code below
the int Ticket variable is undefined.
It generates one error
'Ticket' - variable not defined C:\Program Files\Alpari NZ MT4(2)\experts\hhhh.mq4 (18, 6)
But the Ticket variable is also defined in the assignment statement in the code below and the code compiles successfully
Gentlemen! Good evening!
Could you please tell me why the compiler thinks that in the code below
the int Ticket variable is undefined.
It generates one error
'Ticket' - variable not defined C:\Program Files\Alpari NZ MT4(2)\experts\hhhh.mq4 (18, 6)
But the Ticket variable is also defined in the assignment statement in the code below and the code compiles successfully
Probably just missing parentheses in one place