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

Steve's 10.6 EA manual trading aids
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3273
Page 6 of 15
Author:  nanningbob [ Fri Dec 06, 2013 1:56 am ]
Post subject:  Re: Steve's 10.6 EA manual trading aids

One slight problem with Bob's template is that it masks the chart feedback that my bots presents - it is possible to miss the fact that there is an EA on the chart. I have restored some of the usual Empty4 chart display values. There is a downside to that because elements of the irrelevant grid show, but there is nothing I can do about it.

Is it possible to have the EA print to screen "EA ON" ???
Author:  kwchau [ Fri Dec 06, 2013 2:05 am ]
Post subject:  Re: Steve's 10.6 EA manual trading aids

SteveHopwood wrote:I have done some work on the Stochastic versions.

Flexible: added the feature to operate only at the open of a new candle - EveryTickMode defaults to true and makes the ea operate as originally coded: DisableAfterTradeClose tells the ea to disable itself when the trade closes - setting this to 'false' allows the ea to enter a new trade if the conditions arise.

The versions in the zip. I am concerned about those instances of multiple trades but cannot see what is wrong. This is industrial strength code that we have been using for a few years without a hitch. I have added code to disable the ea as soon as it has attempted to send a trade. We will miss the trade if the order-send fails, but this is better than waking up to a blown account.

Post 1 as usual.

:D
Thanks Steve, it will be a great help to our trading !
Author:  95026862 [ Fri Dec 06, 2013 7:32 am ]
Post subject:  Re: Steve's 10.6 EA manual trading aids

SteveHopwood wrote:I have done some work on the Stochastic versions.

Flexible: added the feature to operate only at the open of a new candle - EveryTickMode defaults to true and makes the ea operate as originally coded: DisableAfterTradeClose tells the ea to disable itself when the trade closes - setting this to 'false' allows the ea to enter a new trade if the conditions arise.

The versions in the zip. I am concerned about those instances of multiple trades but cannot see what is wrong. This is industrial strength code that we have been using for a few years without a hitch. I have added code to disable the ea as soon as it has attempted to send a trade. We will miss the trade if the order-send fails, but this is better than waking up to a blown account.

Post 1 as usual.

:D

this is perfect, since STO7 can move up and back down before the close of the candle
Author:  SteveHopwood [ Fri Dec 06, 2013 8:09 am ]
Post subject:  Re: Steve's 10.6 EA manual trading aids

nanningbob wrote: One slight problem with Bob's template is that it masks the chart feedback that my bots presents - it is possible to miss the fact that there is an EA on the chart. I have restored some of the usual Empty4 chart display values. There is a downside to that because elements of the irrelevant grid show, but there is nothing I can do about it.

Is it possible to have the EA print to screen "EA ON" ???
Yes, but I want the feedback.

:D
Author:  kwchau [ Fri Dec 06, 2013 2:20 pm ]
Post subject:  Re: Steve's 10.6 EA manual trading aids

I'm testing the new flexible stoch EAs on Global Prime, I've set the parameters IsGlobalPrimeOrECNCriminal to True and got the following error message when the EA tried to part close the trade. Don't know the reason. Is it because the market is moving too fast ? This happened right after the NFP release.

2013.12.06 21:30:12 Steves 10.6 trading aid EA 1.1 - TF 60 Stochastic sell USDCHF,H1: Steves 10.6 trading aid EA 1.1 - TF 60 Stochastic sell 681201 CloseTrade() order close failed with error 3: invalid trade parameters
2013.12.06 21:30:12 Steves 10.6 trading aid EA 1.1 - TF 60 Stochastic sell USDCHF,H1: Alert: Steves 10.6 trading aid EA 1.1 - TF 60 Stochastic sell 681201 CloseTrade() order close failed with error 3: invalid trade parameters
2013.12.06 20:18:50 Steves 10.6 trading aid EA 1.1 - TF 60 Stochastic sell USDCHF,H1: Steves 10.6 trading aid EA 1.1 - TF 60 Stochastic sell 678565 PartCloseTrade() part close failed with error 4108: invalid ticket
2013.12.06 20:18:50 Steves 10.6 trading aid EA 1.1 - TF 60 Stochastic sell USDCHF,H1: Alert: Steves 10.6 trading aid EA 1.1 - TF 60 Stochastic sell 678565 PartCloseTrade() part close failed with error 4108: invalid ticket
Author:  kwchau [ Fri Dec 06, 2013 2:42 pm ]
Post subject:  Re: Steve's 10.6 EA manual trading aids

SteveHopwood wrote:I have done some work on the Stochastic versions.

Flexible: added the feature to operate only at the open of a new candle - EveryTickMode defaults to true and makes the ea operate as originally coded: DisableAfterTradeClose tells the ea to disable itself when the trade closes - setting this to 'false' allows the ea to enter a new trade if the conditions arise.

The versions in the zip. I am concerned about those instances of multiple trades but cannot see what is wrong. This is industrial strength code that we have been using for a few years without a hitch. I have added code to disable the ea as soon as it has attempted to send a trade. We will miss the trade if the order-send fails, but this is better than waking up to a blown account.

Post 1 as usual.

:D
Hi Steve, the amended EA works as intended. Thank you for your kind works.

