Gamestudio Links
Zorro Links
Newest Posts
Oanda instruments
by Morris. 06/05/20 10:24
Indicator coding
by Grat. 06/05/20 09:29
MT4/5 - wrong M1 time
by Grat. 06/05/20 08:34
fce for close signal
by Grat. 06/05/20 06:09
TMF - Chandelier
by danatrader. 06/05/20 05:03
The Black Book
by danatrader. 06/05/20 04:29
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
12 registered members (alibaba, danatrader, 3run, Grat, ChrstphFr, jbhunter, deepscreener, Mio, 2 invisible), 467 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Frank_Shieh, PBSeven, Hardi01, Giuseppe, AdamWu
18461 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: 16
London
H
hola123 Offline OP
Newbie
hola123  Offline OP
Newbie
H

Joined: Mar 2020
Posts: 16
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: 983
Chicago
AndrewAMD Offline
User
AndrewAMD  Offline
User

Joined: Feb 2017
Posts: 983
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: 16
London
H
hola123 Offline OP
Newbie
hola123  Offline OP
Newbie
H

Joined: Mar 2020
Posts: 16
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: 137
D
danatrader Online
Member
danatrader  Online
Member
D

Joined: Mar 2019
Posts: 137
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