Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 273
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
Thank you, Vadim :) I understand the direction, I want to implement it in MQL4 without dll.
double bb_up0=iBands(NULL,0,bb_p,bb_dev,0, bb_ap,MODE_UPPER,0);
double bb_lo0=iBands(NULL,0,bb_p,bb_dev,0, bb_ap,MODE_LOWER,0);
//--- Gentlemen, Bollinger Bands middle line, below, are these all correct choices or are there wrong ones? In MT5 the middle line issue is worked out, I haven't seen it in MT4.
If you check with Alert script, the results are the same, but still?
double bb_bs0= (bb_up0+ bb_lo0)/2;
double bb_bs0= iMA(NULL,0,bb_p, 0,0,bb_ap, 0);
double bb_bs0= iBands(NULL,0,bb_p,bb_dev,0, bb_ap,MODE_MAIN, 0);
double bb_bs0= iBands(NULL,0,bb_p,bb_dev,0, bb_ap,0, 0);
It won't.
Yes, I've already realised that it won't work without a dll.
double bb_up0=iBands(NULL,0,bb_p,bb_dev,0, bb_ap,MODE_UPPER,0);
double bb_lo0=iBands(NULL,0,bb_p,bb_dev,0, bb_ap,MODE_LOWER,0);
//--- Gentlemen, the Bollinger Bands mean line, below, are these all correct choices or are there wrong ones? MT5 has the middle line issue worked out, I haven't seen it in MT4.
If you check with Alert script, the results are the same, but still?
double bb_bs0= (bb_up0+ bb_lo0)/2;
double bb_bs0= iMA(NULL,0,bb_p, 0,0,bb_ap, 0);
double bb_bs0= iBands(NULL,0,bb_p,bb_dev,0, bb_ap,MODE_MAIN, 0);
double bb_bs0= iBands(NULL,0,bb_p,bb_dev,0, bb_ap,0, 0);
Here is the main cycle of BB construction:
Here's the calculation of a simple MA:
As you can see, the central line is a simple MA on Close. The rest is based on it. So, draw your own conclusions.
SZZ. As a pamphlet for your further labours:
You set the average value as follows: double bb_bs0 = (bb_up0+ bb_lo0)/2;
But it's better to calculate it this way: double bb_bs0= (bb_up0+ bb_lo0)*0.5;
After all, multiplication is faster than division.
Here is the main cycle for building a BB:
Here is the calculation of a simple MA:
As you can see, the centre line is a simple MA on Close. The rest is based on it. You may draw your own conclusions.
SZZ. As a pamphlet for your further work:
You set the average value as follows: double bb_bs0 = (bb_up0+ bb_lo0)/2;
But it's better to calculate it this way: double bb_bs0= (bb_up0+ bb_lo0)*0.5;
After all, multiplication is faster than division.
1.At the price of bollinger bands IMHO...
Yes, I've already realised it won't work without a dll
Justify.
I've noticed a strange thing now. There's a base library that imports other libraries. Here's a piece of it:
When I start owl, which I am writing now with these libraries, I see in the log:
I mean, according to the log, 2 libraries were loaded: hoz_ReturningSomeInfo@libraryand hoz_Base@Library.
But these libraries are missing: hoz_LoggingToAnyWere@library.ex4, hoz_HandlingWithErrorS@library.ex4 in the journal. Is it supposed to be like this? Or should all uploaded libraries be listed in the journal?
Justify.
dll from winapi at least. to send char to window
Here is the main cycle of the BB construction:
Here is the calculation of simple MA:
As you can see, the centre line is a simple MA on Close. The rest is based on it. You may draw your own conclusions.
SZY. As a pamphlet for your further labours:
You set the average value as follows: double bb_bs0 = (bb_up0+ bb_lo0)/2;
But it's better to calculate it this way: double bb_bs0= (bb_up0+ bb_lo0)*0.5;
After all, multiplication is faster than division.
Thanks, I didn't know that one in particular. And in BB, I used double bb_bs0= iBands(NULL,0,bb_p,bb_dev,0, bb_ap,MODE_MAIN, 0); until doubts took over, concerning MODE_MAIN.
But it works.
In the future I will use MA for the average.