hounddog

Trader
Jul 23, 2020
14
0
6
29
i have attaced the log file in this folder as it wouldnt let me send it on its own
 

Attachments

  • New Compressed (zipped) Folder.zip
    106.4 KB · Views: 2

hounddog

Trader
Jul 23, 2020
14
0
6
29
Here is my current demo as you can see it is way above 15%.
 

Attachments

  • A1A2E993-EC9C-4517-A71F-F4000D2458B2.png
    A1A2E993-EC9C-4517-A71F-F4000D2458B2.png
    140.9 KB · Views: 3

Enivid

Administrator
Staff member
Nov 30, 2008
14,204
636
144
Odessa
www.earnforex.com
I am not sure. I've just tested it and it triggered for the 4th time without any problems and intervention from my side:

Code:
2020.07.23 14:31:48.609    Account Protector USDCHF,Daily: CONDITION IS MET: Floating loss rose to 15.00% of balance
2020.07.23 14:31:48.609    Account Protector USDCHF,Daily: Account Equity = 76441.49 USD, Account Free Margin = 23169.89 USD, Account Balance = 91319.94 USD
2020.07.23 14:31:48.624    Account Protector USDCHF,Daily: Floating loss = -14878.45 USD
2020.07.23 14:31:48.624    Account Protector USDCHF,Daily: Number of open positions = 10, Number of pending orders = 1, Current spread = 0.0001
2020.07.23 14:31:48.709    Account Protector USDCHF,Daily: ACTION IS TAKEN: Close positions (15% of Losing).
2020.07.23 14:31:48.878    Account Protector USDCHF,Daily: close #108754166 buy 1.50 Palladium at 2156.52 at price 2125.86
2020.07.23 14:31:48.878    Account Protector USDCHF,Daily: Account Protector: Palladium Buy order #108754166; Lotsize = 10.00, OpenPrice = 2156.52, SL = 0.00, TP = 0.00 was partially closed (15%) at 2125.86.
2020.07.23 14:31:49.025    Account Protector USDCHF,Daily: close #108751715 buy 1.50 Copper at 2.9508 at price 2.9247
2020.07.23 14:31:49.025    Account Protector USDCHF,Daily: Account Protector: Copper Buy order #108751715; Lotsize = 10.00, OpenPrice = 2.9508, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 2.9247.
2020.07.23 14:31:49.179    Account Protector USDCHF,Daily: close #108750551 buy 1.50 GBPUSD at 1.2725 at price 1.2699
2020.07.23 14:31:49.179    Account Protector USDCHF,Daily: Account Protector: GBPUSD Buy order #108750551; Lotsize = 10.00, OpenPrice = 1.2725, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 1.2699.
2020.07.23 14:31:49.311    Account Protector USDCHF,Daily: close #108749627 buy 1.50 Brent_Crude at 44.51 at price 44.08
2020.07.23 14:31:49.311    Account Protector USDCHF,Daily: Account Protector: Brent_Crude Buy order #108749627; Lotsize = 10.00, OpenPrice = 44.51, SL = 0.00, TP = 0.00 was partially closed (15%) at 44.08.
2020.07.23 14:31:49.464    Account Protector USDCHF,Daily: close #108749442 buy 0.75 USDCHF at 0.9275 at price 0.9270
2020.07.23 14:31:49.464    Account Protector USDCHF,Daily: Account Protector: USDCHF Buy order #108749442; Lotsize = 5.00, OpenPrice = 0.9275, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 0.9270.
2020.07.23 14:32:05.619    Account Protector USDCHF,Daily: CONDITION IS MET: Floating loss rose to 15.00% of balance
2020.07.23 14:32:05.619    Account Protector USDCHF,Daily: Account Equity = 72146.41 USD, Account Free Margin = 24528.64 USD, Account Balance = 85635.70 USD
2020.07.23 14:32:05.619    Account Protector USDCHF,Daily: Floating loss = -13489.29 USD
2020.07.23 14:32:05.619    Account Protector USDCHF,Daily: Number of open positions = 10, Number of pending orders = 1, Current spread = 0.0000
2020.07.23 14:32:05.735    Account Protector USDCHF,Daily: ACTION IS TAKEN: Close positions (15% of Losing).
2020.07.23 14:32:05.888    Account Protector USDCHF,Daily: close #108755249 buy 0.63 USDCHF at 0.9275 at price 0.9270
2020.07.23 14:32:05.888    Account Protector USDCHF,Daily: Account Protector: USDCHF Buy order #108755249; Lotsize = 4.25, OpenPrice = 0.9275, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 0.9270.
2020.07.23 14:32:06.035    Account Protector USDCHF,Daily: close #108755246 buy 1.27 Brent_Crude at 44.51 at price 44.10
2020.07.23 14:32:06.035    Account Protector USDCHF,Daily: Account Protector: Brent_Crude Buy order #108755246; Lotsize = 8.50, OpenPrice = 44.51, SL = 0.00, TP = 0.00 was partially closed (15%) at 44.10.
2020.07.23 14:32:06.167    Account Protector USDCHF,Daily: close #108755244 buy 1.27 GBPUSD at 1.2725 at price 1.2698
2020.07.23 14:32:06.167    Account Protector USDCHF,Daily: Account Protector: GBPUSD Buy order #108755244; Lotsize = 8.50, OpenPrice = 1.2725, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 1.2697.
2020.07.23 14:32:06.321    Account Protector USDCHF,Daily: close #108755242 buy 1.27 Copper at 2.9508 at price 2.9247
2020.07.23 14:32:06.321    Account Protector USDCHF,Daily: Account Protector: Copper Buy order #108755242; Lotsize = 8.50, OpenPrice = 2.9508, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 2.9247.
2020.07.23 14:32:06.468    Account Protector USDCHF,Daily: close #108755240 buy 1.27 Palladium at 2156.52 at price 2123.71
2020.07.23 14:32:06.468    Account Protector USDCHF,Daily: Account Protector: Palladium Buy order #108755240; Lotsize = 8.50, OpenPrice = 2156.52, SL = 0.00, TP = 0.00 was partially closed (15%) at 2123.71.
2020.07.23 14:32:59.794    Account Protector USDCHF,Daily: CONDITION IS MET: Floating loss rose to 15.00% of balance
2020.07.23 14:32:59.810    Account Protector USDCHF,Daily: Account Equity = 68398.39 USD, Account Free Margin = 25566.28 USD, Account Balance = 80562.96 USD
2020.07.23 14:32:59.810    Account Protector USDCHF,Daily: Floating loss = -12164.57 USD
2020.07.23 14:32:59.810    Account Protector USDCHF,Daily: Number of open positions = 10, Number of pending orders = 1, Current spread = 0.0000
2020.07.23 14:32:59.910    Account Protector USDCHF,Daily: ACTION IS TAKEN: Close positions (15% of Losing).
2020.07.23 14:33:00.057    Account Protector USDCHF,Daily: Account Protector: OrderClose Buy failed. Error #138
2020.07.23 14:33:00.189    Account Protector USDCHF,Daily: close #108755270 buy 1.08 Copper at 2.9508 at price 2.9243
2020.07.23 14:33:00.189    Account Protector USDCHF,Daily: Account Protector: Copper Buy order #108755270; Lotsize = 7.23, OpenPrice = 2.9508, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 2.9243.
2020.07.23 14:33:00.342    Account Protector USDCHF,Daily: close #108755268 buy 1.08 GBPUSD at 1.2725 at price 1.2698
2020.07.23 14:33:00.342    Account Protector USDCHF,Daily: Account Protector: GBPUSD Buy order #108755268; Lotsize = 7.23, OpenPrice = 1.2725, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 1.2698.
2020.07.23 14:33:00.511    Account Protector USDCHF,Daily: close #108755266 buy 1.08 Brent_Crude at 44.51 at price 44.10
2020.07.23 14:33:00.511    Account Protector USDCHF,Daily: Account Protector: Brent_Crude Buy order #108755266; Lotsize = 7.23, OpenPrice = 44.51, SL = 0.00, TP = 0.00 was partially closed (15%) at 44.10.
2020.07.23 14:33:00.643    Account Protector USDCHF,Daily: close #108755264 buy 0.54 USDCHF at 0.9275 at price 0.9271
2020.07.23 14:33:00.643    Account Protector USDCHF,Daily: Account Protector: USDCHF Buy order #108755264; Lotsize = 3.62, OpenPrice = 0.9275, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 0.9271.
2020.07.23 14:33:00.859    Account Protector USDCHF,Daily: close #108755272 buy 1.08 Palladium at 2156.52 at price 2117.65
2020.07.23 14:33:00.859    Account Protector USDCHF,Daily: Account Protector: Palladium Buy order #108755272; Lotsize = 7.23, OpenPrice = 2156.52, SL = 0.00, TP = 0.00 was partially closed (15%) at 2117.65.
2020.07.23 14:39:11.457    Account Protector USDCHF,Daily: CONDITION IS MET: Floating loss rose to 15.00% of balance
2020.07.23 14:39:11.457    Account Protector USDCHF,Daily: Account Equity = 62293.83 USD, Account Free Margin = 23532.48 USD, Account Balance = 75600.14 USD
2020.07.23 14:39:11.457    Account Protector USDCHF,Daily: Floating loss = -13306.31 USD
2020.07.23 14:39:11.457    Account Protector USDCHF,Daily: Number of open positions = 10, Number of pending orders = 1, Current spread = 0.0001
2020.07.23 14:39:11.542    Account Protector USDCHF,Daily: ACTION IS TAKEN: Close positions (15% of Losing).
2020.07.23 14:39:11.705    Account Protector USDCHF,Daily: close #108755340 buy 0.92 Palladium at 2156.52 at price 2119.51
2020.07.23 14:39:11.705    Account Protector USDCHF,Daily: Account Protector: Palladium Buy order #108755340; Lotsize = 6.15, OpenPrice = 2156.52, SL = 0.00, TP = 0.00 was partially closed (15%) at 2119.51.
2020.07.23 14:39:11.836    Account Protector USDCHF,Daily: close #108755338 buy 0.46 USDCHF at 0.9275 at price 0.9269
2020.07.23 14:39:11.836    Account Protector USDCHF,Daily: Account Protector: USDCHF Buy order #108755338; Lotsize = 3.08, OpenPrice = 0.9275, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 0.9269.
2020.07.23 14:39:12.006    Account Protector USDCHF,Daily: close #108755335 buy 0.92 Brent_Crude at 44.51 at price 44.07
2020.07.23 14:39:12.006    Account Protector USDCHF,Daily: Account Protector: Brent_Crude Buy order #108755335; Lotsize = 6.15, OpenPrice = 44.51, SL = 0.00, TP = 0.00 was partially closed (15%) at 44.07.
2020.07.23 14:39:12.137    Account Protector USDCHF,Daily: close #108755333 buy 0.92 GBPUSD at 1.2725 at price 1.2699
2020.07.23 14:39:12.137    Account Protector USDCHF,Daily: Account Protector: GBPUSD Buy order #108755333; Lotsize = 6.15, OpenPrice = 1.2725, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 1.2699.
2020.07.23 14:39:12.291    Account Protector USDCHF,Daily: close #108755330 buy 0.92 Copper at 2.9508 at price 2.9268
2020.07.23 14:39:12.291    Account Protector USDCHF,Daily: Account Protector: Copper Buy order #108755330; Lotsize = 6.15, OpenPrice = 2.9508, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 2.9268.

