Gamestudio Links
Zorro Links
Newest Posts
SGT_FW
by Aku_Aku. 11/30/26 08:19
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 12,552 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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,839
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

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