How to Clear Cache

 

I take it this needs the cache clearing:

// Define variables
int buySignal = 0;
int sellSignal = 0;
double entryPrice = 0;
double stopLossPrice = 0;
double takeProfitPrice = 0;

enum ENUM_TRADE_REQUEST_ACTIONS
{
   TRADE_ACTION_PENDING = 0,
   TRADE_ACTION_DEAL = 1,
};

I get the following error when I compile the above:

'Moz_ChatBot_2.mq5' Moz_ChatBot_2.mq5 1 1
identifier 'ENUM_TRADE_REQUEST_ACTIONS' already used Moz_ChatBot_2.mq5 8 6
1 errors, 0 warnings 2 1

I have cleared all the Cache folder on my MacBook Air.

Any help would be appreciated

Improperly formatted code edited by moderator.

Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Trade Operation Types
Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Trade Operation Types
  • www.mql5.com
Trade Operation Types - Trade Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
There is no "cache" problem. You are trying to redefine a built-in reserved enumeration. Don't!
Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Trade Operation Types
Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Trade Operation Types
  • www.mql5.com
Trade Operation Types - Trade Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 

Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893

Improperly formatted code edited by moderator. In the future, please use the CODE button (Alt-S) when inserting code.

Code button in editor