HayeTrading

MASelect Crossover Strat

Basic Crossover Strategy for backtesting purposes, to use with the study+alert script.

Use "Format" to change your settings. Both Moving Averages can be changed individually to swap between EMA (Exponential Moving Average), SMA (Simple Moving Average), WMA (Weighted Moving Average), DEMA (Double Exponential Moving Average) and VWMA (Volume Weighted Moving Average).

"Active Length" should be shorter than "Base Length". As usual with crossover strategies, candle resolution will affect results greatly. Longer=better.

Strategy options are "Long+Short" or "Long Only".

Entries/Exits are based on crossovers/crossunders only, but I encourage you to add further exit conditions and play around with the code.

I made this for beginners on Autoview discord to have something to play with, and added some unnecessary visual changes just to give code examples (changing things like background color, candle color, line color, plotting shapes, different plot styles).

Play around combining different types of Moving Averages of different lengths.

discord.gg/mFYvr2bGtu - FREE Trading Chat Rooms
نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