1 (edited by jgp 2012-03-21 17:37:24)

Topic: Multiple Unwanted Adds to a Position

here are taken from FXCM new MT4 platform account an inital EURUSD entry followed by 4-5 virtually identical date/time/price entries, all entered despite the "enter only once per bar' requirement
1605651 2012.03.20 14:05 buy 0.01 eurusd 1.32335 1.31618 1.32795 2012.03.21 02:35 1.32795 0.00 0.00 0.00 4.60
  11 ID = 11[tp]
1606227 2012.03.20 14:15 buy 0.01 eurusd 1.32438 1.31618 1.32795 2012.03.21 02:35 1.32795 0.00 0.00 0.00 3.57
  11 ID = 11[tp]
1606236 2012.03.20 14:15 buy 0.01 eurusd 1.32426 1.31618 1.32795 2012.03.21 02:35 1.32795 0.00 0.00 0.00 3.69
  11 ID = 11[tp]
1606240 2012.03.20 14:16 buy 0.01 eurusd 1.32431 1.31618 1.32795 2012.03.21 02:35 1.32795 0.00 0.00 0.00 3.64
  11 ID = 11[tp]
1606241 2012.03.20 14:16 buy 0.01 eurusd 1.32426 1.31618 1.32795 2012.03.21 02:35 1.32795 0.00 0.00 0.00 3.69
  11 ID = 11[tp]
1606243 2012.03.20 14:16 buy 0.01 eurusd 1.32430 1.31618 1.32795 2012.03.21 02:35 1.32795 0.00 0.00 0.00 3.65
  11 ID = 11[tp]
1606245 2012.03.20 14:16 buy 0.01 eurusd 1.32431 1.31618 1.32795 2012.03.21 02:35 1.32795 0.00 0.00 0.00 3.64
  11 
My own view it is probably more important to somehow modify the 'Winner' conditionand perhaps the 'Add' condition so that there has to be 10-20 pips difference in the entry price to constitute a 'winner' or 'loser'.  that would solve for me the multiple virtually identical date/time/price entries.  ---Sorry.  Don't know how to upload the equivalent FST Journal.---

Re: Multiple Unwanted Adds to a Position

Here is Strategy for Above Post
Forex Strategy Trader v1.4.8.0
Strategy name: 312-1_EURUSD_15mAddDuceLngOnlyRnd2NbrFishBelo0Clos785SL385TP
Exported on: 3/21/2012 10:29:06 AM

Description
Automatically generated on 3/11/2012 8:07 PM.
Out of sample testing, percent of OOS bars: 30%
Balance: 5338.99 USD (1/27/2012 10:45 PM  Bar: 450)

Maximum open lots: 0.2
Entry lots: 0.01
Adding lots: 0.01
Reducing lots: 0.2

A same direction signal - Adds to the position
An opposite direction signal - Reduces the position
Permanent Stop Loss - None
Permanent Take Profit - None
Break Even - None

[Opening Point of the Position]
Round Number
     Enter long at the higher round number
     Vertical shift  -  6
     Digits  -  2

[Opening Logic Condition]
Fisher Transform
     [ A ]   The Fisher Transform is lower than the zero line
     Base price  -  Close
     Period  -  85
     Use previous bar value  -  Yes

[Opening Logic Condition]
Enter Once
     [All]   Enter no more than once a bar

[Opening Logic Condition]
Long or Short
     [All]   Open long positions only

[Opening Logic Condition]
Entry Time
     [All]   Enter the market between the specified hours
     From hour (incl.)  -  2
     From min (incl.)  -  0
     Until hour (excl.)  -  23
     Until min( excl.)  -  0

[Closing Point of the Position]
Stop Limit
     Exit at the Stop Loss or the Take Profit level
     Stop Loss  -  785
     Take Profit  -  392

Re: Multiple Unwanted Adds to a Position

EDIT Upper posts was split from other topic!

Issue: FST doesn't see that add order was executed and re-execute it again and again several times.

Did someone experience such behavior with other broker?

Re: Multiple Unwanted Adds to a Position

It happens to me on quad-core PC with both Alpari-US and with the new "no-dealing-desk' FXCM MT4 platforms when either "Add" or "Winner" strategies. May happen with all ECN brokers?? By the way, what is LateStop List??

