General Trading Chat

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
 

travi

Well-Known Member
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


MA50=MA(Close,50);
MA200=MA(Close,200);

Can anyone help me on this requirement please
1. When MA50 > MA200, it means golden cross occurred and it is in that phase.
When MA50 < MA200, it means death cross occurred.

Can you specify what tool/platform you are using?
 
1. When MA50 > MA200, it means golden cross occurred and it is in that phase.
When MA50 < MA200, it means death cross occurred.

Can you specify what tool/platform you are using?
Its amibroker
 
After a long time I got a pm from a member asking some trading related questions.Happy to see that people are still interested in trading ....:D trading related posts have considerably reduced these days.

Smart_trade
 
After a long time I got a pm from a member asking some trading related questions.Happy to see that people are still interested in trading ....:D trading related posts have considerably reduced these days.

Smart_trade
Gdmg Sir,

I wrote you many times but it seems your mail box always remains full so it bounced back. Anyway, will write you this weekend.

Regards
 

Similar threads