I am new to the programming side of this so I thought I would much around with EAs that are already written. In this particular case, I'm having difficulty with my trailing stop function. I have attached the whole EA as I'm not sure if it's the function or the function call that is the issue. If anyone can help I would greatly appreciate as I have no idea what is wrong with it.
OrderSelect(i, SELECT_BY_POS, MODE_TRADES);
OrderModify(OrderTicket(), OrderOpenPrice(), Bid - Point*TrailingStop, 0, 0, Yellow);
extern int TrailingStop = 20;
int TrailingStop; // This declaration hides the external. So you have none.