However, there are still many instances that the trade was triggered at open because it crosses the threshold at the open, then retrace during the bar and continue with the original trend, in other words, the trade is still too early. Could you change it to operate at the close, so order is sent only when the threshold is crossed at the close.

I hope this is not too complicated.

Thanks,
kwchau
Author:  SteveHopwood [ Fri Dec 06, 2013 5:17 pm ]
Post subject:  Re: Steve's 10.6 EA manual trading aids

kwchau wrote:
SteveHopwood wrote:I have done some work on the Stochastic versions.

Flexible: added the feature to operate only at the open of a new candle - EveryTickMode defaults to true and makes the ea operate as originally coded: DisableAfterTradeClose tells the ea to disable itself when the trade closes - setting this to 'false' allows the ea to enter a new trade if the conditions arise.

The versions in the zip. I am concerned about those instances of multiple trades but cannot see what is wrong. This is industrial strength code that we have been using for a few years without a hitch. I have added code to disable the ea as soon as it has attempted to send a trade. We will miss the trade if the order-send fails, but this is better than waking up to a blown account.

Post 1 as usual.

:D
Hi Steve, the amended EA works as intended. Thank you for your kind works.

However, there are still many instances that the trade was triggered at open because it crosses the threshold at the open, then retrace during the bar and continue with the original trend, in other words, the trade is still too early. Could you change it to operate at the close, so order is sent only when the threshold is crossed at the close.

I hope this is not too complicated.

Thanks,
kwchau
No. There is no way of knowing when a candle is about to close, so we have to use the open of the new one to know when the previous one closed.

Whenever you time the trade doesn't matter a hoot. If you have the same level for,s, a buy and both open above and close below are the same, then you are going to get whipsawed into penury. Nothing I can do about that.

Or have I misunderstood you?

:D
Author:  kwchau [ Fri Dec 06, 2013 7:46 pm ]
Post subject:  Re: Steve's 10.6 EA manual trading aids

SteveHopwood wrote:
kwchau wrote:
SteveHopwood wrote:I have done some work on the Stochastic versions.

Flexible: added the feature to operate only at the open of a new candle - EveryTickMode defaults to true and makes the ea operate as originally coded: DisableAfterTradeClose tells the ea to disable itself when the trade closes - setting this to 'false' allows the ea to enter a new trade if the conditions arise.

The versions in the zip. I am concerned about those instances of multiple trades but cannot see what is wrong. This is industrial strength code that we have been using for a few years without a hitch. I have added code to disable the ea as soon as it has attempted to send a trade. We will miss the trade if the order-send fails, but this is better than waking up to a blown account.

Post 1 as usual.

:D
Hi Steve, the amended EA works as intended. Thank you for your kind works.

However, there are still many instances that the trade was triggered at open because it crosses the threshold at the open, then retrace during the bar and continue with the original trend, in other words, the trade is still too early. Could you change it to operate at the close, so order is sent only when the threshold is crossed at the close.

I hope this is not too complicated.

Thanks,
kwchau
No. There is no way of knowing when a candle is about to close, so we have to use the open of the new one to know when the previous one closed.

Whenever you time the trade doesn't matter a hoot. If you have the same level for,s, a buy and both open above and close below are the same, then you are going to get whipsawed into penury. Nothing I can do about that.

Or have I misunderstood you?

:D
Yeah, you may be right. Could it be coded like this? Assume it is a down trend, on a H1 chart, stoch crossed below 90 at open. we treat this as a potential short set up, Wait for 15 minutes,then short trade will be triggered if and only if stoch is still below 90. If stoch has returned above 90, the set up is canceled and no trade is triggered. Vice versa for a buy set up.

It may be more appropriate to use a longer waiting period on a H4 chart.

In this way, we could avoid some of the whipsaw but also not too far into the reverse trend to trigger the trade if the set up is right.

Does this make sense? Or is it possible to code?
Author:  kwchau [ Fri Dec 06, 2013 8:18 pm ]
Post subject:  Re: Steve's 10.6 EA manual trading aids

This is something I like to avoid. In the enclosed chart, a long trade was triggered at the open of the aqua vertical line, almost immediately, price dropped like a rock because of the whipsaw of the NFP release. If we gave it 15 minutes, the trade would not be triggered. I have noted a few occasions of this situation although the fluctuations were not that profound.
Author:  SteveHopwood [ Fri Dec 06, 2013 8:56 pm ]
Post subject:  Re: Steve's 10.6 EA manual trading aids

kwchau wrote:This is something I like to avoid. In the enclosed chart, a long trade was triggered at the open of the aqua vertical line, almost immediately, price dropped like a rock because of the whipsaw of the NFP release. If we gave it 15 minutes, the trade would not be triggered. I have noted a few occasions of this situation although the fluctuations were not that profound.
I am stopping this now. This looks suspiciously like me chasing the latest whim you want me to code. That whim could be diametrically opposed to the whim you expressed 5 minutes ago. I do not play that game.

I have offered up some pretty useful stuff up here already. Use it or not as you please. I am adding nothing further unless it is to advance the cause of the ea's I have placed in the zip file.

:D
All times are UTC Page 6 of 15