EasyLanguage Bounty: Max Risk Per Trade & Purchasing Power Filter
Task: - Create 2 separate functions based on this template strategy - MaxRisk function: Calculates the maximum position size (rounded down to nearest whole number) based on a user inputted percentage risk number and the total GetRTAccountEquity value and the maximum stop loss for that strategy (array list of static stop, atr stop, trailing stop, etc. sorted for max). - SufficientMargin: Calculates purchasing power - (margin rate for traded symbol * buffer). If False then do not take trade. Challenges: - The biggest hurdle in solving for this is using the GetRT function keywords. In order to do so (without removing all back tested trades from performance report), the functions must detect session start times in irregular conditions, such as a holiday, and on charts with different time frames.