After putting the strategy in real with size 0.01 lots the JForex catch an error, see the "Log_Dukascopy.csv" and the line
11 Dec 2023, 18:00:01 | INFO | Gold_Strategy_3_50_112 - ERROR: Order amount: 0.000000010 can't be less than minimum allowed: 0.00000100 |
The problem is in the function below:
private double getLotSize(Instrument instrument) throws JFException { if(instrument.getGroup().isCrypto()) return 1d; if(instrument.getGroup().isForex()) return 100000d; return 1d; }
I suggest you to use instead the following function that is applicable to all instruments( forex, crypto, metals...)
private double getLotSize(Instrument instrument) throws JFException {
return 100*instrument.getMinTradeAmount();
}