Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,135 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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