Re: Multiple Unwanted Adds to a Position

I think that these multiple entries are a broker or MT issue. I'm running now a debug version of the expert on FXCM ECN demo and everything is normal.
How frequently this issue happens to you?

...

I'll open a separate topic about  LateStop or Separate_SL_TP

6 (edited by jgp 2012-04-02 15:56:47)

Re: Multiple Unwanted Adds to a Position

It essentially happens all the time on FXCM and Alpari US MT4 demos and live accounts.
Here is today's FXCM
Account: 2048278652 Name: FXCM1Apr Currency: USD 2012 April 2, 14:46
Closed Transactions:
Ticket Open Time Type Size Item Price S / L T / P Close Time Price Commission Taxes Swap Profit
1862441 2012.04.01 21:25 balance Deposit 5 000.00
1862992 2012.04.01 22:16 sell 0.01 eurchf 1.20429 1.20784 1.20094 2012.04.01 23:59 1.20417 0.00 0.00 0.00 0.13
  33 ID = 33
1863241 2012.04.01 22:35 sell 0.02 eurchf 1.20436 1.20784 1.20094 2012.04.02 00:00 1.20417 0.00 0.00 0.00 0.42
  33 ID = 33
1863245 2012.04.01 22:35 sell 0.02 eurchf 1.20436 1.20784 1.20094 2012.04.02 00:00 1.20417 0.00 0.00 0.00 0.42
  33 ID = 33
1867496 2012.04.02 02:20 buy 0.01 eurusd 1.33437 1.32725 1.33906 2012.04.02 06:59 1.33460 0.00 0.00 0.00 0.23
  11 ID = 11
1868628 2012.04.02 05:01 buy 0.01 eurusd 1.33434 1.32725 1.33906 2012.04.02 06:59 1.33460 0.00 0.00 0.00 0.26
  11 ID = 11
1868849 2012.04.02 05:13 buy 0.01 eurusd 1.33439 1.32725 1.33906 2012.04.02 07:00 1.33462 0.00 0.00 0.00 0.23
  11 ID = 11
1868839 2012.04.02 05:12 buy 0.01 eurusd 1.33430 1.32725 1.33906 2012.04.02 07:00 1.33459 0.00 0.00 0.00 0.29
  11 ID = 11
1868848 2012.04.02 05:13 buy 0.01 eurusd 1.33432 1.32725 1.33906 2012.04.02 07:00 1.33459 0.00 0.00 0.00 0.27
  11 ID = 11
1868853 2012.04.02 05:13 buy 0.01 eurusd 1.33434 1.32725 1.33906 2012.04.02 07:00 1.33463 0.00 0.00 0.00 0.29
  11 ID = 11
1868854 2012.04.02 05:13 buy 0.01 eurusd 1.33433 1.32725 1.33906 2012.04.02 07:00 1.33463 0.00 0.00 0.00 0.30
  11 ID = 11
1868856 2012.04.02 05:14 buy 0.01 eurusd 1.33435 1.32725 1.33906 2012.04.02 07:00 1.33463 0.00 0.00 0.00 0.28
  11 ID = 11
1868857 2012.04.02 05:14 buy 0.01 eurusd 1.33434 1.32725 1.33906 2012.04.02 07:00 1.33463 0.00 0.00 0.00 0.29
  11 ID = 11
1869028 2012.04.02 05:40 buy 0.01 eurusd 1.33433 1.32725 1.33906 2012.04.02 07:00 1.33466 0.00 0.00 0.00 0.33
  11 ID = 11
1868859 2012.04.02 05:14 buy 0.01 eurusd 1.33435 1.32725 1.33906 2012.04.02 07:00 1.33463 0.00 0.00 0.00 0.28
  11 ID = 11
1869021 2012.04.02 05:40 buy 0.01 eurusd 1.33435 1.32725 1.33906 2012.04.02 07:00 1.33463 0.00 0.00 0.00 0.28
  11 ID = 11
1869031 2012.04.02 05:41 buy 0.01 eurusd 1.33434 1.32725 1.33906 2012.04.02 07:00 1.33467 0.00 0.00 0.00 0.33
  11 ID = 11
