Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (blaurock), 750 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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