Good day.Can you advise how to run ZigZag in EA.EA in general working,but left signals a lot,glued to it ZZ,stopped working. Cannot open file ZigZag on the test, no debugging at all, on the demo did not buy a single order, what is there to do?
xtern string ZigZag = "Данные ZigZag";
externint InpDepth = 20;
externint InpDeviation = 5;
externint InpBackstep = 3;
double MacdCurrent,SignalCurrent,SignalMAPrevious,SignalMAThis,
PriceCurrentOpen,PriceCurrentClose,SignalParabolic,ZZThis,ZZPrevious;
int ticket;
//+------------------------------------------------------------------+//| Expert initialization function |//+------------------------------------------------------------------+intOnInit()
{
if (Digits==3||Digits==5)
{
slippage*=10;
}
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+//| Expert deinitialization function |//+------------------------------------------------------------------+voidOnDeinit(constint reason)
{
}
//+------------------------------------------------------------------+//| Expert tick function |//+------------------------------------------------------------------+voidOnTick()
{
datetime EaStartTime = StringToTime(StartTime); // время начала работы советникаdatetime EaEndTime = StringToTime(EndTime); // время окончания работы советникаdatetime CurrTime = TimeCurrent(); // это если нужно взять время терминалаif (CurrTime < EaStartTime || CurrTime >= EaEndTime)
return; // если еще не время торговать - выход
{
MacdCurrent=iMACD(NULL,0,InpFastEMA,InpSlowEMA,InpSignalSMA,Macd_Applied_Price,MODE_MAIN,0);
SignalCurrent=iMACD(NULL,0,InpFastEMA,InpSlowEMA,InpSignalSMA,Macd_Applied_Price,MODE_SIGNAL,0);
SignalMAPrevious=iMA(NULL,0,InpMAPeriod,InpMAShift,InpMAMethod,MA_Applied_Price,1);
SignalMAThis=iMA(NULL,0,InpMAPeriod,InpMAShift,InpMAMethod,MA_Applied_Price,0);
SignalParabolic=iSAR(NULL,0,InpSARStep,InpSARMaximum,0);
ZZThis=iCustom(NULL,0,ZigZag,InpDepth,InpDeviation,InpBackstep,0,0);
ZZPrevious=iCustom(NULL,0,ZigZag,InpDepth,InpDeviation,InpBackstep,0,4);
if (CountTrades()==0) CheckForOpen();
}
}
void CheckForOpen()
Nickolay72: Hi, can you tell me how to run ZigZag in the EA, in general, working, but the left signals a lot, glued to it ZZ, stopped working. Cannot open file ZigZag on the test, debugging at all does not go, on the demo did not buy a single order. what is there to do?
In the custom indicators is a fileZigZag, if so, is it exactly called there as when you access it from the EA ?
Not a mistake: a loop with global i (blue), and another loop with local i (red)
The compiler will swear.
Not a mistake: a loop with global i (blue), and another loop with local i (red)
Even I get it... The i (blue) is the flat and the i (red) is the toilet. :))))
Even I figured it out... The i (blue) is the flat and the i (red) is the toilet. :))))
You should write a popular science book, you obviously have a talent for explaining things simply ))
With a declared
will just give a warning that the local i overrides the global one.
declaration of 'i' hides global declaration at line 20 test.mq4 25 13
You should write a popular science book, you obviously have a talent for explaining things simply ))
With a declared
will just give a warning that the local i overrides the global one.
declaration of 'i' hides global declaration at line 20 test.mq4 25 13
That's what Artem was explaining. I have no such talents... You're not a writer, you're a reader...
Hi, can you tell me how to run ZigZag in the EA, in general, working, but the left signals a lot, glued to it ZZ, stopped working. Cannot open file ZigZag on the test, debugging at all does not go, on the demo did not buy a single order. what is there to do?
In the custom indicators is a fileZigZag, if so, is it exactly called there as when you access it from the EA ?
If yes, is the fileZigZag located in custom indicators, is it called as it is when accessing it from the Expert Advisor?
You should take the file name in quotes without the extension. It's strange, it compiles well. What was the originalZigZag variable ?
How to level out or compensate for single minus sags in a five
there is a function but it doesn't work