PS: I've noticed that you are sending me the mobile app screenshots. Do you have the AP actually running on your PC (VPS), which is turned on and connected to the trading server?
 

hounddog

Trader
Jul 23, 2020
14
0
6
29
I am not sure. I've just tested it and it triggered for the 4th time without any problems and intervention from my side:

Code:
2020.07.23 14:31:48.609    Account Protector USDCHF,Daily: CONDITION IS MET: Floating loss rose to 15.00% of balance
2020.07.23 14:31:48.609    Account Protector USDCHF,Daily: Account Equity = 76441.49 USD, Account Free Margin = 23169.89 USD, Account Balance = 91319.94 USD
2020.07.23 14:31:48.624    Account Protector USDCHF,Daily: Floating loss = -14878.45 USD
2020.07.23 14:31:48.624    Account Protector USDCHF,Daily: Number of open positions = 10, Number of pending orders = 1, Current spread = 0.0001
2020.07.23 14:31:48.709    Account Protector USDCHF,Daily: ACTION IS TAKEN: Close positions (15% of Losing).
2020.07.23 14:31:48.878    Account Protector USDCHF,Daily: close #108754166 buy 1.50 Palladium at 2156.52 at price 2125.86
2020.07.23 14:31:48.878    Account Protector USDCHF,Daily: Account Protector: Palladium Buy order #108754166; Lotsize = 10.00, OpenPrice = 2156.52, SL = 0.00, TP = 0.00 was partially closed (15%) at 2125.86.
2020.07.23 14:31:49.025    Account Protector USDCHF,Daily: close #108751715 buy 1.50 Copper at 2.9508 at price 2.9247
2020.07.23 14:31:49.025    Account Protector USDCHF,Daily: Account Protector: Copper Buy order #108751715; Lotsize = 10.00, OpenPrice = 2.9508, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 2.9247.
2020.07.23 14:31:49.179    Account Protector USDCHF,Daily: close #108750551 buy 1.50 GBPUSD at 1.2725 at price 1.2699
2020.07.23 14:31:49.179    Account Protector USDCHF,Daily: Account Protector: GBPUSD Buy order #108750551; Lotsize = 10.00, OpenPrice = 1.2725, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 1.2699.
2020.07.23 14:31:49.311    Account Protector USDCHF,Daily: close #108749627 buy 1.50 Brent_Crude at 44.51 at price 44.08
2020.07.23 14:31:49.311    Account Protector USDCHF,Daily: Account Protector: Brent_Crude Buy order #108749627; Lotsize = 10.00, OpenPrice = 44.51, SL = 0.00, TP = 0.00 was partially closed (15%) at 44.08.
2020.07.23 14:31:49.464    Account Protector USDCHF,Daily: close #108749442 buy 0.75 USDCHF at 0.9275 at price 0.9270
2020.07.23 14:31:49.464    Account Protector USDCHF,Daily: Account Protector: USDCHF Buy order #108749442; Lotsize = 5.00, OpenPrice = 0.9275, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 0.9270.
2020.07.23 14:32:05.619    Account Protector USDCHF,Daily: CONDITION IS MET: Floating loss rose to 15.00% of balance
2020.07.23 14:32:05.619    Account Protector USDCHF,Daily: Account Equity = 72146.41 USD, Account Free Margin = 24528.64 USD, Account Balance = 85635.70 USD
2020.07.23 14:32:05.619    Account Protector USDCHF,Daily: Floating loss = -13489.29 USD
2020.07.23 14:32:05.619    Account Protector USDCHF,Daily: Number of open positions = 10, Number of pending orders = 1, Current spread = 0.0000
2020.07.23 14:32:05.735    Account Protector USDCHF,Daily: ACTION IS TAKEN: Close positions (15% of Losing).
2020.07.23 14:32:05.888    Account Protector USDCHF,Daily: close #108755249 buy 0.63 USDCHF at 0.9275 at price 0.9270
2020.07.23 14:32:05.888    Account Protector USDCHF,Daily: Account Protector: USDCHF Buy order #108755249; Lotsize = 4.25, OpenPrice = 0.9275, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 0.9270.
2020.07.23 14:32:06.035    Account Protector USDCHF,Daily: close #108755246 buy 1.27 Brent_Crude at 44.51 at price 44.10
2020.07.23 14:32:06.035    Account Protector USDCHF,Daily: Account Protector: Brent_Crude Buy order #108755246; Lotsize = 8.50, OpenPrice = 44.51, SL = 0.00, TP = 0.00 was partially closed (15%) at 44.10.
2020.07.23 14:32:06.167    Account Protector USDCHF,Daily: close #108755244 buy 1.27 GBPUSD at 1.2725 at price 1.2698
2020.07.23 14:32:06.167    Account Protector USDCHF,Daily: Account Protector: GBPUSD Buy order #108755244; Lotsize = 8.50, OpenPrice = 1.2725, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 1.2697.
2020.07.23 14:32:06.321    Account Protector USDCHF,Daily: close #108755242 buy 1.27 Copper at 2.9508 at price 2.9247
2020.07.23 14:32:06.321    Account Protector USDCHF,Daily: Account Protector: Copper Buy order #108755242; Lotsize = 8.50, OpenPrice = 2.9508, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 2.9247.
2020.07.23 14:32:06.468    Account Protector USDCHF,Daily: close #108755240 buy 1.27 Palladium at 2156.52 at price 2123.71
2020.07.23 14:32:06.468    Account Protector USDCHF,Daily: Account Protector: Palladium Buy order #108755240; Lotsize = 8.50, OpenPrice = 2156.52, SL = 0.00, TP = 0.00 was partially closed (15%) at 2123.71.
2020.07.23 14:32:59.794    Account Protector USDCHF,Daily: CONDITION IS MET: Floating loss rose to 15.00% of balance
2020.07.23 14:32:59.810    Account Protector USDCHF,Daily: Account Equity = 68398.39 USD, Account Free Margin = 25566.28 USD, Account Balance = 80562.96 USD
2020.07.23 14:32:59.810    Account Protector USDCHF,Daily: Floating loss = -12164.57 USD
2020.07.23 14:32:59.810    Account Protector USDCHF,Daily: Number of open positions = 10, Number of pending orders = 1, Current spread = 0.0000
2020.07.23 14:32:59.910    Account Protector USDCHF,Daily: ACTION IS TAKEN: Close positions (15% of Losing).
2020.07.23 14:33:00.057    Account Protector USDCHF,Daily: Account Protector: OrderClose Buy failed. Error #138
2020.07.23 14:33:00.189    Account Protector USDCHF,Daily: close #108755270 buy 1.08 Copper at 2.9508 at price 2.9243
2020.07.23 14:33:00.189    Account Protector USDCHF,Daily: Account Protector: Copper Buy order #108755270; Lotsize = 7.23, OpenPrice = 2.9508, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 2.9243.
2020.07.23 14:33:00.342    Account Protector USDCHF,Daily: close #108755268 buy 1.08 GBPUSD at 1.2725 at price 1.2698
2020.07.23 14:33:00.342    Account Protector USDCHF,Daily: Account Protector: GBPUSD Buy order #108755268; Lotsize = 7.23, OpenPrice = 1.2725, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 1.2698.
2020.07.23 14:33:00.511    Account Protector USDCHF,Daily: close #108755266 buy 1.08 Brent_Crude at 44.51 at price 44.10
2020.07.23 14:33:00.511    Account Protector USDCHF,Daily: Account Protector: Brent_Crude Buy order #108755266; Lotsize = 7.23, OpenPrice = 44.51, SL = 0.00, TP = 0.00 was partially closed (15%) at 44.10.
2020.07.23 14:33:00.643    Account Protector USDCHF,Daily: close #108755264 buy 0.54 USDCHF at 0.9275 at price 0.9271
2020.07.23 14:33:00.643    Account Protector USDCHF,Daily: Account Protector: USDCHF Buy order #108755264; Lotsize = 3.62, OpenPrice = 0.9275, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 0.9271.
2020.07.23 14:33:00.859    Account Protector USDCHF,Daily: close #108755272 buy 1.08 Palladium at 2156.52 at price 2117.65
2020.07.23 14:33:00.859    Account Protector USDCHF,Daily: Account Protector: Palladium Buy order #108755272; Lotsize = 7.23, OpenPrice = 2156.52, SL = 0.00, TP = 0.00 was partially closed (15%) at 2117.65.
2020.07.23 14:39:11.457    Account Protector USDCHF,Daily: CONDITION IS MET: Floating loss rose to 15.00% of balance
2020.07.23 14:39:11.457    Account Protector USDCHF,Daily: Account Equity = 62293.83 USD, Account Free Margin = 23532.48 USD, Account Balance = 75600.14 USD
2020.07.23 14:39:11.457    Account Protector USDCHF,Daily: Floating loss = -13306.31 USD
2020.07.23 14:39:11.457    Account Protector USDCHF,Daily: Number of open positions = 10, Number of pending orders = 1, Current spread = 0.0001
2020.07.23 14:39:11.542    Account Protector USDCHF,Daily: ACTION IS TAKEN: Close positions (15% of Losing).
2020.07.23 14:39:11.705    Account Protector USDCHF,Daily: close #108755340 buy 0.92 Palladium at 2156.52 at price 2119.51
2020.07.23 14:39:11.705    Account Protector USDCHF,Daily: Account Protector: Palladium Buy order #108755340; Lotsize = 6.15, OpenPrice = 2156.52, SL = 0.00, TP = 0.00 was partially closed (15%) at 2119.51.
2020.07.23 14:39:11.836    Account Protector USDCHF,Daily: close #108755338 buy 0.46 USDCHF at 0.9275 at price 0.9269
2020.07.23 14:39:11.836    Account Protector USDCHF,Daily: Account Protector: USDCHF Buy order #108755338; Lotsize = 3.08, OpenPrice = 0.9275, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 0.9269.
2020.07.23 14:39:12.006    Account Protector USDCHF,Daily: close #108755335 buy 0.92 Brent_Crude at 44.51 at price 44.07
2020.07.23 14:39:12.006    Account Protector USDCHF,Daily: Account Protector: Brent_Crude Buy order #108755335; Lotsize = 6.15, OpenPrice = 44.51, SL = 0.00, TP = 0.00 was partially closed (15%) at 44.07.
2020.07.23 14:39:12.137    Account Protector USDCHF,Daily: close #108755333 buy 0.92 GBPUSD at 1.2725 at price 1.2699
2020.07.23 14:39:12.137    Account Protector USDCHF,Daily: Account Protector: GBPUSD Buy order #108755333; Lotsize = 6.15, OpenPrice = 1.2725, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 1.2699.
2020.07.23 14:39:12.291    Account Protector USDCHF,Daily: close #108755330 buy 0.92 Copper at 2.9508 at price 2.9268
2020.07.23 14:39:12.291    Account Protector USDCHF,Daily: Account Protector: Copper Buy order #108755330; Lotsize = 6.15, OpenPrice = 2.9508, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 2.9268.

