|
Re: Sierra Chart Plugin
[Re: AndrewAMD]
#479313
03/17/20 05:57
03/17/20 05:57
|
Joined: Oct 2018
Posts: 72
JamesHH
Junior Member
|
Junior Member
Joined: Oct 2018
Posts: 72
|
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]
#479353
03/21/20 23:28
03/21/20 23:28
|
Joined: Oct 2018
Posts: 72
JamesHH
Junior Member
|
Junior Member
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]
#479358
03/23/20 02:44
03/23/20 02:44
|
Joined: Oct 2018
Posts: 72
JamesHH
Junior Member
|
Junior Member
Joined: Oct 2018
Posts: 72
|
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.
|
|
|
|