Buy =Cross( Close, Study("RE",1150) );
//Buy =Cross( Close, MA(C,7) );
B = Buy;
AlertIf (B, "SOUND C:\\Windows\\Media\\notify.wav", "Buy alert", 2 );
AlertIf (B, "Buy", "Buy at: "+C+" Alert",0, 1+2+4+8,1 );
It seems that I have found something very stupid .
If I use the line
Buy =Cross( Close, MA(C,7) );
Then I obtain the sound and the text result in the output windows
But if I use the the line
Buy =Cross( Close, Study("RE",1150) );
And push the scan button then nothing is happened !!
Nevertheless in the "result" spreadsheet" I can see the stocks where the close
is crossing above my trendine
.
My conclusion is that I can't use alertIf with the "study line"
Am I right ?