PS: I've noticed that you are sending me the mobile app screenshots. Do you have the AP actually running on your PC (VPS), which is turned on and connected to the trading server?

Does the 15% tally up exactly to the balance when it kicks in for the 2nd time?
It’s strange how it works great for the time, but any recurring time It doesn’t kick in when you want it too.
Maybe could you Post screenshots of your exact setup?
I am on my phone but the AP is set up on a VPS that’s currently running my live and demo account.
 

hounddog

Trader
Jul 23, 2020
14
0
6
29
I am not sure. I've just tested it and it triggered for the 4th time without any problems and intervention from my side:

Code:
2020.07.23 14:31:48.609    Account Protector USDCHF,Daily: CONDITION IS MET: Floating loss rose to 15.00% of balance
2020.07.23 14:31:48.609    Account Protector USDCHF,Daily: Account Equity = 76441.49 USD, Account Free Margin = 23169.89 USD, Account Balance = 91319.94 USD
2020.07.23 14:31:48.624    Account Protector USDCHF,Daily: Floating loss = -14878.45 USD
2020.07.23 14:31:48.624    Account Protector USDCHF,Daily: Number of open positions = 10, Number of pending orders = 1, Current spread = 0.0001
2020.07.23 14:31:48.709    Account Protector USDCHF,Daily: ACTION IS TAKEN: Close positions (15% of Losing).
2020.07.23 14:31:48.878    Account Protector USDCHF,Daily: close #108754166 buy 1.50 Palladium at 2156.52 at price 2125.86
2020.07.23 14:31:48.878    Account Protector USDCHF,Daily: Account Protector: Palladium Buy order #108754166; Lotsize = 10.00, OpenPrice = 2156.52, SL = 0.00, TP = 0.00 was partially closed (15%) at 2125.86.
2020.07.23 14:31:49.025    Account Protector USDCHF,Daily: close #108751715 buy 1.50 Copper at 2.9508 at price 2.9247
2020.07.23 14:31:49.025    Account Protector USDCHF,Daily: Account Protector: Copper Buy order #108751715; Lotsize = 10.00, OpenPrice = 2.9508, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 2.9247.
2020.07.23 14:31:49.179    Account Protector USDCHF,Daily: close #108750551 buy 1.50 GBPUSD at 1.2725 at price 1.2699
2020.07.23 14:31:49.179    Account Protector USDCHF,Daily: Account Protector: GBPUSD Buy order #108750551; Lotsize = 10.00, OpenPrice = 1.2725, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 1.2699.
2020.07.23 14:31:49.311    Account Protector USDCHF,Daily: close #108749627 buy 1.50 Brent_Crude at 44.51 at price 44.08
2020.07.23 14:31:49.311    Account Protector USDCHF,Daily: Account Protector: Brent_Crude Buy order #108749627; Lotsize = 10.00, OpenPrice = 44.51, SL = 0.00, TP = 0.00 was partially closed (15%) at 44.08.
2020.07.23 14:31:49.464    Account Protector USDCHF,Daily: close #108749442 buy 0.75 USDCHF at 0.9275 at price 0.9270
2020.07.23 14:31:49.464    Account Protector USDCHF,Daily: Account Protector: USDCHF Buy order #108749442; Lotsize = 5.00, OpenPrice = 0.9275, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 0.9270.
2020.07.23 14:32:05.619    Account Protector USDCHF,Daily: CONDITION IS MET: Floating loss rose to 15.00% of balance
2020.07.23 14:32:05.619    Account Protector USDCHF,Daily: Account Equity = 72146.41 USD, Account Free Margin = 24528.64 USD, Account Balance = 85635.70 USD
2020.07.23 14:32:05.619    Account Protector USDCHF,Daily: Floating loss = -13489.29 USD
2020.07.23 14:32:05.619    Account Protector USDCHF,Daily: Number of open positions = 10, Number of pending orders = 1, Current spread = 0.0000
2020.07.23 14:32:05.735    Account Protector USDCHF,Daily: ACTION IS TAKEN: Close positions (15% of Losing).
2020.07.23 14:32:05.888    Account Protector USDCHF,Daily: close #108755249 buy 0.63 USDCHF at 0.9275 at price 0.9270
2020.07.23 14:32:05.888    Account Protector USDCHF,Daily: Account Protector: USDCHF Buy order #108755249; Lotsize = 4.25, OpenPrice = 0.9275, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 0.9270.
2020.07.23 14:32:06.035    Account Protector USDCHF,Daily: close #108755246 buy 1.27 Brent_Crude at 44.51 at price 44.10
2020.07.23 14:32:06.035    Account Protector USDCHF,Daily: Account Protector: Brent_Crude Buy order #108755246; Lotsize = 8.50, OpenPrice = 44.51, SL = 0.00, TP = 0.00 was partially closed (15%) at 44.10.
2020.07.23 14:32:06.167    Account Protector USDCHF,Daily: close #108755244 buy 1.27 GBPUSD at 1.2725 at price 1.2698
2020.07.23 14:32:06.167    Account Protector USDCHF,Daily: Account Protector: GBPUSD Buy order #108755244; Lotsize = 8.50, OpenPrice = 1.2725, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 1.2697.
2020.07.23 14:32:06.321    Account Protector USDCHF,Daily: close #108755242 buy 1.27 Copper at 2.9508 at price 2.9247
2020.07.23 14:32:06.321    Account Protector USDCHF,Daily: Account Protector: Copper Buy order #108755242; Lotsize = 8.50, OpenPrice = 2.9508, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 2.9247.
2020.07.23 14:32:06.468    Account Protector USDCHF,Daily: close #108755240 buy 1.27 Palladium at 2156.52 at price 2123.71
2020.07.23 14:32:06.468    Account Protector USDCHF,Daily: Account Protector: Palladium Buy order #108755240; Lotsize = 8.50, OpenPrice = 2156.52, SL = 0.00, TP = 0.00 was partially closed (15%) at 2123.71.
2020.07.23 14:32:59.794    Account Protector USDCHF,Daily: CONDITION IS MET: Floating loss rose to 15.00% of balance
2020.07.23 14:32:59.810    Account Protector USDCHF,Daily: Account Equity = 68398.39 USD, Account Free Margin = 25566.28 USD, Account Balance = 80562.96 USD
2020.07.23 14:32:59.810    Account Protector USDCHF,Daily: Floating loss = -12164.57 USD
2020.07.23 14:32:59.810    Account Protector USDCHF,Daily: Number of open positions = 10, Number of pending orders = 1, Current spread = 0.0000
2020.07.23 14:32:59.910    Account Protector USDCHF,Daily: ACTION IS TAKEN: Close positions (15% of Losing).
2020.07.23 14:33:00.057    Account Protector USDCHF,Daily: Account Protector: OrderClose Buy failed. Error #138
2020.07.23 14:33:00.189    Account Protector USDCHF,Daily: close #108755270 buy 1.08 Copper at 2.9508 at price 2.9243
2020.07.23 14:33:00.189    Account Protector USDCHF,Daily: Account Protector: Copper Buy order #108755270; Lotsize = 7.23, OpenPrice = 2.9508, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 2.9243.
2020.07.23 14:33:00.342    Account Protector USDCHF,Daily: close #108755268 buy 1.08 GBPUSD at 1.2725 at price 1.2698
2020.07.23 14:33:00.342    Account Protector USDCHF,Daily: Account Protector: GBPUSD Buy order #108755268; Lotsize = 7.23, OpenPrice = 1.2725, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 1.2698.
2020.07.23 14:33:00.511    Account Protector USDCHF,Daily: close #108755266 buy 1.08 Brent_Crude at 44.51 at price 44.10
2020.07.23 14:33:00.511    Account Protector USDCHF,Daily: Account Protector: Brent_Crude Buy order #108755266; Lotsize = 7.23, OpenPrice = 44.51, SL = 0.00, TP = 0.00 was partially closed (15%) at 44.10.
2020.07.23 14:33:00.643    Account Protector USDCHF,Daily: close #108755264 buy 0.54 USDCHF at 0.9275 at price 0.9271
2020.07.23 14:33:00.643    Account Protector USDCHF,Daily: Account Protector: USDCHF Buy order #108755264; Lotsize = 3.62, OpenPrice = 0.9275, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 0.9271.
2020.07.23 14:33:00.859    Account Protector USDCHF,Daily: close #108755272 buy 1.08 Palladium at 2156.52 at price 2117.65
2020.07.23 14:33:00.859    Account Protector USDCHF,Daily: Account Protector: Palladium Buy order #108755272; Lotsize = 7.23, OpenPrice = 2156.52, SL = 0.00, TP = 0.00 was partially closed (15%) at 2117.65.
2020.07.23 14:39:11.457    Account Protector USDCHF,Daily: CONDITION IS MET: Floating loss rose to 15.00% of balance
2020.07.23 14:39:11.457    Account Protector USDCHF,Daily: Account Equity = 62293.83 USD, Account Free Margin = 23532.48 USD, Account Balance = 75600.14 USD
2020.07.23 14:39:11.457    Account Protector USDCHF,Daily: Floating loss = -13306.31 USD
2020.07.23 14:39:11.457    Account Protector USDCHF,Daily: Number of open positions = 10, Number of pending orders = 1, Current spread = 0.0001
2020.07.23 14:39:11.542    Account Protector USDCHF,Daily: ACTION IS TAKEN: Close positions (15% of Losing).
2020.07.23 14:39:11.705    Account Protector USDCHF,Daily: close #108755340 buy 0.92 Palladium at 2156.52 at price 2119.51
2020.07.23 14:39:11.705    Account Protector USDCHF,Daily: Account Protector: Palladium Buy order #108755340; Lotsize = 6.15, OpenPrice = 2156.52, SL = 0.00, TP = 0.00 was partially closed (15%) at 2119.51.
2020.07.23 14:39:11.836    Account Protector USDCHF,Daily: close #108755338 buy 0.46 USDCHF at 0.9275 at price 0.9269
2020.07.23 14:39:11.836    Account Protector USDCHF,Daily: Account Protector: USDCHF Buy order #108755338; Lotsize = 3.08, OpenPrice = 0.9275, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 0.9269.
2020.07.23 14:39:12.006    Account Protector USDCHF,Daily: close #108755335 buy 0.92 Brent_Crude at 44.51 at price 44.07
2020.07.23 14:39:12.006    Account Protector USDCHF,Daily: Account Protector: Brent_Crude Buy order #108755335; Lotsize = 6.15, OpenPrice = 44.51, SL = 0.00, TP = 0.00 was partially closed (15%) at 44.07.
2020.07.23 14:39:12.137    Account Protector USDCHF,Daily: close #108755333 buy 0.92 GBPUSD at 1.2725 at price 1.2699
2020.07.23 14:39:12.137    Account Protector USDCHF,Daily: Account Protector: GBPUSD Buy order #108755333; Lotsize = 6.15, OpenPrice = 1.2725, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 1.2699.
2020.07.23 14:39:12.291    Account Protector USDCHF,Daily: close #108755330 buy 0.92 Copper at 2.9508 at price 2.9268
2020.07.23 14:39:12.291    Account Protector USDCHF,Daily: Account Protector: Copper Buy order #108755330; Lotsize = 6.15, OpenPrice = 2.9508, SL = 0.0000, TP = 0.0000 was partially closed (15%) at 2.9268.