1869223 2012.04.02 06:08 buy 0.01 eurusd 1.33438 1.32725 1.33906 2012.04.02 07:00 1.33468 0.00 0.00 0.00 0.30
  11 ID = 11
1869225 2012.04.02 06:08 buy 0.01 eurusd 1.33432 1.32725 1.33906 2012.04.02 07:00 1.33471 0.00 0.00 0.00 0.39
  11 ID = 11
1869226 2012.04.02 06:08 buy 0.01 eurusd 1.33436 1.32725 1.33906 2012.04.02 07:00 1.33473 0.00 0.00 0.00 0.37
  11 ID = 11
1869251 2012.04.02 06:10 buy 0.01 eurusd 1.33433 1.32725 1.33906 2012.04.02 07:00 1.33473 0.00 0.00 0.00 0.40
  11 ID = 11
1869246 2012.04.02 06:10 buy 0.01 eurusd 1.33421 1.32725 1.33906 2012.04.02 07:00 1.33473 0.00 0.00 0.00 0.52
  11 ID = 11
1869250 2012.04.02 06:10 buy 0.01 eurusd 1.33433 1.32725 1.33906 2012.04.02 07:00 1.33473 0.00 0.00 0.00 0.40
  11 ID = 11
1869609 2012.04.02 06:30 buy 0.01 eurusd 1.33538 1.32725 1.33906 2012.04.02 07:00 1.33473 0.00 0.00 0.00 -0.65
  11 ID = 11
  0.00 0.00 0.00 6.36
Closed P/L: 6.36
Open Trades:
Ticket Open Time Type Size Item Price S / L T / P   Price Commission Taxes Swap Profit
1868070 2012.04.02 03:37 buy 0.01 eurchf 1.20467 1.20065 1.20755   1.20394 0.00 0.00 0.00 -0.80
  33 ID = 33
1868545 2012.04.02 04:53 buy 0.02 eurchf 1.20417 1.20065 1.20755   1.20394 0.00 0.00 0.00 -0.51
  33 ID = 33
1868546 2012.04.02 04:53 buy 0.02 eurchf 1.20417 1.20065 1.20755   1.20394 0.00 0.00 0.00 -0.51
  33 ID = 33
1868718 2012.04.02 05:03 buy 0.02 eurchf 1.20413 1.20065 1.20755   1.20394 0.00 0.00 0.00 -0.42
  33 ID = 33
1868724 2012.04.02 05:04 buy 0.02 eurchf 1.20416 1.20065 1.20755   1.20394 0.00 0.00 0.00 -0.49
  33 ID = 33
1878351 2012.04.02 12:17 buy 0.01 eurusd 1.33229 1.32215 1.33396   1.32919 0.00 0.00 0.00 -3.10
  11 ID = 11
1878977 2012.04.02 12:46 buy 0.01 eurusd 1.33233 1.32215 1.33396   1.32919 0.00 0.00 0.00 -3.14
  11 ID = 11
1879013 2012.04.02 12:47 buy 0.01 eurusd 1.33230 1.32215 1.33396   1.32919 0.00 0.00 0.00 -3.11
  11 ID = 11
1879019 2012.04.02 12:48 buy 0.01 eurusd 1.33234 1.32215 1.33396   1.32919 0.00 0.00 0.00 -3.15
  11 ID = 11
1879020 2012.04.02 12:48 buy 0.01 eurusd 1.33233 1.32215 1.33396   1.32919 0.00 0.00 0.00 -3.14
  11 ID = 11
1879022 2012.04.02 12:48 buy 0.01 eurusd 1.33227 1.32215 1.33396   1.32919 0.00 0.00 0.00 -3.08
  11 ID = 11
1879028 2012.04.02 12:49 buy 0.01 eurusd 1.33231 1.32215 1.33396   1.32919 0.00 0.00 0.00 -3.12
  11 ID = 11
1879034 2012.04.02 12:49 buy 0.01 eurusd 1.33231 1.32215 1.33396   1.32919 0.00 0.00 0.00 -3.12
  11 ID = 11
1879045 2012.04.02 12:50 buy 0.01 eurusd 1.33232 1.32215 1.33396   1.32919 0.00 0.00 0.00 -3.13
  11 ID = 11
