OPEN-SOURCE SCRIPT
Nifty Alpha Swing Bot

It is the trading bot designed to work with nifty with perameter set for Nifty for swing trading with ideal time frames as 1 Hr and/or 3 Hr.
Startgy is defiend with Entry logic, Stop loss logic and traile logic once the trade becomes +ve.
It considers fast ema-fEma (50) and slow ema-sEma (200) in a perticular time frame, Daily EMA 50, Stock RSI, ADX etc.
Bull or Bear entry logic is defined as follows.
trendBull = fEma > sEma and adx > adxThreshold and (not useDailyFilter or dailyBull)
trendBear = fEma < sEma and adx > adxThreshold and (not useDailyFilter or dailyBear)
Long or Short signals are defined as follows (It considers StockRSI crossover
longSignal = inSession and trendBull and stochCrossOver and stochK < stochLevel
shortSignal = inSession and trendBear and stochCrossUnder and stochK > (100 - stochLevel)
Once the trade is placed, it then puts SL defined by multiplier x ATR and once the trade becomes +ve above offset level, it will start trailing the SL.
NoReco-just sharing for learning and backtesting.
Startgy is defiend with Entry logic, Stop loss logic and traile logic once the trade becomes +ve.
It considers fast ema-fEma (50) and slow ema-sEma (200) in a perticular time frame, Daily EMA 50, Stock RSI, ADX etc.
Bull or Bear entry logic is defined as follows.
trendBull = fEma > sEma and adx > adxThreshold and (not useDailyFilter or dailyBull)
trendBear = fEma < sEma and adx > adxThreshold and (not useDailyFilter or dailyBear)
Long or Short signals are defined as follows (It considers StockRSI crossover
longSignal = inSession and trendBull and stochCrossOver and stochK < stochLevel
shortSignal = inSession and trendBear and stochCrossUnder and stochK > (100 - stochLevel)
Once the trade is placed, it then puts SL defined by multiplier x ATR and once the trade becomes +ve above offset level, it will start trailing the SL.
NoReco-just sharing for learning and backtesting.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.