[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 208

 
DhP:
I throw a buy or sell script on the tester chart, but the position does not open. Is it supposed to be like this?

script to the tester? this one definitely won't open...
 
Too bad! Is there any trick to make it work after all, but not from an EA?
 
Can you please explain how the MACD indicator is smoothed? For example in the standard MACD Sample?
extern double MACDOpenLevel=3; // глобальные переменные
extern double MACDCloseLevel=2; 
------------------------------------------------------------------+

MathAbs(MacdCurrent)>(MACDOpenLevel*Point)  //одно из условий BUY

MacdCurrent>(MACDOpenLevel*Point)       //одно из условий SELL
 
Levels are introduced here to avoid the "chattering" effect when the signal line crosses the MACD
 
DhP:
Levels are introduced here to avoid the "chattering" effect when the signal line crosses the MACD
What do you mean by "chattering"?
 
So that no serial opening-closing takes place.
 
DhP:
So that serial opening-closing does not take place.
Please clarify;in that case in MacdOpen and CloseLevel the values 3 and 2 are? :)
 
MACDOpenLevel=3 - trigger to open 3 pips after crossing MACDCloseLevel=2 - trigger to close 2 pips after the signal line crosses the main line.
 
Can't remember the code. Possibly closing 2 points before crossing.
 
DhP:
Can't remember the code. Perhaps the closing takes place 2 points before the crossing.
Alexander, thank you very much!