PS: I've noticed that you are sending me the mobile app screenshots. Do you have the AP actually running on your PC (VPS), which is turned on and connected to the trading server?

Can you help me undertand the math equation of it? Because from the first trigger it doesn’t add up?

15% of 91319 is 13697.

However it didn’t trigger until 14878

thanks

Lewis
 

Enivid

Administrator
Staff member
Nov 30, 2008
14,204
636
144
Odessa
www.earnforex.com
Can you help me undertand the math equation of it? Because from the first trigger it doesn’t add up?

15% of 91319 is 13697.

However it didn’t trigger until 14878

thanks

Lewis

The math equation is pretty straightforward:
MQL4:
floating_profit <= -AccountInfoDouble(ACCOUNT_BALANCE) * sets.doubleLossPerBalance / 100

It can happen when on the previous check the floating loss was less than 15% but on the next check it is more than 15%.

The floating loss doesn't change gradually, it changes in chunks. How big those chunks are depends on the position sizes involved and the movement in pips per tick experienced by the trading instruments.

The checks are also performed at discrete points - on each tick of the chart AP is attached to and on each second. If you have some positions that are not on the same symbol AP is attached to, it will not react to the ticks generated on that symbol, it will only do checks every second plus on each tick of the symbol AP is attached to.
 

ayylmao23

Newbie
Jul 22, 2020
9
0
1
51
Could you please check for connection issues in the Journal tab of your MT4 on the VPS? The Journal tab reports when there are disconnects/reconnections.

I have the same problem. The connection is fine. It doesn't trigger the condition after its more than 15%
 

hounddog

Trader
Jul 23, 2020
14
0
6
29
The math equation is pretty straightforward:
MQL4:
floating_profit <= -AccountInfoDouble(ACCOUNT_BALANCE) * sets.doubleLossPerBalance / 100

It can happen when on the previous check the floating loss was less than 15% but on the next check it is more than 15%.

The floating loss doesn't change gradually, it changes in chunks. How big those chunks are depends on the position sizes involved and the movement in pips per tick experienced by the trading instruments.

The checks are also performed at discrete points - on each tick of the chart AP is attached to and on each second. If you have some positions that are not on the same symbol AP is attached to, it will not react to the ticks generated on that symbol, it will only do checks every second plus on each tick of the symbol AP is attached to.

So as per my log file, would you of expected the 2nd lot of 15% to be triggered by now?
Just can’t get my head around why the gap is so big.
I Havnt touched anything since it triggered the first time.
 

Attachments

  • 03282659-C54F-4FD1-851D-0F15DAFFD1D6.png
    03282659-C54F-4FD1-851D-0F15DAFFD1D6.png
    153.1 KB · Views: 1

