stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

4 Ducks
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3235
Page 4 of 7
Author:  RxCape [ Mon Nov 11, 2013 5:23 pm ]
Post subject:  Re: 4 Ducks

Steve:

Does the latest version have the feature that closes a trade when the initial two candles go opposite the trade ? In testing this morning, I have had quite a few pairs retrace for the first two or three candles after the trade is placed and it appears that 4 Ducks is trying to close the trade.. I am getting an error 131 - Invalid trade volume. I have not been able to track down the volume error.
Author:  milanese [ Mon Nov 11, 2013 5:27 pm ]
Post subject:  Re: 4 Ducks

RxCape wrote:Steve:

Does the latest version have the feature that closes a trade when the initial two candles go opposite the trade ? In testing this morning, I have had quite a few pairs retrace for the first two or three candles after the trade is placed and it appears that 4 Ducks is trying to close the trade.. I am getting an error 131 - Invalid trade volume. I have not been able to track down the volume error.
Yes it has this feature inherited from BASA
Edit: the error must be in this part of code..

Cheers :)
Tommaso
Author:  RxCape [ Tue Nov 12, 2013 1:24 pm ]
Post subject:  Re: 4 Ducks

Just reporting some observations. The open and immediate close seems to have shown its' ugly self again. here are a few sample screen shots. I could not find any corresponding messages to indicate what was causing the close.
Author:  milanese [ Tue Nov 12, 2013 1:32 pm ]
Post subject:  Re: 4 Ducks

RxCape wrote:Just reporting some observations. The open and immediate close seems to have shown its' ugly self again. here are a few sample screen shots. I could not find any corresponding messages to indicate what was causing the close.
How fast were this trades closed?

Cheers :)

Tommaso
Author:  SteveHopwood [ Tue Nov 12, 2013 1:47 pm ]
Post subject:  Re: 4 Ducks

RxCape wrote:Just reporting some observations. The open and immediate close seems to have shown its' ugly self again. here are a few sample screen shots. I could not find any corresponding messages to indicate what was causing the close.
You have stacking enabled so watch your StackDistancePips and StackBreakevenProfitPips inputs. if StackDistancePips is small or StackBreakevenProfitPips too large, then the basket breakeven will be hit as soon as the bot is allowed to close it.

There should be at least DeltaTimeLiveTrades seconds (default 5 minutes) between trade open and close. Tommaso and I will know there is a problem with the function if there is a smaller gap.

:D
Author:  RxCape [ Tue Nov 12, 2013 2:48 pm ]
Post subject:  Re: 4 Ducks

Stacking distance is set to 50 pips. Stacking BE is set to 5 pips. DeltaTime I have left set to 5 minutes. T

Attached is a screenshot zoomed in on and AUDCAD 1 minute chart to illustrate the multiple opens in the same 1M candle. I hope this helps.
Author:  SteveHopwood [ Tue Nov 12, 2013 3:46 pm ]
Post subject:  Re: 4 Ducks

V 1g is in post 1. Coders, Tommaso has moved the call to ReadIndicatorValues() is start() so that it is called directly before CountOpenTrades().

:D
Author:  RxCape [ Tue Nov 12, 2013 4:11 pm ]
Post subject:  Re: 4 Ducks

Version 1G installed. Within a few minutes, got multiple opens on AUDUSD. See screenshot below of 1M chart expansion. I have changed to no stacking to see if that affects things.
Author:  SteveHopwood [ Tue Nov 12, 2013 4:25 pm ]
Post subject:  Re: 4 Ducks

RxCape wrote:Version 1G installed. Within a few minutes, got multiple opens on AUDUSD. See screenshot below of 1M chart expansion. I have changed to no stacking to see if that affects things.
What is in the order comment field?

:D
Author:  RxCape [ Tue Nov 12, 2013 4:29 pm ]
Post subject:  Re: 4 Ducks

apologies for dominating the posting in the thread. I restarted 4 Ducks and noticed that trades are being taken although price has not reached the fractal trade line. Attached is an AUDNZD screenshot. The red Fractal Sell line appears to be in the right place. the two trades at the right of the screen were taken as I restarted Empty4 and then when the new 5M candle started.

... and as I typed this post, both AUDNZD trades closed on the next candle.

screenshots are in reverse order for some reason. I'm sure the sharper minds than me will still be able to figure it out.

T
All times are UTC Page 4 of 7