Hi everybody. I want to introduce quickly a not quite perfect gold strategy here, which came about rather accidentally. I had read that the price of gold was rising on Fridays (hedging institutional and purchases of physical gold for further processing) statistically above average (I think similar strategies already exist in this forum). That’s why wanted to buy Thursday evening and sell Friday evening if the Price is lower then the Buyprice. If the Price is highter i wanted to sell it too, or make a breakeven and try Build positions on every Thursday hoping to catch the long trend with a Trailingstop on every Trendwave low (classic trendstop). But I lack the knowledge about these stops. So I only worked with the time stop. But that didnt work.
It is important to me to buy at the bottom of this day (Thursday), so I used the CCI indicator at 1htimeframe. I also use an EMA. But that also didnt work. then i checked all other days (not weekend) and had to find out, that on Tues, Wednesday and Thursday in this consterlation the Price was rising. Exactly on the days that I didn’t want to act, lol …
okay, to cut a long story short, here ist the Code of the Stratgie. Hope i did not optimize the EMA just for these 5 Jears. I used a Spread of 1pip.
Maybe someone here had a similar idea or suggestions for improvement. 🙂
GOLD_CCI_EMA_LONG_1h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Festlegen der Code-Parameter
DEFPARAMCumulateOrders=False// Kumulieren von Positionen deaktiviert
// Verhindert das Platzieren von neuen Ordern zum Markteintritt oder Vergrößern von Positionen vor einer bestimmten Uhrzeit
noEntryBeforeTime=080000
timeEnterBefore=time>=noEntryBeforeTime
// Verhindert das Platzieren von neuen Ordern zum Markteintritt oder Vergrößern von Positionen nach einer bestimmten Uhrzeit
noEntryAfterTime=170000
timeEnterAfter=time<noEntryAfterTime
// Verhindert das Trading an bestimmten Wochentagen
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue