Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, Quad, VoroneTZ, 1 invisible), 623 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to plot a price curve and an indicator #479534
04/04/20 18:47
04/04/20 18:47
Joined: Mar 2020
Posts: 19
London
H
hola123 Offline OP
Newbie
hola123  Offline OP
Newbie
H

Joined: Mar 2020
Posts: 19
London
Hi,

Is there an example of a script which plots the price curve say of the EURUSD and that also plots an indicator? I believe this would be a main function not a run function as I only need it to run once.

Ideally it would be as simple as specifying the security & the start and end dates. I'm not asking for the code (although great if it already exists) just an pointer to where or how to do this. My coding backing ground is mainly C# & Python.

Thanks

Re: how to plot a price curve and an indicator [Re: hola123] #479536
04/04/20 22:06
04/04/20 22:06
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
In fact, you would need run() because run() iterates through your time series and your indicators.

Included with Zorro is the IndicatorTest script, which plots various indicators.

Further reading:
https://zorro-project.com/manual/en/scripts.htm
https://zorro-project.com/manual/en/ta.htm
https://zorro-project.com/manual/en/plot.htm

Re: how to plot a price curve and an indicator [Re: hola123] #479549
04/05/20 19:46
04/05/20 19:46
Joined: Mar 2020
Posts: 19
London
H
hola123 Offline OP
Newbie
hola123  Offline OP
Newbie
H

Joined: Mar 2020
Posts: 19
London
Thanks for the links. Got something kinda working now.

Am I right in thinking that when you use the plot function like below by default it will plot the price curve? I think Zorro is great but still struggling on the coding side of things.

plot("Laguerre",Laguerre(Prices,0.3),NEW,Color);

Re: how to plot a price curve and an indicator [Re: hola123] #479550
04/05/20 21:02
04/05/20 21:02
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
plot("Laguerre",Laguerre(&Prices,0.3),0,BLUE);

Would plot it in the main chart, if it is the first plot command.
NEW creates a new chart, everything after is plottet in that new chart until there is a new new command.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1