Hi All,
I'm looking for an algo for a trading system i use:
Indicators: MACD, EMA
Constraints: Market days and hours, check if there is currently a trade in the direction.
Money Management: Set stop loss and take profit values. Position size to be calculated per distance from entry to stop as a factor of account NAV. Trailing stop loss applies.
Triggers: Two conditions will be specified
Entry: based on close of a candle after all previous triggers have been met.
Code must be well commented so I know where i can make minor adjustments.