// Tracé de la moyenne mobile
plot(sma50, color=color.orange, title=”Moyenne Mobile 50″)
// Marquage du signal d’achat
plotshape(buyCondition, location=location.belowbar, color=color.green, style=shape.triangleup, title=”Signal d’Achat”)
// Gestion de la position
// Sortie de position (Stop loss et Take profit)
stopLossPrice = renkoLow // Stop loss au niveau du creux le plus bas
takeProfitPrice = renkoClose + 2 * (renkoClose – stopLossPrice) // Take profit à 2 fois le stop loss
strategy.exit(“Take Profit/Stop Loss”, from_entry=”Achat”, stop=stopLossPrice, limit=takeProfitPrice)
Pouvez-vous me dire où ça coince (PRT me met du rouge à chaque terme qui se trouve entre guillemets déjà) ?
Trading on leveraged financial instruments may expose you to risk of loss greater than your deposits and is only suitable for experienced clients with the financial means to bear such risk. Trading on foreign exchange instruments (Forex) and contracts for difference (CFDs) is highly speculative and particularly complex and comes with a high level of risk due to leverage. You must ensure that you understand how these instruments work and that you can afford to take the high risk of losing your money. No information on this site is investment advice or a solicitation to buy or sell any financial instruments.