[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 422
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
Here we go again, I put in any of these codes and I get this:
There are not enough trades! And it's not about the algorithm, the EA opens buy when the stochastic signal is below the bottom level, I want to save the EA from false signals of stochastic over-rimming, but how?
double Ind11=iStochastic(NULL,0,Kperiod,Dperiod,slowing,MODE_SMA,0,MODE_MAIN,0);
double Ind12=iStochastic(NULL,0,Kperiod,Dperiod,slowing,MODE_SMA,0,MODE_SIGNAL,0);
double Ind13=iStochastic(NULL,0,Kperiod,Dperiod,slowing,MODE_SMA,0,MODE_MAIN,1);
double Ind14=iStochastic(NULL,0,Kperiod,Dperiod,slowing,MODE_SMA,0,MODE_SIGNAL,1);
if(Ind11<20 && Ind11>Ind12 && Ind13<Ind14)
{
OrderSend(Symbol(),OP_BUY,Lots,Ask,1,0,0,"",16384,0,Green);
}
ну вот опять, ставлю любой из этих кодов и получаеться вот это:
сделок не хватает! И тут не дело в алгоритме, советник открывает бай когда стахостик сигналет ниже нижнего уровня,хочу избавить советник от ложных сигналов перерисовки стахостика, но как?
double Ind11=iStochastic(NULL,0,Kperiod,Dperiod,slowing,MODE_SMA,0,MODE_MAIN,0);
double Ind12=iStochastic(NULL,0,Kperiod,Dperiod,slowing,MODE_SMA,0,MODE_SIGNAL,0);
double Ind13=iStochastic(NULL,0,Kperiod,Dperiod,slowing,MODE_SMA,0,MODE_MAIN,1);
double Ind14=iStochastic(NULL,0,Kperiod,Dperiod,slowing,MODE_SMA,0,MODE_SIGNAL,1);
if(Ind11<20 && Ind11>Ind12 && Ind13<Ind14)
{
OrderSend(Symbol(),OP_BUY,Lots,Ask,1,0,0,"",16384,0,Green);
}
in the stochastic you take 0 bar and when you set the above codes the program will only be executed at the very beginning of the bar, crossing can occur within 0 bar
sanyooooook, um... then how do you solve the redrawing problem without getting this defect or how do you change the trade opening algorithm to make it work?
added:
I tried to set it to work on closed bars, i.e. instead of 0 I put 1 - instead of 1 I put 2, but it still does not do all the signals, and does not do it in this case.
Suppose there are several accounts of one brokerage company and, correspondingly, each account needs a separate terminal.
But the input quotes are the same for all of them and that only overloads the traffic.
Is there any program or a way to save on the input traffic, for example, is it possible to write some virual tool that would receive input traffic from the server and distribute it locally among the terminals? Of course, the output traffic should not be touched - it can be different.
Anyway, a couple of seemingly silly questions...
1) What is shown on the price chart? Open or Close ? Or an average?
2) How do I fulfill the condition of intersection? The condition of comparison of two values leads to the opening of multiple orders, but we don't want to limit the opening roughly by time...
3) What type conversion functions there are e.g. IntToStr IntToReal, as in Delphi for example, here I have not found such...
sanyooooook писал(а) >>
only works smoothly in the tester
работает без сбоев только в тестере
Why only in the tester? It should work on both real and demo
почему только в тестере? работать должно и на реале и на дэмо
in a real fast market, the first tick is not necessarily 1