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
4 registered members (Nymphodora, AndrewAMD, Quad, TipmyPip), 889 guests, and 6 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
Page 14 of 18 1 2 12 13 14 15 16 17 18
Re: Sierra Chart Plugin [Re: AndrewAMD] #479313
03/17/20 05:57
03/17/20 05:57
Joined: Oct 2018
Posts: 72
J
JamesHH Offline
Junior Member
JamesHH  Offline
Junior Member
J

Joined: Oct 2018
Posts: 72
Originally Posted by AndrewAMD
I believe tick() works for both Zorro and Zorro S. But you can only use BarPeriod 1 or greater in free Zorro. So if you're only using run() and BarPeriod is 1, then you only get price updates once per run(), which is once per minute.


I didn't know about tick(). It does seem to be working with free Zorro.

My understanding of the manual is that in tick(), priceClose() gives the ask quote. So how does one get the trade price when a trade occurs?

Re: Sierra Chart Plugin [Re: AndrewAMD] #479321
03/17/20 12:45
03/17/20 12:45
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
This is the Sierra Chart Plugin thread. Please stay on topic.

These sorts of questions belong on "Starting with Zorro":
https://opserver.de/ubb7/ubbthreads.php?ubb=postlist&Board=49&page=1

Re: Sierra Chart Plugin [Re: AndrewAMD] #479324
03/18/20 01:20
03/18/20 01:20
Joined: Oct 2018
Posts: 72
J
JamesHH Offline
Junior Member
JamesHH  Offline
Junior Member
J

Joined: Oct 2018
Posts: 72
Apologies, I have reposted my question there.

Btw, I assume obtaining market depth with be specific to the Sierra Chart Plugin (since I didn't see any documentation on this in the manual), but I guess you will explain this once the plugin adds that functionality.

Re: Sierra Chart Plugin [Re: JamesHH] #479328
03/18/20 11:20
03/18/20 11:20
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
Originally Posted by JamesHH
I assume obtaining market depth with be specific to the Sierra Chart Plugin (since I didn't see any documentation on this in the manual), but I guess you will explain this once the plugin adds that functionality.
Not true, it is standard.
https://manual.zorro-project.com/ordercvd.htm
https://opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=474654#Post474654

Re: Sierra Chart Plugin [Re: AndrewAMD] #479335
03/18/20 16:47
03/18/20 16:47
Joined: Oct 2018
Posts: 72
J
JamesHH Offline
Junior Member
JamesHH  Offline
Junior Member
J

Joined: Oct 2018
Posts: 72
Oh, I misunderstood. I thought you hadn't implemented market depth yet, but I assume you are saying that recent changes in Sierra Chart broke it.

Re: Sierra Chart Plugin [Re: AndrewAMD] #479336
03/18/20 16:50
03/18/20 16:50
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
Correct. My plugin "talks" to the sever. They changed the "language". laugh

Re: Sierra Chart Plugin [Re: AndrewAMD] #479353
03/21/20 23:28
03/21/20 23:28
Joined: Oct 2018
Posts: 72
J
JamesHH Offline
Junior Member
JamesHH  Offline
Junior Member
J

Joined: Oct 2018
Posts: 72
Sorry, but so far I am not finding this plugin to be usable. Here are some issues:

1) After starting Zorro in Trade mode, the status remains red for about 2:45 minutes before the script starts doing anything. This makes it very time consuming to debug scripts.

2) The flood of megabytes of error messages makes it that much more difficult to try and see what is going on.

3) At one point I was receiving quote updates in the tick() function. Now there are no updates showing in the log (even though I know the quotes have updated on SC). Also when I try to stop my script zorro keeps running after I select Yes to stop running the script.

I made some changes to my script and then tried to revert them to what seemed to be working before. Is there some error in my script that could be causing the problems?


vars bid, ask;

void run() {
resf(BarMode, BR_WEEKEND);

BarPeriod = 1;
TickTime = 1;
LookBack = 2;

//bid = series(0, -LookBack);
//ask = series(0, -LookBack);

assetAdd("XBTUSD-BMEX");
asset("XBTUSD-BMEX");
}

void tick() {

//var new_ask = priceClose();
//var new_bid = new_ask - Spread;

/* shift(ask, new_ask, LookBack);
shift(bid, new_bid, LookBack);

if (bid[0] != bid[1]) print(TO_WINDOW, "\nBid changed");
if (ask[0] != ask[1]) print(TO_WINDOW, "\nAsk changed");
*/
print(TO_WINDOW,
"\n%2i:%2i:%2.3f => Bid: %f, Ask: %f", hour(), minute(), second(),
//new_bid, new_ask);
priceClose() - Spread, priceClose());
//print(TO_WINDOW, "\nPrice: %f", Prices[0]);
}

Re: Sierra Chart Plugin [Re: AndrewAMD] #479354
03/21/20 23:49
03/21/20 23:49
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
I'll look into this tomorrow.

Re: Sierra Chart Plugin [Re: AndrewAMD] #479357
03/23/20 01:00
03/23/20 01:00
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
There appears to be an error/failure under unknown circumstances. I will not be fixing this because 1) Sierra Chart changed the protocol on me, and 2) I planned on overhauling the plugin in the first place. The overhaul is low on my priority list because I'm working on a much bigger project right now.

Re: Sierra Chart Plugin [Re: AndrewAMD] #479358
03/23/20 02:44
03/23/20 02:44
Joined: Oct 2018
Posts: 72
J
JamesHH Offline
Junior Member
JamesHH  Offline
Junior Member
J

Joined: Oct 2018
Posts: 72
Originally Posted by AndrewAMD
There appears to be an error/failure under unknown circumstances. I will not be fixing this because 1) Sierra Chart changed the protocol on me, and 2) I planned on overhauling the plugin in the first place. The overhaul is low on my priority list because I'm working on a much bigger project right now.



Fine, but I guess that means Sierra Cart is unusable with Zorro in the meantime.

Page 14 of 18 1 2 12 13 14 15 16 17 18

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