OPEN-SOURCE SCRIPT
Generation 6 Massive Trend Following for Gold (Note at bottom!)

Making this one an open script for you people.
Commission_value = 0.02 is the same as a 50 pip gold spread.
Start capital $10,000.
1.00 lots = 1 contract on this.
Trend establishment with the 600 period moving average, trend continuation with the crossover/crossunder.
This strategy is great for finding trends on XAUUSD.
Side note: if anyone knows MQL4 coding language for MT4, please let me know, I would like to see the results of this strategy over a period of several years rather than the several months of data that Tradingview Provides. Please PM me, I want to see how profitable this code is over a long period of time. Thank you, and enjoy.
Commission_value = 0.02 is the same as a 50 pip gold spread.
Start capital $10,000.
1.00 lots = 1 contract on this.
Trend establishment with the 600 period moving average, trend continuation with the crossover/crossunder.
This strategy is great for finding trends on XAUUSD.
Side note: if anyone knows MQL4 coding language for MT4, please let me know, I would like to see the results of this strategy over a period of several years rather than the several months of data that Tradingview Provides. Please PM me, I want to see how profitable this code is over a long period of time. Thank you, and enjoy.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.