Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Edgar_Herrera, VoroneTZ, Akow), 968 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 20 of 20 1 2 18 19 20
Re: One Night Stand System [Re: RTG] #461028
07/22/16 23:20
07/22/16 23:20
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
If I knew how to handle Ehlers filter I would write profitable strategies. laugh But wasn't Ehlers the guy with the cycles? You can use him also to find out the best MA?

I don't know if another MA is needed - the result is improved if you use an individual period length per asset. Here I choose optimize(200,10,300,10) for a SMA (and used EntryTime=5) from 2009 to 2015:

Code:
Asset	SMA	PF	W/L
EUR/CHF	220	2,13	47/74
EUR/AUD	90	1,51	84/141
EUR/JPY	110	1,48	86/151
AUD/JPY	80	1,46	87/120
USD/JPY	280	1,46	86/106
EUR/USD	30	1,45	80/137
AUD/CHF	30	1,34	82/121
USD/CHF	50	1,3	84/114
CHF/JPY	80	1,29	81/135
XAGUSD	30	1,29	55/80
GBP/JPY	120	1,21	79/164
EUR/NZD	240	1,18	60/188
XAUUSD	281	1,17	6/240
NZD/JPY	30	1,14	79/118
USD/CAD	230	1,12	73/115
GER30	160	1,11	47/180
NAS100	240	1,11	52/58
AUD/USD	280	1,09	77/127
EUR/CAD	40	1,09	72/158
CAD/CHF	190	1,07	75/121
CAD/JPY	100	1,06	71/131
US30	270	1,06	56/181
GBP/CHF	250	1,05	73/156
NZD/CHF	280	1,05	71/105
AUD/CAD	280	1,03	77/112
SPX500	260	1,01	51/211
AUD/NZD	80	0,97	81/128
GBP/NZD	130	0,97	46/214
EUR/GBP	40	0,94	65/84
GBP/AUD	50	0,93	64/188
GBP/USD	100	0,88	68/169
NZD/USD	170	0,88	80/138
USOil 	110	0,8	35/191
NZD/CAD	100	0,79	77/120
GBP/CAD	29	0,76	48/185
UK100	230	0,47	38/135


The EUR/CHF result might be slightly biased by the cap and the relation of W/L @XAUUSD looks strange: only 6 wins out of 246 trades and it was profitable at all! The reason for this was that the Stop in PIPs seems not to work with XAUUSD, if the trade wasn't profitable from the very beginning it has been stopped out immediately.

Re: One Night Stand System [Re: Sphin] #461037
07/23/16 05:19
07/23/16 05:19
Joined: Feb 2014
Posts: 181
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 181
Two fills on my demo account for the ONS.

(USOil::S) Entry stop 44.44 hit at 07:05
[USOil::S6977] Short 1@44.44
(EUR/USD::S) Entry stop 1.0979 hit at 14:59
[EUR/USD::S9128] Short 103@1.0978 p
Weekend at 22.07. 20:00..........

Re: One Night Stand System [Re: RTG] #461088
07/25/16 01:27
07/25/16 01:27
Joined: Feb 2014
Posts: 181
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 181
[Mon 25.07.16 00:05] 21548 +1764 +57 //''

Monday 25.07.16 Profit +1683$ ----
[EUR/USD::S9128] Cover 103@1.0972: +44.09 at 00:04
[USOil::S6977] Cover 1@44.30: +13.38 at 00:04

Re: One Night Stand System [Re: RTG] #463469
12/05/16 22:46
12/05/16 22:46
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Really long time ago when the last entries were made here, I still watch ONS running with more or less ... loss in total. This weekend was a disaster, first time a stop was hit, in EUR/JPY - okay trading EUR long seemed to be a bad idea in general referring to the Italian referendum. But I faced another problem:

Code:
[151: Fri 02.12.16 00:00]  0.84636
(EUR/USD::S) Short 200@1.0516 Entry stop
Weekend at 02.12. 20:00....................
Weekend ends at 04.12. 23:00
(EUR/USD::S) Entry stop 1.0516 hit at 23:22.
[EUR/USD::S8842] Short 200@1.0516 Risk 40$  at 23:21..



Because my EntryTime is default (1) I was astonished that the trade was still valid on Sunday night when the market continued, such trades are not intended. But I fear with default setting for Weekend (means 2) all prices that arrive until Monday 00:00 are counted to the Friday bar? If so setting Weekend to 1 expires trades on Friday (on a bar period of 1440)?

Re: One Night Stand System [Re: Sphin] #463479
12/06/16 15:51
12/06/16 15:51
Joined: Feb 2014
Posts: 181
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 181
Mine took that hit too. I need to recover my hard drive to get the myfxbook account updated.

Re: One Night Stand System [Re: RTG] #482213
01/12/21 18:35
01/12/21 18:35
Joined: Sep 2020
Posts: 5
Derby, UK
aliswee Offline
Newbie
aliswee  Offline
Newbie

Joined: Sep 2020
Posts: 5
Derby, UK
Has anyone else tried to use this system. I have used the code and date ranges used here up to about 2016 but have found the results to be terrible?!

Re: One Night Stand System [Re: aliswee] #484883
12/25/21 13:19
12/25/21 13:19
Joined: Dec 2021
Posts: 13
S
Sage Offline
Newbie
Sage  Offline
Newbie
S

Joined: Dec 2021
Posts: 13
To my amazement also! I backtested it with the code on here; 2010 - 2015 and ONS does not seem profitable. Even JCL has it on his blog "Financial Hacker" that ONS is profitable.
I would be pleased to know if the mistake is from me

Re: One Night Stand System [Re: Sage] #484930
12/31/21 13:55
12/31/21 13:55
Joined: Dec 2021
Posts: 3
S
seerwright Offline
Guest
seerwright  Offline
Guest
S

Joined: Dec 2021
Posts: 3
I'm just now stumbling across this and plan to test it out. Reading through the thread there are a number of refinements that happened. I'm guessing previous posters spent many hours refining and probably didn't publish final scripts.

Re: One Night Stand System [Re: RTG] #484937
01/01/22 17:14
01/01/22 17:14
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
I found a working version in our antique scripts depot:

Code
function tradeOneNightStand() 
{
	vars SMA10 = series(SMA(seriesC(),10));
	vars SMA40 = series(SMA(seriesC(),40));
	
	Stop = 150 * PIP;
	Trail = 150 * PIP;
	TrailLock = 50;
	EntryTime = 24;
	
	int Days = LookBack; 
	var BuyStop = HH(Days) + 1*PIP;
	var SellStop = LL(Days) - 1*PIP;
	
	if (dow() == FRIDAY && NumOpenLong == 0 && NumPendingLong == 0 && SMA10[0] > SMA40[0]) 
		enterLong(0,BuyStop);
	else if (dow() == FRIDAY && NumOpenShort == 0 && NumPendingShort == 0 && SMA10[0] < SMA40[0])
		enterShort(0,SellStop);			
	
	if (dow() < FRIDAY) {
		exitLong();
		exitShort();
	}
}


function run() 
{
	
	BarPeriod = 60; 
	LookBack = 13*24;
	StartDate = 2010;
	EndDate = 2015;
	while(asset(loop("USD/JPY", "GBP/USD", "EUR/USD"))) 
		tradeOneNightStand();
	}
}


Looks still experimental. Dont ask me how the parameters like 150*PIP or 13*24 came about.

Page 20 of 20 1 2 18 19 20

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1