1880697 2012.04.02 13:39 buy 0.01 eurusd 1.32930 1.32215 1.33396   1.32919 0.00 0.00 0.00 -0.11
  11 ID = 11
1880704 2012.04.02 13:39 buy 0.01 eurusd 1.32928 1.32215 1.33396   1.32919 0.00 0.00 0.00 -0.09
  11 ID = 11
1880708 2012.04.02 13:39 buy 0.01 eurusd 1.32934 1.32215 1.33396   1.32919 0.00 0.00 0.00 -0.15
  11 ID = 11
1880710 2012.04.02 13:39 buy 0.01 eurusd 1.32933 1.32215 1.33396   1.32919 0.00 0.00 0.00 -0.14
  11 ID = 11
1880712 2012.04.02 13:39 buy 0.01 eurusd 1.32931 1.32215 1.33396   1.32919 0.00 0.00 0.00 -0.12
  11 ID = 11
1880723 2012.04.02 13:40 buy 0.01 eurusd 1.32933 1.32215 1.33396   1.32919 0.00 0.00 0.00 -0.14
  11 ID = 11
1881712 2012.04.02 14:07 buy 0.01 eurusd 1.33032 1.32215 1.33396   1.32919 0.00 0.00 0.00 -1.13
  11 ID = 11
1881714 2012.04.02 14:07 buy 0.01 eurusd 1.33032 1.32215 1.33396   1.32919 0.00 0.00 0.00 -1.13
  11 ID = 11
1882029 2012.04.02 14:18 buy 0.01 eurusd 1.33033 1.32215 1.33396   1.32919 0.00 0.00 0.00 -1.14
  11 ID = 11
1882035 2012.04.02 14:18 buy 0.01 eurusd 1.33030 1.32215 1.33396   1.32919 0.00 0.00 0.00 -1.11

AND here is today's Alpari-US
Alpari (US), LLC.

Account: 1253398 Name: 1AprAlpari Currency: USD 2012 April 2, 17:51
Closed Transactions:
Ticket Open Time Type Size Item Price S / L T / P Close Time Price Commission Taxes Swap Profit
18976909 2012.04.02 04:57 buy 0.01 usdchf 0.90321 0.90321 0.90677 2012.04.02 16:10 0.90677 0.00 0.00 0.00 3.93
  2 ID = 2[tp]
18975945 2012.04.02 00:23 balance Deposit 5 000.00
  0.00 0.00 0.00 3.93
Closed P/L: 3.93
Open Trades:
Ticket Open Time Type Size Item Price S / L T / P   Price Commission Taxes Swap Profit
18975984 2012.04.02 00:31 buy 0.01 eurchf 1.20432 1.20070 1.20760   1.20391 0.00 0.00 0.00 -0.46
  3 ID = 3
18976089 2012.04.02 01:00 sell 0.01 eurusd 1.33578 1.35360 1.32594   1.33002 0.00 0.00 0.00 5.76
  101 ID = 101
18977255 2012.04.02 07:28 buy 0.01 eurchf 1.20426 1.20070 1.20760   1.20391 0.00 0.00 0.00 -0.39
  3 ID = 3
18977269 2012.04.02 07:32 buy 0.01 eurchf 1.20424 1.20070 1.20760   1.20391 0.00 0.00 0.00 -0.37
  3 ID = 3
18977272 2012.04.02 07:32 buy 0.01 eurchf 1.20424 1.20070 1.20760   1.20391 0.00 0.00 0.00 -0.37
  3 ID = 3
18977301 2012.04.02 07:45 buy 0.01 eurchf 1.20421 1.20070 1.20760   1.20391 0.00 0.00 0.00 -0.34
  3 ID = 3
18977302 2012.04.02 07:46 buy 0.01 eurchf 1.20422 1.20070 1.20760   1.20391 0.00 0.00 0.00 -0.35
  3 ID = 3
18977303 2012.04.02 07:47 buy 0.01 eurchf 1.20421 1.20070 1.20760   1.20391 0.00 0.00 0.00 -0.34
  3 ID = 3
18977305 2012.04.02 07:47 buy 0.01 eurchf 1.20421 1.20070 1.20760   1.20391 0.00 0.00 0.00 -0.34
  3 ID = 3
