OPEN-SOURCE SCRIPT
Güncellendi EMA Stoch Strategy For ProfitView

This strategy will enter positions when the set stochastic conditions are met, and uses the moving average to filter the direction of the trades (long/short). The background is used to illustrate the strength of the stochastic values.
The following is a step by step guide in order to automate the trading of the strategy with ProfitView:
The following is a step by step guide in order to automate the trading of the strategy with ProfitView:
- In the indicator settings, set the desired stochastic and ema values, and the stochastic condition you want to use to enter a trade.
- In the indicator, set which exchange, symbol, and account to execute trades on.
- In the indicator, set the PV Alert names you intend to use. If you want to use the same names as provided in the pastebin below, you may set the three names to Market Long, Market Short, TP SL Hit.
- In PV, create two new PV Alerts in the PV Alert tab in accordance to these specifics https://pastebin.com/b7HAfGHY.
- On the Tradingview chart you want the indicator run on, create a new TV alert with this script as its condition, and specify the alert to "alert() function calls only".
Sürüm Notları
Added leverage parameter that is added to the alert message for optional usage. Leverage in PV can now be set by adding leverage=_mylev to the order entry line for example[side] quantity=100% type=market leverage=_mylev
Sürüm Notları
Allow switch from Stoch RSI to plain StochSürüm Notları
Only place tp/sl exits after position entries instead of every tickSürüm Notları
Make stoch values invisibly plotted on the chart to be able to directly read current valuesSürüm Notları
Fixed a bug that was sending tp/sl alert at the same time as position entry if tp/sl was enabledSürüm Notları
Dont track trade direction with strategy variables anymore due to complications with sending tp/sl alertSürüm Notları
Minor format editSürüm Notları
Minor code cleanupAçık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.