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
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Quad), 755 guests, and 5 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
Help with plotting multiple ZigZag #485577
03/25/22 15:54
03/25/22 15:54
Joined: Jul 2021
Posts: 51
D
degenerate_762 Offline OP
Junior Member
degenerate_762  Offline OP
Junior Member
D

Joined: Jul 2021
Posts: 51
Quote

ZigZag indicator; converts the Data series into alternating straight lines with at least the given Depth (in Data units) and Length (in bar units). ZigZag is non-predictive and can only identify trends in hindsight. Returned: rSlope (the slope of the last identified line; upwards lines have a positive slope, downwards lines a negative slope); rPeak (the bar offset of the last identified peak); rLength (the number of bars of the last zig or zag that ends with rPeak). If a nonzero Color is given, the zigzag lines are plotted in the chart. Source code in indicators.c, example in Indicatortest.c. The function internally creates series and thus must be called in a fixed order in the script.


Quote

// plot some indicatorsfunction run(){ set(PLOTNOW);
var* Price = series(price());

// plot Bollinger bands BBands(Price,30,2,2,MAType_SMA);
plot("Bollinger1",rRealUpperBand,BAND1,0x00CC00);
plot("Bollinger2",rRealLowerBand,BAND2,0xCC00FF00);
plot("SAR",SAR(0.02,0.02,0.2),DOT,RED);
ZigZag(Price,20*PIP,5,BLUE);

// plot some other indicators
plot("ATR (PIP)",ATR(20)/PIP,NEW,RED);
plot("Doji",CDLDoji(),NEW+BARS,BLUE);
plot("FractalDim",FractalDimension(Price,30),NEW,RED);
plot("ShannonGain",ShannonGain(Price,40),NEW,RED);
}


Hi, is there a way to return the zigzag series or plot multiple zigzag indicators please?

Last edited by degenerate_762; 03/26/22 05:13.
Re: Help with plotting multiple ZigZag [Re: degenerate_762] #485582
03/26/22 12:40
03/26/22 12:40
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
I think not because the plot has a fixed name "Zigzag", so there can be only one per asset. But i forward this to the developers for using a flexible name in the future for allowing multiple plots.

Re: Help with plotting multiple ZigZag [Re: Petra] #485585
03/26/22 13:44
03/26/22 13:44
Joined: Jul 2021
Posts: 51
D
degenerate_762 Offline OP
Junior Member
degenerate_762  Offline OP
Junior Member
D

Joined: Jul 2021
Posts: 51
@Petra thanks. having that feature would make my indicator soup even more tasty.

Re: Help with plotting multiple ZigZag [Re: Petra] #487126
01/25/23 00:33
01/25/23 00:33
Joined: Apr 2020
Posts: 7
Germany
M
M_D Offline
Newbie
M_D  Offline
Newbie
M

Joined: Apr 2020
Posts: 7
Germany
Originally Posted by Petra
I think not because the plot has a fixed name "Zigzag", so there can be only one per asset. But i forward this to the developers for using a flexible name in the future for allowing multiple plots.


Hi Petra,
Has there been an update for multiple plots?
Im interested in plotting 3 bollinger bands with different deviations, ... or at least 2 of them. Or is there already a way to get each 2 different rRealUpperBand and rRealLowerBand and i missed it in the manual?

Re: Help with plotting multiple ZigZag [Re: degenerate_762] #488225
04/26/24 20:03
04/26/24 20:03
Joined: Apr 2020
Posts: 7
Germany
M
M_D Offline
Newbie
M_D  Offline
Newbie
M

Joined: Apr 2020
Posts: 7
Germany
Hi @all again,
Sorry for the above, meanwhile figured out a few things.
But currently i am again at ZIGZAG indicator. Would like to use it in mutliple Timeframes.
For example one in 1 hour and the other in 4 hour. Is this possible now?
By the way, am still using Zorro version 2.40.
Any hints and tricks are welcome,
Thanks in advance ...


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