18977349 2012.04.02 08:03 buy 0.01 eurchf 1.20412 1.20070 1.20760   1.20391 0.00 0.00 0.00 -0.24
  3 ID = 3
18977350 2012.04.02 08:03 buy 0.01 eurchf 1.20412 1.20070 1.20760   1.20391 0.00 0.00 0.00 -0.24
  3 ID = 3
  0.00 0.00 0.00 2.32
  Floating P/L: 2.32
Working Orders:
Ticket Open Time Type Size Item Price S / L T / P Market Price   
No transactions
 
Summary:
Deposit/Withdrawal: 5 000.00 Credit Facility: 0.00   
Closed Trade P/L: 3.93 Floating P/L: 2.32 Margin: 293.54
Balance: 5 003.93 Equity: 5 006.25 Free Margin: 4 712.71

I don't know how to post FST Journals on Forum

Re: Multiple Unwanted Adds to a Position

I just added Save function to FST journal.
I'll add also a debug mode to the expert in order to find what is the reason for this issue.

Is this problem happens when you use Add or Winning mode or also with initial opening?

Can other users confirm this issue?

Re: Multiple Unwanted Adds to a Position

it does not occur on initial entry.  But it does occurs with both ADD and Winner strategies on various instruments on various time frames on demo accounts.  It does not occur with FSB [10:1]. It seems to have begun with recent 2012 modifications to FST.   It's worse on new FXCM 'no dealing desk' MT4 demo [50:1, apparently fixed for US] than on Alpari(US) [10:1] demo when identical FSB-FST [10:1] strategies are employed on identical charts. Original entries on both platforms usually occur at approximately same time, but not always, or even in the same direction. The multiple addition problem is much much less for Alpari(US) demos when identical FSB-FST [10:1] strategies are run on my dual-core PC running WinXP than run at same time with identical data stream on my quad-core PC running Win7.  Both PCs are 'hard wired' to my DSL router. I have live accounts at both Alpari(US) and FXCM but am afraid to use them even though quad-core demos usually show profits.   Thanks for taking seriously this recently developing [for me] problem.

Re: Multiple Unwanted Adds to a Position

We have to find the reason for that problem. I'll make add debug info to the expert in order to catch the conditions when that happens.

You have not trade live until we fix this. I'm testing now the new expert and will post FST with it tomorrow. I'll check if the expert can write a log file with detailed debug info.

10 (edited by jgp 2012-04-02 21:48:38)

Re: Multiple Unwanted Adds to a Position

It probably doesn't matter, but both Demos and FSBv2.6.8 and FSTv1.4.8 are loaded and run on Win7 32 bit ProgramFiles (86) --- here follows EURCHF 15m strategy [magicnumber 33] presently being executed on FXCM ---- Magicnumber 3 on Alpari

Forex Strategy Trader v1.4.8.0
Strategy name: 322-3_EURCHF_15mAddNuthLngLwrDonch314sl376tp227beDayClosBBpvAbvLvlForceAbv0
Exported on: 4/2/2012 2:30:49 PM

Description
   None.

Maximum open lots: 0.1
Entry lots: 0.01
Adding lots: 0.02
Reducing lots: 0.1

A same direction signal - Adds to the position
An opposite direction signal - Does nothing
Permanent Stop Loss - 314
Permanent Take Profit - 376
Break Even - 227

[Opening Point of the Position]
Donchian Channel
     Enter long at the Lower Band
     Base price  -  High & Low
     Period  -  10
     Shift  -  0
     Use previous bar value  -  Yes

[Opening Logic Condition]
Enter Once
     [All]   Enter no more than once a bar

[Closing Point of the Position]
Day Closing
     Exit the market at the end of the day
     Base price  -  Close

[Closing Logic Condition]
Percent BB
     [ a ]   The %BB crosses the Level line downward
     Smoothing method  -  Simple
     Base price  -  Weighted
     MA period  -  20
     Multiplier  -  2.00
     Level  -  80
     Use previous bar value  -  No

[Closing Logic Condition]
Force Index
     [ b ]   The Force Index is higher than the zero line
     Smoothing method  -  Exponential
     Base price  -  Close
     Period  -  13
     Use previous bar value  -  No 

modified for FXCM so as to require .02 lots for addition, left at .01 lots for Alpari

