Gamestudio Links
Zorro Links
Newest Posts
Fun Arcade Car Physics (nfs style)
by rayp. 07/25/26 00:35
What are you working on?
by rayp. 07/24/26 22:58
Z9 getting Error 058
by madpower2000. 07/22/26 14:01
ZorroGPT
by TipmyPip. 07/21/26 17:54
New Zorro version 3.11
by jcl. 07/21/26 13:42
Lapsa's very own thread
by Lapsa. 07/18/26 13:40
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (1 invisible), 2,827 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Zorro S 1.74.8 - Problems with plotting #470879
02/10/18 17:06
02/10/18 17:06
Joined: Sep 2017
Posts: 235
H
Hredot Offline OP
Member
Hredot  Offline OP
Member
H

Joined: Sep 2017
Posts: 235
With the currently newest Zorro S version I try to run the following simple script to plot the prices of a fixed number of assets in separate plots:

Code:
function run()
{
	set(LOGFILE+PRELOAD+PLOTNOW);
	BarPeriod = 1;	// 1 min bars
	LookBack = 0;	// no lookback period
	StartDate = 2018;
        assetList("HistoryMyAssets.csv"); // load asset list
 
	PlotWidth = 600;
	PlotHeight1 = 600;
	PlotHeight2 = 600;
	 
	var assetNum=0;
	while(loop(Assets))
	{
		asset(Assets[assetNum]);
		plot(Assets[assetNum],price(),NEW,BLACK);
		assetNum++;
	}

}


The above code only produces the first standard candle plot of the active asset, and the plot of the very first asset from the while loop. All remaining plots of assets in the while loop are simply missing.

Did I do something wrong in the above syntax? How should I go about plotting all of the prices of assets in the while loop properly?

Thanks for any suggestion!

Last edited by Hredot; 02/10/18 17:46.
Re: Zorro S 1.74.8 - Problems with plotting [Re: Hredot] #470880
02/10/18 17:24
02/10/18 17:24
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline
User
MatPed  Offline
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
Just a guessing
Just a guess: first plot on MAIN than NEW. Ciao

Re: Zorro S 1.74.8 - Problems with plotting [Re: MatPed] #470881
02/10/18 17:45
02/10/18 17:45
Joined: Sep 2017
Posts: 235
H
Hredot Offline OP
Member
Hredot  Offline OP
Member
H

Joined: Sep 2017
Posts: 235
Added this before the while loop to try out the above suggestion:

Code:
plot("zero",0,MAIN,BLACK);


Unfortunately, it did not help. The output is still the same.

Last edited by Hredot; 02/10/18 17:45.
Re: Zorro S 1.74.8 - Problems with plotting [Re: Hredot] #470884
02/10/18 18:40
02/10/18 18:40
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
You can try:
Code:
set(LOGFILE+PRELOAD+PLOTNOW);
setf(PlotMode,PL_ALL);


Re: Zorro S 1.74.8 - Problems with plotting [Re: Sphin] #470885
02/10/18 19:49
02/10/18 19:49
Joined: Sep 2017
Posts: 235
H
Hredot Offline OP
Member
Hredot  Offline OP
Member
H

Joined: Sep 2017
Posts: 235
Thank you Sphin, that fixed the issue!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1