Heikin Ashi

 
Can anyone tell me how to detect when the trend direction changes from within an EA?
 
Tony Chavez: Can anyone tell me how to detect when the trend direction changes from within an EA?
  1. Define what you mean trend.
  2. Code that definition.
Reason: