ADX_BtcUsd does not close positions based on +DI and -DI reversal
this code opens positions correctly but does not close them based on:
//+------------------------------------------------------------------+ // Function to manage the closing of positions if a reversal is detected //+------------------------------------------------------------------+ void ClosePositionIfInverted().
Your code seems to have AI-generated elements, so it cannot be helped (would need considerable human review/corrections before being usable in a live trading environment).
NOTE: this forum primarily operates in English (your commenting in Italian adds another layer of complexity).
Your code seems to have AI-generated elements, so it cannot be helped (would need considerable human review/corrections before being usable in a live trading environment).
NOTE: this forum primarily operates in English (your commenting in Italian adds another layer of complexity).