Re: Multiple Unwanted Adds to a Position

I'm sure we'll fix the problem.

Re: Multiple Unwanted Adds to a Position

Only to be sure, you put different Connection_ID numbers to each expert, right? And you do not restart or compile the expert during the trading or do not close the chart or MT.

I'm testing FXCM US Demo now and cannot reproduce this issue. Tomorrow I'll post FST with exportable journal and Expert with detailed log file.

13 (edited by jgp 2012-04-03 06:34:35)

Re: Multiple Unwanted Adds to a Position

I do put different magic numbers on each strategy;  for example, 33 for EURCHF M15 on FXCM,  3 for identical strategy attached to EURCHF M15 on Alpari.  During weekends, only, using the platform's navigator "open new account" command, I usually open 'new' identical accounts after saving the previous weeks account history to appropriate "history" files in appropriate MT4 files in ProgramFile(86). I sometimes save Account History files while the accounts are running to post them on the forum.  On weekends, I always stop Automatic Execution on the old account charts and restart Automatic Execution on the new ones.  Sometimes, on weekends, which turns out to be unnecessary, I even remove the experts from the old charts and reinstall them with the same or updated strategies before restarting AutoExecution.  Unnecessary, because that doesn't fix the multiple entry problem.   As i said, the misbehaving AEs are almost always profitable. Is it possible that the 'close 0.2 lots' command when only 0.02 lots have been opened is causing the trouble on US non-hedge accounts??

14 (edited by Popov 2012-04-06 20:45:17)

Re: Multiple Unwanted Adds to a Position

Ok.
Lets see what happens.
Start the attached expert on several charts on a demo account.

Set expert property Debug_Mode = true

http://s16.postimage.org/h4zeof6b5/4_3_2012_9_29_36_AM.jpg

The expert will open a log file for each chart.
The log files are under your MT directory: MTPATH\experts\files
For Win 7 and Vista, you have to go to "Compatibility files"

http://s8.postimage.org/60xtw13ox/4_3_2012_9_31_48_AM.jpg


http://s13.postimage.org/57i1z0moj/4_3_2012_9_34_23_AM.jpg


The expert adds a record after each FST request

FST Request: Reverse the current position.
2012.04.03 06:14:00,EURUSD iargs[0]=0 iargs[1]=75 iargs[2]=0 iargs[3]=0 iargs[4]=0 dargs[0]=0.02000 dargs[1]=1.33487 dargs[2]=2000.00000 dargs[3]=2000.00000 dargs[4]=0.00000 TS0=0;BRE=0
2012.04.03 06:14:01,ClosePositionByTicket OrderClose orderResponse = 1 LastError = 0
2012.04.03 06:14:02,SendOrder OrderSend(EURUSD, 0, Lots=0.01, Price=1.33487, Slippage=75, StopLoss=1.31461, TakeProfit=1.35461, "ID = 100", Magic=20011023) Response=1897139 LastError=0
2012.04.03 06:14:02,OpenNewPosition SendOrder orderResponse=1897139
2012.04.03 06:14:02,AggregatePosition Ticket=1897139, Type=Long, Time=06:14:02, OpenPrice=1.33487, Lots=0.01, Profit=-0.25, Commission=0.00, StopLoss=1.31461, TakeProfit=1.35461, "ID = 100"

FST Request: Add to the current position.
2012.04.03 06:15:00,EURUSD iargs[0]=0 iargs[1]=81 iargs[2]=0 iargs[3]=0 iargs[4]=0 dargs[0]=0.02000 dargs[1]=1.33483 dargs[2]=2000.00000 dargs[3]=2000.00000 dargs[4]=0.00000 TS0=0;BRE=0
2012.04.03 06:15:01,SendOrder OrderSend(EURUSD, 0, Lots=0.02, Price=1.33483, Slippage=81, StopLoss=1.31456, TakeProfit=1.35456, "ID = 100", Magic=20011023) Response=1897146 LastError=0
2012.04.03 06:15:01,OpenNewPosition SendOrder orderResponse=1897146
2012.04.03 06:15:01,AggregatePosition Ticket=1897146, Type=Long, Time=06:14:02, OpenPrice=1.33484, Lots=0.03, Profit=-0.76, Commission=0.00, StopLoss=1.31456, TakeProfit=1.35456, "ID = 100"
2012.04.03 06:15:01,AddToCurrentPosition OpenNewPosition orderResponse=1897146

