FX:EURUSD   歐元 / 美元
// Take profit script for EURUSD pair over a 5 minute period

// Define variables
def ticker = ticker("EURUSD")
def duration = 5m
def currentPrice = close(ticker)
def targetPrice = currentPrice + (currentPrice * 0.01) // aim for a 1% profit

// Calculate probability of reaching target price
def probability = quantumProbability(ticker, duration, targetPrice)

// If probability is high enough, place trade
if (probability > 0.8) {
marketSell(ticker, duration)
}
免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。