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

RoundNumberTrap
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=279
Page 2 of 6
Author:  newbee [ Mon Jan 23, 2012 11:03 am ]
Post subject:  Re: RoundNumberTrap

When RoundNumberTrap EA has opened the stop orders and let's say, buy stop got hit into a buy trade, then RoundNumberTrap produces a lot of sell stops and closes them again always a the same time. This happens over and over again and causes a huge loss of cpu performance.
Would be better to keep the sell stop open, then to close it and reopen it again and again and agin ;-)
Author:  magft [ Mon Jan 23, 2012 11:07 am ]
Post subject:  Re: RoundNumberTrap

newbee wrote:When RoundNumberTrap EA has opened the stop orders and let's say, buy stop got hit into a buy trade, then RoundNumberTrap produces a lot of sell stops and closes them again always a the same time. This happens over and over again and causes a huge loss of cpu performance.
Would be better to keep the sell stop open, then to close it and reopen it again and again and agin ;-)
Yes, this is a feature :oops: , i am going to put an update later on as got to go out now. I thought i had fixed this issue, but that was in old version which didnt send the trades correctly.

In the words of Arnie "I'll be back!!""
Author:  magft [ Mon Jan 23, 2012 5:43 pm ]
Post subject:  Re: RoundNumberTrap

another update in post #1
Author:  Alpenkorps [ Tue Jan 24, 2012 4:37 am ]
Post subject:  Re: RoundNumberTrap

I am not sure if the bot is working properly, but as Mike is forward testing it, I think it is. Mike would you be kind enough to share your set file so I can be sure I am not messing with settings?

The new version is almost impossible to visually backtest (on my crappy old lappy) so I can not confirm it, but a quick non-visual backtest graph doesn't look so good.
Author:  magft [ Tue Jan 24, 2012 9:41 am ]
Post subject:  Re: RoundNumberTrap

Alpenkorps wrote:I am not sure if the bot is working properly, but as Mike is forward testing it, I think it is. Mike would you be kind enough to share your set file so I can be sure I am not messing with settings?

The new version is almost impossible to visually backtest (on my crappy old lappy) so I can not confirm it, but a quick non-visual backtest graph doesn't look so good.
I've put an update in post #1, let me know some dates to backtest and i will run them for you.

Regards

Mike
Author:  Alpenkorps [ Tue Jan 24, 2012 10:02 am ]
Post subject:  Re: RoundNumberTrap

Excellent.
Could you please backtest January 2011 and share the graph?
If profit level reached and account is not blown, graph should be always bullish.
Author:  magft [ Tue Jan 24, 2012 1:03 pm ]
Post subject:  Re: RoundNumberTrap

Here is the test on EU using tick data. Something is not correct, i haven't got time at the moment but can look later on today.

I have the visual chart still open can go back and check the trades, i think there may still be a bug in the logic or in the way Empty4 is working. It's all good fun :roll:

Mike
Author:  Alpenkorps [ Tue Jan 24, 2012 1:22 pm ]
Post subject:  Re: RoundNumberTrap

Thanks Mike, I got same result, so my settings are fine.
The error is probably in the lot multiplier, Please fix it when you have time.

I have a few other settings in mind, waiting for the EA to work properly so I can backtest them. The current setup is a bit risky, and safer setup is definitely possible.

Cheers.
Author:  gaheitman [ Tue Jan 24, 2012 1:41 pm ]
Post subject:  Re: RoundNumberTrap

magft wrote:Here is the test on EU using tick data. Something is not correct, i haven't got time at the moment but can look later on today.

I have the visual chart still open can go back and check the trades, i think there may still be a bug in the logic or in the way Empty4 is working. It's all good fun :roll:

Mike
State #5 has a defect in it. It was looking at GetOrderLots(BuyTicketNo) which is the pending/closed ticket. It should be

Code: Select all

               SendLots=GetOrderLots(SellTicketNo)*MartingaleLotMultiplier;
Looking further, state #6 seems to have the same problem with the same fix.

George
Author:  magft [ Tue Jan 24, 2012 1:48 pm ]
Post subject:  Re: RoundNumberTrap

gaheitman wrote:
magft wrote:Here is the test on EU using tick data. Something is not correct, i haven't got time at the moment but can look later on today.

I have the visual chart still open can go back and check the trades, i think there may still be a bug in the logic or in the way Empty4 is working. It's all good fun :roll:

Mike
State #5 has a defect in it. It was looking at GetOrderLots(BuyTicketNo) which is the pending/closed ticket. It should be

Code: Select all

               SendLots=GetOrderLots(SellTicketNo)*MartingaleLotMultiplier;
Looking further, state #6 seems to have the same problem with the same fix.

George
George, thanks for the input. That makes perfect sense not sure why i had the code the way it was as it was trying to use a closed ticket to set the lot size where a few lines above i set the ticket number to -1! whereas states 1 and 2 were correct!

Update in post #1

Regards

Mike
All times are UTC Page 2 of 6