I create and indicator that highlighted the moment previous to a crossing SMA and the moment afterwards. What is called “Golden Cross” and “Death Cross”
The indicator is very simple but an be very usefully for an automatic strategy. Because it shows in real time the moment where is inevitable the crossing of two Simple Moving Average and the moment afterwards.
How it can be used? well I can imagine an strategy using it as a filter for Higher Time Frame or multi crossing of SMA in different time frame.
Hope you like it.
period001 = 50
period = 100
//Crossing areas definiton
IF WMA001 > SMA002 and WwMA001 < SMA002 then
IF WMA001 < SMA002 and WwMA001 > SMA002 then
Return CrossingBULL COLOURED(0,150,0) STYLE(histogram,2) as "Crossing Bull", CrossingBEAR COLOURED(200,0,0) STYLE(histogram,2) as "Crossing Bear", 0 as "cero"
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.ProRealTime ITF files and other attachments :