Information
Username: | ctid418503 |
Member since: | 04 May 2018 |
Last login: | 04 May 2018 |
Status: | Active |
Activity
Where | Created | Comments |
---|---|---|
Algorithms | 3 | 5 |
Forum Topics | 2 | 15 |
Jobs | 0 | 0 |
About
Last Algorithm Comments
PS. I'm working on a cBot using this indicator and getting quite positive results already in backtesting. I'll probably upload it here when I've fettled with it a bit more.
Doh, when I said "it is considering the start of the day (and therefore when to reset and start calculating the values) as 00:00 CET", I meant to say "UTC". Anyhow I've reuploaded it now and it defaults to EST which is probably more normal, but set it how you want.
Actually I updated it to EST because that's probably more standard.
I just noticed that there is a commercial (with free trial) VWAP indicator available here https://ctrader.com/algos/indicators/show/1572 and I was interested to see if this gives the same results. I was going to install the trial version but it asked for full access rights for no reason so I didn't go ahead.
However I can see from the screenshot posted there that my free VWAP indicator is not giving the same results. This is because of the bit in my code:
TimeZones.UTC
which means it is considering the start of the day (and therefore when to reset and start calculating the values) as 00:00 CET. If you just change this to "TimeZones.EasternStandardTime" it gives the same results from what I can see comparing it to the picture. You can also influence it by changing the line:
if (MarketSeries.OpenTime[ii].Hour == 0 && MarketSeries.OpenTime[ii].Minute == 0)
to say some other value than 0, i.e. if you change both 0s to 5s then that means it will reset and restart calulating at the beginning of the 5th hour of the day according to the timezone specified.
I am not actually sure what the 'standard' is for VWAP (whether CET or EST or whatever) but it can make a massive difference in the results so you have to be aware of it.
Hi all,
Here are some observations. I can quite easily modify the Cbot to take account of these, but I won't post updates here unless I get some feedback. There are 130 downloads, and I simply can't be bothered to provide an update unless I get feedback from the Ctrader community. I am making this freely available after all.
Also: just to pre-empt any copyright claims. I didn't copy any code from another EA. I am just making an accurate copy of the logic. You can't copyright a strategy.
I find that the take profit settings on the Hamster EA are quite different from my 'Gerbil' CBot. On my Cbot I just scalp for 6 pips profit each time. But Hamster has 2 options:
I think that this refers to open positions only, while standard TP is 6 (while no previous orders are open). But I am not 100% sure. Maybe it doesn't just apply to currently open positions, but I can't imagine it works on closed orders (even in loss). I will work on this.
There are some other differences between Hamster and my 'Gerbil' Cbot: