Support Board
Date/Time: Tue, 26 Nov 2024 11:32:58 +0000
Post From: New user needs help
[2023-12-14 15:46:11] |
User209431 - Posts: 108 |
// Define account risk and entry price
float account_risk = 25000.0; float entry_price = 50.0; // Replace with your desired entry price // Calculate stop loss price based on a 4% risk float risk_percentage = 0.04; // 4% float stop_loss_price = entry_price - (entry_price * risk_percentage); // Calculate position size float position_size = account_risk / (entry_price - stop_loss_price); // Print or display the calculated values print("Entry Price: " + entry_price); print("Stop Loss Price: " + stop_loss_price); print("Calculated Position Size: " + position_size); Pardon my coding, I really do not know what I am doing but I get by so far, "Necessity is the mother of invention" But I was seeing something like the code above. I just need to see the values quickly, punching them in is not a deal breaker. Date Time Of Last Edit: 2023-12-14 15:47:03
|