Convert Tradingview pine script to MT4 or Ctrader automate

Created at 18 May 2022, 11:21
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
AP

ap.trading

Joined 19.04.2022

Convert Tradingview pine script to MT4 or Ctrader automate
18 May 2022, 11:21


hi Guys ,

Could someone convert the below script into a working bot or indecator in MT4 or ctrader 

Thanks Andy 

 

//@version=5
strategy("Stochastic Slow Strategy", overlay=true)
length = input.int(14, minval=1)
OverBought = input(80)
OverSold = input(20)
smoothK = 3
smoothD = 3
k = ta.sma(ta.stoch(close, high, low, length), smoothK)
d = ta.sma(k, smoothD)
co = ta.crossover(k,d)
cu = ta.crossunder(k,d)
if (not na(k) and not na(d))
    if (co and k < OverSold)
        strategy.entry("StochLE", strategy.long, comment="StochLE")
    if (cu and k > OverBought)
        strategy.entry("StochSE", strategy.short, comment="StochSE")
//plot(strategy.equity, title="equity", color=color.red, linewidth=2, style=plot.style_areabr)


@ap.trading
Replies

amusleh
19 May 2022, 08:35

Hi,

Please post a job request or contact one of our consultant companies.


@amusleh