FST Request: Add to the current position.
2012.04.03 06:16:01,EURUSD iargs[0]=0 iargs[1]=87 iargs[2]=0 iargs[3]=0 iargs[4]=0 dargs[0]=0.02000 dargs[1]=1.33495 dargs[2]=2000.00000 dargs[3]=2000.00000 dargs[4]=0.00000 TS0=0;BRE=0
2012.04.03 06:16:02,SendOrder OrderSend(EURUSD, 0, Lots=0.02, Price=1.33495, Slippage=87, StopLoss=1.31468, TakeProfit=1.35468, "ID = 100", Magic=20011023) Response=1897174 LastError=0
2012.04.03 06:16:02,OpenNewPosition SendOrder orderResponse=1897174
2012.04.03 06:16:02,AggregatePosition Ticket=1897174, Type=Long, Time=06:14:02, OpenPrice=1.33489, Lots=0.05, Profit=-1.03, Commission=0.00, StopLoss=1.31468, TakeProfit=1.35468, "ID = 100"
2012.04.03 06:16:02,AddToCurrentPosition OpenNewPosition orderResponse=1897174

EDIT The attached expert was removed. A newer version can be found on Developers forum.

Re: Multiple Unwanted Adds to a Position

Is it possible that the 'close 0.2 lots' command when only 0.02 lots have been opened is causing the trouble on US non-hedge accounts??

Have I missed something? FST has to send exit order with amount of the currently open position.

16 (edited by jgp 2012-04-03 10:57:56)

Re: Multiple Unwanted Adds to a Position

where your FXCM MT4>experts>files    says
Organize-IncludeinLibrary-Share with-Compatability-Newfolder
Mine says
Organize-Include in Library-Sharewith-Burn-Newfolder
{"burn" to a disc, rather than "compatibility"}

then, under that line
New folder          4/3/2012  3:02AM        File folder
EURUSD_15_0     4/3/2012  3:07 AM       Text Document           0KB

Upper left corner of EURUSD_M15 says"FST is disconnected"
Upper right corner says "MT4FST_expert_Test" smileyface

Was I supposed to replace the EA that was there????? replace is what I did.

17

Re: Multiple Unwanted Adds to a Position

had 4-6 inches of snow overnight; still snowing;suffering electrical pwr glitches; all platforms on both computers suffering short disconnect periods; nothing longterm so far.  Will try attaching Expert_Test EA to several new charts, leaving _original FST EA's on existing charts. Do the Expert_Test EA's need 'magic numbers'???

Re: Multiple Unwanted Adds to a Position

I'll publish FST with the new expert (almost same as MT4-FST Expert Test) and Save Journal function tomorrow.
I noticed some issues whit FXCM. Some orders returns error on execution but the error code is 0 (Not defined) or 1 (No error). FST sees that the order is not executed and repeats it. This is normal practice.
It seams that some times MT confirms an order but cannot confirm the real execution and returns such not defined errors. I'll check MT4 forums for some solution.

19

Re: Multiple Unwanted Adds to a Position

light at end of tunnel.  Have learned a lot from this thread about Win7 and MT4 platforms, but lookforward to having at least a partial solution to unwanted unjustified Winner entries.  Bravo in advance Master Popov.

20 (edited by Popov 2012-04-05 21:41:34)

Re: Multiple Unwanted Adds to a Position

Jgp, please try the following. Go to Operation tab of FST, set 0.01 lot (or 0.1) and open long position. When FST confirms the opening, start adding new lots by pressing Buy button. Do it 10 - 20 times.
If everything is OK. Set SL and TP to 200. Press Modify (the blue button). FST has to modify all open positions. Does it work normally?

