^Hello,
im trying to learn pine but I wonder that I don't get any orders in the strategy tester
my problem isn't that the strategy makes profit or not, I only try to find out, how I can see trades
and I always get the message out from TradingView
"No Data"
what makes me wonder, bcc im a premium user
regards
amando
im trying to learn pine but I wonder that I don't get any orders in the strategy tester
Inserted Code
//@version=5
strategy(title='EMA Strategy',overlay=true)
len = input.int(10, minval=1, title='Length') // EMA inputs
src = input(close, title='Source') // Preis -> default = close
EMA = ta.ema(close, len) // EMA Berechnung
buySignal = close[2] < EMA[2] and close[1] > EMA[1] // Buy Signal
sellSignal = close[2] > EMA[2] and close[1] < EMA[1] // Sell Signal
buyExit = close[2] > EMA[2] and close[1] < EMA[1]
sellExit = close[2] < EMA[2] and close[1] > EMA[1]
// Alerts
strategy.entry("buy", strategy.long ,0.02,when = buySignal )
strategy.entry("sell", strategy.short,0.02,when = sellSignal )
strategy.exit("exit", "buy" ,0.02,when = buyExit, profit = 100, loss = 100 )
strategy.exit("exit", "sell",0.02,when = sellExit, profit = 100, loss = 100 ) my problem isn't that the strategy makes profit or not, I only try to find out, how I can see trades
and I always get the message out from TradingView
"No Data"
what makes me wonder, bcc im a premium user
regards
amando
The biggest drawdown is ahead of you