// Definition of code parameters DEFPARAM CumulateOrders = False // Cumulating positions deactivated // Conditions to enter long positions indicator1 = MACDline[37,77,9](close) indicator2 = MACDSignal[37,77,9](close) c1 = (indicator1 CROSSES OVER indicator2) indicator3 = RSI[14](close) c2 = (indicator3 <= 55) indicator4 = MACDSignal[37,77,9](close) indicator5 = MACD[37,77,9](close) c3 = (indicator4 < indicator5) indicator6 = MACDline[37,77,9](close) indicator7 = MACD[37,77,9](close) c4 = (indicator6 < indicator7) IF c1 AND c2 AND c3 AND c4 THEN BUY 10 SHARES AT MARKET ENDIF // Conditions to enter short positions indicator8 = MACDSignal[37,77,9](close) indicator9 = MACDline[37,77,9](close) c5 = (indicator8 CROSSES OVER indicator9) indicator10 = RSI[14](close) c6 = (indicator10 >= 45) indicator11 = MACDSignal[37,77,9](close) indicator12 = MACD[37,77,9](close) c7 = (indicator11 > indicator12) indicator13 = MACDline[37,77,9](close) indicator14 = MACD[37,77,9](close) c8 = (indicator13 > indicator14) IF c5 AND c6 AND c7 AND c8 THEN SELLSHORT 10 SHARES AT MARKET ENDIF // Stops and targets SET STOP pTRAILING 20 SET TARGET pPROFIT 60 Hello, This is my first time posting here and I am slowly getting to grips with the world of coding. I used the simple programming option to create an algorithm that uses the MACD and have had some good results depending on the timeframe; currently I’, on a 10 minute on the S&P 500. I have since read that there are alternatives to the standard MACD and would like to see whether anyone would be able to help me modify the code to use the Zero Lag MACD. I would also be more than grateful for any other suggestions or changes that I should try to implement. Thank you