Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 573
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
Hi! Can you tell me how to teach my Expert Advisor to detect fractals?
I would like to know more details. There are a lot of different indices that can draw and find fractals. The Expert Advisor does not need to detect them. You take the indicator and copy the values of a certain fractal from its buffers. Nothing complicated if you pay attention to it.
Good day! Guys, advise me on this issue: in the Strategy Tester, the exp opens orders according to the algorithm and scheme of increasing the size of the channel of subsequent averages - you can see it in the picture - each subsequent averaging is opened at a larger distance from the previous one (like in Ilan). But at the same time, the printer produces such values of expressions, that the averaging should not take place, because the conditions for their opening are not fulfilled 25 any more than 2856, 2197, 1690. How does it enter this condition and open positions at all? I decided to encircle everything with braces, but it does not help.
A test on opening prices. Here is the code and picture:
Hi, can you tell me how to teach the Expert Advisor to detect fractals?
See navigator. If it's about this, it's like this.
Good day! Guys, advise me on this issue: in the Strategy Tester, the exp opens orders according to the algorithm and scheme of increasing the size of the channel of subsequent averages - you can see it in the picture - each subsequent averaging is opened at a larger distance from the previous one (like in Ilan). But at the same time, the printer produces such values of expressions, that the averaging should not take place, because the conditions for their opening are not fulfilled 25 any more than 2856, 2197, 1690. How does it enter this condition and open positions at all? I decided to encircle everything with braces, but it does not help.
A test on opening prices. Here is the code and picture:
As I understand it, without seeing all the code and learning how it works here, it is unlikely that anyone will tell you. All the functions used in this block are known only to you. It is best to print everything as you go along and keep an eye on the output of the messages.
As I understand it, without seeing all the code and learning how it works here, I don't think anyone can tell you. All the functions used in this block are known only to you. It's best to print everything as you go along and watch the output of the messages.
All functions work properly - these are functions of Kim I.V. "Only useful functions from Kim I.V." From the name of the functions - their purpose is clear.
I figured it out - everything is working properly. It should have been printed BEFORE opening the position.
The averaging position was opened according to the algorithm and the PriceOpenLastPos(Symbol(), OP_BUY, MN_L) function returned the value of the position just opened, that is why I had questions.
Thank you, hoz.
Roman, Glad it worked out for you :) And also, so fast.
Basically, my compiler has started to swear again. There is a library that uses a class in it. The class of course is included into the library:
#include <HOZ_Code\Classes\CLogging.mqh> CLogging logging;
When compiling this library, which uses the CLogging.mqh class, the compiler swears like this:
In the class on this line:
What can all this mean?
Help!!!
In an EA from the public forum I attached a 3-bar pattern to a trade entry condition.
After optimization and testing (3.5 years) I have installed ten windows on one demo account with individual settings in each, which provided the speed of owl deals at least 1.5 per day. The same speed is ensured on 10 virtual computers on my server - one window in each.
A week has gone by but not a single deal has been made anywhere.
What to do?
=========================
int GetSignal()
{
double LevelADX = iADX(NULL,TF_ADX,PeriodADX,4,MODE_MAIN,0);
double Delta_01_ADX =(iADX(NULL,TF_ADX,PeriodADX,4,MODE_MAIN,0)
- iADX(NULL,TF_ADX,PeriodADX,4,MODE_MAIN,2));
double mas,maf;
mas=iMA(NULL,TF_MA,Slow.period,0,Slow.metod,Slow.price,1);
maf=iMA(NULL,TF_MA,Fast.period,0,Fast.metod,Fast.price,1);
//------------------
double delta1,delta2;
delta1=NormalizeDouble((Close[1]-Close[2])/Point,5);
delta2=NormalizeDouble((Close[2]-Close[3])/Point,5);
double body3=NormalizeDouble((Open[3]-Close[3])/Point,5)
//------------------
int STsig=-1;
if(CrossLevel && Lines>0) {
int up,dw;
int up_l,dw_l;
for(jj=0;jj<8;jj++) {
if(ST[jj][0]<LevelDw) dw++; else{
if(ST[jj][0]>LevelUp) up++;
}
if(ST[jj][1]<LevelDw) dw_l++; else{
if(ST[jj][1]>LevelUp) up_l++;
}
}
if(up<=8-Lines && up_l>8-Lines) STsig=1;
if(dw<=8-Lines && dw_l>8-Lines) STsig=0;
}
if(STsig==-1 && BreakSweep) {
double big,small;
double big_l,small_l;
for(jj=0;jj<8;jj++) {
if(ST[jj][1]>big_l) big_l=ST[jj][1];
if(ST[jj][1]<small_l || small_l==0) small_l=ST[jj][1];
}
if(big_l-small_l<=Sweep && (small_l>=LevelUp || big_l<=LevelDw)) {
for(jj=0;jj<8;jj++) {
if(ST[jj][0]>big) big=ST[jj][0];
if(ST[jj][0]<small || small==0) small=ST[jj][0];
}
if(big-small>Sweep)
{
//--------------- my Volume [] and Open [] and Close [] add-ons ------------------------------
if(Close[1]>Close[2]&& Close[2]>Close[3]&& Close[3]<Open[3] && Close[2]>High[3]
&& body3>=Body3 && delta1>=Delta1 && delta2>Delta2 && big_l<=LevelDw && maf>mas)
STsig=0;
if(Close[1]<Close[2]&& Close[2]<Close[3]&& Close[3]>Open[3] && Close[2]<Low[3]
&& body3>=Body3 && delta1>=Delta1 && delta2>Delta2 && small_l>=LevelUp && maf<mas)
STsig=1;
}
}
}
if(Volume[0]<2 && Volume[1]>Volume1 && Volume[2]>Volume2
&& Delta_01_ADX > DeltaADX && LevelADX < StopADX && STsig==0) return(OP_BUY);
if(Volume[0]<2 && Volume[1]>Volume1 && Volume[2]>Volume2
&& Delta_01_ADX > DeltaADX && LevelADX < StopADX && STsig==1) return(OP_SELL);
return(-1)
}
=================================================
Thanks in advance!
Help!!!
I've attached a 3-bar pattern to the deal entry condition in the EA shared on the forum.
After optimization and testing (3.5 years) I have set ten windows on one demo account with individual settings in each, which provided the speed of owl at least 1.5 deals a day. The same speed is provided on 10 virtual computers on my server - one window in each.
It's been a week, but no deals have been made anywhere.
What can I do?
=========================
=================================================
Thanks in advance!