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:
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.
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".
릴리즈 노트
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
릴리즈 노트
Allow switch from Stoch RSI to plain Stoch
릴리즈 노트
Only place tp/sl exits after position entries instead of every tick
릴리즈 노트
Make stoch values invisibly plotted on the chart to be able to directly read current values
릴리즈 노트
Fixed a bug that was sending tp/sl alert at the same time as position entry if tp/sl was enabled
릴리즈 노트
Dont track trade direction with strategy variables anymore due to complications with sending tp/sl alert
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.