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
3 registered members (VoroneTZ, monk12, Quad), 829 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
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,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
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