With Globalvariables, i want to send data between two scanners
In the scanner "sender" (quarter data") for some instruments i don't have enought data
For the instruments with data, the informataion is sent to the 2nd scanner
In the scanner "receiver" (monthly data) , i have errors because "not enought data in the 1st scanner
Is it possible to hide the errors windows ?
How to ask to easylanguage not to to deal with the intruments wiithout information for the 1st scanner
Code: Select all
{ *** QuarterIndicator *** }
Inputs:
Price((H+L+(2*C))/4),
AverageLength(10), AverageColor(DarkGray), ReturnMini(1),
BollingerLength(20), BollingerStDv(2), BollingerUpColor(Green), BollingerDnColor(Red),
GlobalVariables(True);
Variables:
BollingerAvg(0), BollingerSd(0),
BollingerUp(0), BollingerDn(0),
BollingerUpLineColor(0), BollingerDnLineColor(0),
MyAvg(0), PhName(""),
Ph1(False), Ph2(False), Ph3(False),
{ GV }
GV_BbPhases(0) ;
// ac(0);
{ Bollinger }
BollingerAvg = AverageFC(Price, BollingerLength);
BollingerSd = StandardDev(Price, BollingerLength, 1);
BollingerUp = BollingerAvg + (BollingerStDv * BollingerSd);
BollingerDn = BollingerAvg - (BollingerStDv * BollingerSd);
{ Setup }
Ph2 = BollingerUp > BollingerUp[1] and BollingerDn < BollingerDn[1] and Price > BollingerAvg and
BollingerUp[1] <> 0 and BollingerDn[1] <> 0;
{ GlobalVariables }
If GlobalVariables and LastBarOnChart then
GV_BbPhases = GVSetNamedBool(Symbol+"Q_BbPhases", Ph2);
Code: Select all
{ *** MonthIndicator *** }
Inputs:
Price((H+L+(2*C))/4),
AverageLength(10), AverageColor(DarkGray), ReturnMini(1),
BollingerLength(20), BollingerStDv(2), BollingerUpColor(Green), BollingerDnColor(Red),
GlobalVariables(True);
Variables:
Return(0),
BollingerAvg(0), BollingerSd(0),
BollingerUp(0), BollingerDn(0),
BollingerUpLineColor(0), BollingerDnLineColor(0),
MyAvg(0), PhName(""),
Ph1(False), Ph2(False), Ph3(False),
{ Global Variable }
GV_BbPhases(False);
{ Bollinger }
BollingerAvg = AverageFC(Price, BollingerLength);
BollingerSd = StandardDev(Price, BollingerLength, 1);
BollingerUp = BollingerAvg + (BollingerStDv * BollingerSd);
BollingerDn = BollingerAvg - (BollingerStDv * BollingerSd);
{ GlobalVariables }
If LastBarOnChart then
begin
GV_BbPhases = GVGetNamedBool(Symbol+"Q_BbPhases");
If (GV_BbPhases) then
Plot1("p2","Q_Ph",DarkGreen)
else
NoPlot(1);
end;
here the screenshot
All suggestions are welcome!
Nuno