hi
below is the code for golden and death crossover
Could any one help me with my requirement?
I want to findout which crossover it is currently in and when it happened
Say below code will produce lot of golden crossover signals and lot of death crossover signals for a single stock. But what i want is that it should show only one signal either it is gold or death whatever it is currently in and when it happened
Your help is really appreciated. Thanks
MA50=MA(Close,50);
MA200=MA(Close,200);
Buy=Cross(MA50,MA200);
Sell=Cross(MA200,MA50);
Filter =Buy OR Sell;
AddColumn (Buy,"Golden crossover");
AddColumn (Sell,"Death Crossover");
AddColumn (Close,"Close");
Can anyone help me on this requirement please