Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
6 registered members (TipmyPip, Niels, dBc, Ed_Love, 3run, 1 invisible), 17,577 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
trade mode show nothing #475743
01/06/19 12:51
01/06/19 12:51
Joined: Dec 2018
Posts: 22
VN
C
Chuate Offline OP
Newbie
Chuate  Offline OP
Newbie
C

Joined: Dec 2018
Posts: 22
VN
I use this code to test the trade function. However, after 10 minutes it show nothing in real time. It should show result every minute. Do you know what is problem ?


Code:
function run() 
{
	set(PLOTNOW|PARAMETERS);
	BarPeriod = 1;
	LookBack = 2;
	asset("BTC/USDT");
	vars Price = series(price());
	
	if (Price[0] <= Price[1]) 
	{
		printf("nenter Long");
	}
	
	if (Price[0] > Price[1])
	{
		printf("nexit Long");
		
	}
	
}




this is log
Code:
test3 
Login 0 Binance V3.. at UTC 01-06 13:05
Load BTC/USDT prices.. 31 min, gap 72 h
enter Long
V 1.964 on Sun 19-01-06 20:05:23 (Zorro S Subscription)

Trade: test3 BTC/USDT (NFA) 2019-01-06
Lookback period (2 bars) 
[27: Thu 19-01-03 13:21] (3815.96)
enter Long.
[28: Thu 19-01-03 13:22] (3815.27)
enter Long

End of lookback period


Last edited by Chuate; 01/06/19 13:14.
Re: trade mode show nothing [Re: Chuate] #475744
01/06/19 14:13
01/06/19 14:13
Joined: Dec 2018
Posts: 22
VN
C
Chuate Offline OP
Newbie
Chuate  Offline OP
Newbie
C

Joined: Dec 2018
Posts: 22
VN
I figured out myself. Today is weekend. This code Weekend = 0; solve the problem


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1