Enivid

Administrator
Staff member
Nov 30, 2008
14,204
636
144
Odessa
www.earnforex.com
I have the same problem. The connection is fine. It doesn't trigger the condition after its more than 15%

So as per my log file, would you of expected the 2nd lot of 15% to be triggered by now?
Just can’t get my head around why the gap is so big.
I Havnt touched anything since it triggered the first time.

You can replace your Account Protector.mqh with the attached one and then recompile Account Protector.mq4. It will start logging the values of floating loss and of its calculate % of balance required to trigger. This will shed some light on what's going on.
 

Attachments

  • Account Protector.mqh
    328 KB · Views: 3

ayylmao23

Newbie
Jul 22, 2020
9
0
1
51
You can replace your Account Protector.mqh with the attached one and then recompile Account Protector.mq4. It will start logging the values of floating loss and of its calculate % of balance required to trigger. This will shed some light on what's going on.

I've just done this. Will let it run and let you know
 

hounddog

Trader
Jul 23, 2020
14
0
6
29
hi please check this new log file, AP seems to be going crazy right now. And it’s not taken any thing off the trades.

I am yet to try what you have suggested as I am not at home yet. But just thought I would show you what I am currently dealing with.
Thanks
Lewis
 

Attachments

  • New Compressed (zipped) Folder.zip
    1.4 MB · Views: 1

Enivid

Administrator
Staff member
Nov 30, 2008
14,204
636
144
Odessa
www.earnforex.com
hi please check this new log file, AP seems to be going crazy right now. And it’s not taken any thing off the trades.

I am yet to try what you have suggested as I am not at home yet. But just thought I would show you what I am currently dealing with.
Thanks
Lewis
According to this log file, it doesn't even proceed to actually closing the trades, but it detects the triggering condition correctly. I.e., it triggers but it doesn't close anything. What's the output in the Experts tab? Any errors or messages regarding orders?
 

Enivid

Administrator
Staff member
Nov 30, 2008
14,204
636
144
Odessa
www.earnforex.com
hi please check this new log file, AP seems to be going crazy right now. And it’s not taken any thing off the trades.

I am yet to try what you have suggested as I am not at home yet. But just thought I would show you what I am currently dealing with.
Thanks
Lewis

Most likely, the problem arises from one of these checks:
MQL4:
if ((!TerminalInfoInteger(TERMINAL_TRADE_ALLOWED)) || (!TerminalInfoInteger(TERMINAL_CONNECTED)) || (!MQLInfoInteger(MQL_TRADE_ALLOWED))) return;
It means that either Autotrading is disabled (globally or specifically for AP) or that there is connection (which is unlikely considering that AP was able to update account balance value), or that trading is disabled for the given symbol, or that autotrading is disabled by the broker.