//+-------------------------------------------------------------------+ //| Made/Modified by Alejandro Galindo | //| | //| If this work/modification is helpful to you | //| send me a PayPal donation to ag@elcactus.com | //| any help is apreciated :) | //| Thanks. | //+-------------------------------------------------------------------+ /*[[ Name := MACD crosses Author := Copyright © 2005, Alejandro Galindo. Link := http://elCactus.com Lots := 1.00 Stop Loss := 999 Take Profit := 999 Trailing Stop := 999 ]]*/ Define: FastEMA(12); Define: SlowEMA(26); Define: MACDSMA(9); var: macdb4(0); var: macd(0); macdb4=iMACD(FastEMA,SlowEMA,MACDSMA,MODE_MAIN,2); macd=iMACD(FastEMA,SlowEMA,MACDSMA,MODE_MAIN,1); If macdb4<=0 and macd>0 then { Alert("MACD lines crossed above 0.0 level"); }; If macdb4>=0 and macd<0 then { Alert("MACD lines crossed bellow 0.0 level"); }; Exit;