The mechanism of executing manual commands are exactly the same as the one of the automatic orders. (Or it's intended to be the same if there is no bugs).

EDIT: Please use the newest expert published in the developers forum.

21 (edited by jgp 2012-04-05 23:56:30)

Re: Multiple Unwanted Adds to a Position

Used latest FST and FST Expert on Alpari attached to EURCHF 15m "Add" strategy. not sure what  constitutes "normal" but here is Alpari account history of what happened

  2012.04.06 01:35 buy 0.01 eurchf 1.20224 1.19967 1.20367   1.20162 0.00 0.00 0.00 -0.67
18996422 2012.04.06 01:35 buy 0.01 eurchf 1.20224 1.19967 1.20367   1.20162 0.00 0.00 0.00 -0.67
18996423 2012.04.06 01:35 buy 0.01 eurchf 1.20224 1.19967 1.20367   1.20162 0.00 0.00 0.00 -0.67
18996424 2012.04.06 01:36 buy 0.01 eurchf 1.20224 1.19967 1.20367   1.20162 0.00 0.00 0.00 -0.67
18996425 2012.04.06 01:36 buy 0.01 eurchf 1.20224 1.19967 1.20367   1.20162 0.00 0.00 0.00 -0.67
18996426 2012.04.06 01:36 buy 0.01 eurchf 1.20224 1.19967 1.20367   1.20162 0.00 0.00 0.00 -0.67
18996427 2012.04.06 01:36 buy 0.01 eurchf 1.20224 1.19967 1.20367   1.20162 0.00 0.00 0.00 -0.67
18996428 2012.04.06 01:36 buy 0.01 eurchf 1.20224 1.19967 1.20367   1.20162 0.00 0.00 0.00 -0.67
18996430 2012.04.06 01:36 buy 0.01 eurchf 1.20224 1.19967 1.20367   1.20162 0.00 0.00 0.00 -0.67
18996431 2012.04.06 01:36 buy 0.01 eurchf 1.20224 1.19967 1.20367   1.20162 0.00 0.00 0.00 -0.67
18996433 2012.04.06 01:37 buy 0.01 eurchf 1.20209 1.19967 1.20367   1.20162 0.00 0.00 0.00 -0.51
  0.00 0.00 0.00 -9.05

By the way, have downloaded Skype but it'll be awhile before I understand how to contact you.  And have tried but don't understand how one 'navigates' to made up sites, starting with "C:\Users\" .  jgp apparently doesn't have such a Win7 site.

Re: Multiple Unwanted Adds to a Position

It seams that the broker executes the order successfully but returns some kind of error. FST Expert sees the error and repeats the order. We need the Expert Log file to see what exactly order response returns the server.

23

Re: Multiple Unwanted Adds to a Position

jgp doesn't know enough about how two MT4 demos [FXCM and Alpari(US)] running with FST strategies [identical except for ID numbers] works [or doesn't work] on a quad-core computer.  But it appears, now, the multiple entry problem occurs on that Win7 quad-core only for "Add" strategies and NOT for "Winner" strategies. [that is, the former multiple entry problem for FST "winner" strategies seems to have been fixed]  And it appears that, now, the multiple entry problem does not occur for either those "Winner" or "Add" FST strategies on the single Alpari(US) MT4 demo running on a WinXP dual-core computer [connected to the same DSL].  So, on the Win7-quadcore, perhaps the FST strategies [identical except for ID numbers] attached to FXCM and Alpari demo accounts are somehow interfering with one another. [To JGP it would be a miracle if they weren't].  So next week I'll try running just the FXCM MT4 demo on the much faster more reliable Win7-quadcore and just the Alpari demo on the WinXP dual-core with identical [except for ID numbers] strategies. If that solves my remaining multiple entry problem, my thanks to you all, and my apologies all around.

Re: Multiple Unwanted Adds to a Position

Jgp do you run these strategies with unique ID numbers on different charts but with equal symbol?
For example: ID=300 om EURUSD chart, ID = 400 on other EURUSD chart...
Or each strategy with its unique ID works on different symbol?

25 (edited by jgp 2012-04-07 07:12:56)

Re: Multiple Unwanted Adds to a Position

what I did until today was to assign  a separate ID for every chart. For example, for Alpari I would assign ID=1 [one] for a certrain FST strategy attached to the EURUSD 15m chart, and for FXCM assign ID=11 [eleven] for the same FST strategy attached to the EURUSD 15m chart.  Next week I intend to operate only FXCM on the quadcore and operate only Alpari on the dualcore PC. That way they can't interfere. The MT4 time for Alpari(US) is now GMT+2.