Early days and thanks Steve for this. I have started tests today, the concept is great
Cheers
Leon
Code: Select all
//Can we close a hedge trade? We will want to close it if there
//is an opposite direction Trend signal and it is in profit.
if (OrderComment() == FullHedgeComment)
if (LongTrendDetected)
if (!OnlyCloseFullHedgeWhenInProfit || (OrderProfit() + OrderSwap() + OrderCommission()) > 0)
CloseThisTrade = true;Brilliant Leon. There is a lot more coming over the next week or so.Wavegarrick » Thu Feb 16, 2017 4:03 pm wrote:Hi Guys.
Early days and thanks Steve for this. I have started tests today, the concept is greatWill report back on my tests.
Cheers
Leon
Dead right on both counts.kennychua » Fri Feb 17, 2017 3:03 am wrote:Hi Steve
I believe the following code in LookForTradeClosure function from line 3586 to 3591 is not necessary
Because this is handled in LookForFullHedgeTradeClosure function.Code: Select all
//Can we close a hedge trade? We will want to close it if there //is an opposite direction Trend signal and it is in profit. if (OrderComment() == FullHedgeComment) if (LongTrendDetected) if (!OnlyCloseFullHedgeWhenInProfit || (OrderProfit() + OrderSwap() + OrderCommission()) > 0) CloseThisTrade = true;
Anyway, it doesn't affect the logic of the program as the LookForTradeClosure function doesn't trigger if position is hedged.
Please do take your time Steve. I believe we are heading in the right direction. Looking forward to the upcoming additionsSteveHopwood wrote:Brilliant Leon. There is a lot more coming over the next week or so.
I think this is worth discussing here.Has anyone else had trouble getting Holy Graily Bob 'n Dotty to work on the latest version("Version 1")?
I placed the EA on a charrt(GBPJPY) on 16th Feb with OOTB settings and have seen no activity at all since.
I know that this may be too short a time for any trades to have been placed, but I had the same trouble all thru Late January and February on the previous version, which had been working fine before.
I know craptester is frowned on here, but I tried to run "Version 1" on a backtest of 3 months just to see if any thing would happen.
Nothing at all.
I ran Holy Graily Bob 'n Dotty 'n Bolly on the same period /data and it does take trades.
I have checked that allow live trades are set correctly.
I have taken te EA off the chart, recompiled and reset it.
The bot does have a smily face and displays data such as in a long trend etc, but no trades.
I found this bot to be exceptionally good, but over the last few months seems to have jut stopped working.
I do have Super CSS V2.2 running on the charts if that makes any difference.
Thanks for any help you can give me
Code: Select all
per = ChartPeriod(TradingTimeFrame);//Save the current chartCode: Select all
per = ChartPeriod(0)Code: Select all
ChartSetSymbolPeriod(0, Symbol(), nextPer);//Change time frame
ChartSetSymbolPeriod(0, Symbol(), per);//reset time frame