Can an EA adjust risk based on its previous performance?

 
Hi guys,

An EA I am working on currently was found to be much less profitable on short positions vs long positions over the testing period. 

The simple solution to reduce Max DD and increase profitability is to either reduce position sizing for short positions or alternatively increase sizing on long positions but this is clearly way too simple of a solution. 

I know it’s possible to write an EA which feeds of account history, such as those which export to csv. etc. But I wondered if it’s possible to analyse the account performance and adjust risk per pair/direction accordingly?

In my head this would create a more dynamic way to reduce losses on clear bad positions, but when they start to perform better the EA could then increase exposure. 

Is this something that is possible in MQL4?
 
If you can state your idea in concrete terms, only then can you code it
Reason: