Experts: Freeman

 

Freeman:

Trading by RSI and Moving Average. Moving Average is used as a trend filter on H1.

The idea is trivial: if RSI is in the oversold area and starts reversing upwards, while Moving Average goes up as well, this is a buy signal. An opposite case is applied to selling.

The main EA feature is the ability to use two sets of parameters. Some settings have shorter periods that give more entries. Others, on the contrary, have longer periods, giving fewer but more accurate entries.

ATR is applied for calculating stop loss and take profit levels. It is possible to sort trades by trend. Moving Average from H1 is used as a filter.

Author: Vladimir Karputov

 
Автоматизированная торговля :

Freeman:

Author: Vladimir Karputov

Hi, ran a test on a demo account from 2018.10.02 to 2018.12.25 and saw a few errors in the log but it did initiate a few trades. Also on real account with lot convention 1 lot = 10,000 units, do I need to edit it? for example when I change lot size to 1.0 in strategy I don't see any trade initiated on real account ....

Files:
ERROR.JPG  64 kb
 
tiffin:

Hello, ran a test on a demo account from 2018.10.02 to 2018.12.25 and I saw a few errors in the log but it did initiate a few trades. Also on the real account with lot convention 1 lot = 10,000 units, do I need to edit it? for example when I change the lot size to 1.0 in the strategy I don't see any trade initiated on the real account ....

Please paste the message from the Logbook as code.


 
tiffin:

Hello, ran a test on a demo account from 2018.10.02 to 2018.12.25 and I saw a few errors in the log but it did initiate a few trades. Also on the real account with lot convention 1 lot = 10,000 units, do I need to edit it? for example when I change the lot size to 1.0 in the strategy, I don't see any trade initiated on the real account .

The log sometimes shows warnings. Warnings for the user.

 

2018-10-02 TO 2018.12.25

2019.01.09 09: 46: 09.753 Terminal MetaTrader 5 - AX x64 build 1940 started AX

2019.01.09 10: 20: 26.577 Core 1 initial deposit 10000.00 GBP, leverage 1:33
2019.01.09 10: 26: 27.729 Core 1 2018.05.02 23:15:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 27.729 Core 1 2018.05.02 23:30:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 27.729 Core 1 2018.05.02 23:45:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 27.729 Core 1 2018.05.03 01:00:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 27.729 Core 1 2018.05.03 02:00:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 27.729 Core 1 2018.05.04 10:00:00 OpenBuy, ERROR: method CheckVolume (0.01) <Lots (0.10)
2019.01.09 10: 26: 33.857 Core 1 2018.11.13 17:30:00 OpenBuy, ERROR: method CheckVolume (0.07) <Lots (0.10)
2019.01.09 10: 26: 33.857 Core 1 2018.11.13 17:45:00 OpenBuy, ERROR: method CheckVolume (0.03) <Lots (0.10)
2019.01.09 10: 26: 33.857 Core 1 2018.11.14 00:00:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 33.857 Core 1 2018.11.14 17:30:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 33.857 Core 1 2018.11.14 17:45:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 33.857 Core 1 2018.11.14 18:00:00 OpenBuy, ERROR: method CheckVolume (0.06) <Lots (0.10)

 
tiffin:
2018-10-02 TO 2018.12.25

2019.01.09 09: 46: 09.753 Terminal MetaTrader 5 - AX x64 build 1940 started AX

2019.01.09 10: 20: 26.577 Core 1 initial deposit 10000.00 GBP, leverage 1:33
2019.01.09 10: 26: 27.729 Core 1 2018.05.02 23:15:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 27.729 Core 1 2018.05.02 23:30:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 27.729 Core 1 2018.05.02 23:45:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 27.729 Core 1 2018.05.03 01:00:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 27.729 Core 1 2018.05.03 02:00:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 27.729 Core 1 2018.05.04 10:00:00 OpenBuy, ERROR: method CheckVolume (0.01) <Lots (0.10)
2019.01.09 10: 26: 33.857 Core 1 2018.11.13 17:30:00 OpenBuy, ERROR: method CheckVolume (0.07) <Lots (0.10)
2019.01.09 10: 26: 33.857 Core 1 2018.11.13 17:45:00 OpenBuy, ERROR: method CheckVolume (0.03) <Lots (0.10)
2019.01.09 10: 26: 33.857 Core 1 2018.11.14 00:00:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 33.857 Core 1 2018.11.14 17:30:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 33.857 Core 1 2018.11.14 17:45:00 OpenBuy, ERROR: method CheckVolume returned the value of "0.0"
2019.01.09 10: 26: 33.857 Core 1 2018.11.14 18:00:00 OpenBuy, ERROR: method CheckVolume (0.06) <Lots (0.10)



This means that there are no free funds on the account at the moment. The maximum possible lot size ("method CheckVolume") is less than the required lot size ("Lots ").

 

Got it, thank you very much. I think when it tries to increase the lot size, it is not possible because of the margin restriction.

On a live account with the condition 1Lot = 10000 units, do I need to change something in the code if I want to run it for 1 lot? As I don't see any trades initiated in real time and no error messages or warnings on the Expert tab. But at the same time it picks up trades on a parallel demo account.

 
tiffin:

Got it, thank you very much. I think when it tries to increase the lot size, it is not possible because of the margin restriction.

On a live account with the condition 1Lot = 10000 units, do I need to change something in the code if I want to run it for 1 lot? As I don't see any trades initiated in real time and no error messages or warnings on the Expert tab. But at the same time it picks up trades on a parallel demo account.

You have an input parameter"Lots". Change this parameter and check it in the strategy tester. You can also change the deposit size in the strategy tester. Run the test in visual mode and look at the margin.

 

Strangely, it actually works in the real account tester with (exactly the same as the real settings, ie LOT, Deposit, Leverage) visualization, I can see the trade from last night, but it didn't initiate in real time.

Checked all the usual places, checked automatic trading, no error logs, etc.

 
tiffin:

Strangely, it actually works in the real account tester with (exactly the same as the real settings, ie LOT, Deposit, Leverage) visualization, I can see last night's trade but it didn't initiate in real time.

Checked all the usual places, checked automatic trading, no error logs, etc.

Make changes to the code: put Print at the moment of birth of the trade signal. And you have not attached (as a text file) the Terminal Log.

You need two terminal logs (as a text file): tabs "Experts" and "Journal", you need to see the balance of the trading account, you need to see the currency of the trading account, you need to see the settings of the Expert Advisor, you need to see the name of the symbol on which the Expert Advisor trades.

 
it uses Hedge or Netting mode?