Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (TipmyPip, AndrewAMD, Quad, aliswee, degenerate_762), 970 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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: 50
D
degenerate_762 Online OP
Junior Member
degenerate_762  Online OP
Junior Member
D

Joined: Jul 2021
Posts: 50
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: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
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: 50
D
degenerate_762 Online OP
Junior Member
degenerate_762  Online OP
Junior Member
D

Joined: Jul 2021
Posts: 50
@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: 5
Germany
M
M_D Offline
Newbie
M_D  Offline
Newbie
M

Joined: Apr 2020
Posts: 5
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?


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