Gamestudio Links
Zorro Links
Newest Posts
Specular Shader
by Dooley
Yesterday at 18:17
is 3dgs byDirextX or Opengl?
by Dooley
Yesterday at 18:09
Tensorflow and Python 32 bit
by jcl
Yesterday at 13:28
New Zorro version 2.12
by jcl
05/21/19 17:23
Mixed frequency history (M1+D)
by jcl
05/20/19 12:21
This is my fault-tolerant ATR indicator for you
by OptimusPrime
05/18/19 16:35
missing trade variables
by AndrewAMD
05/18/19 12:37
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
5 registered (kvm, Michael_Schwarz, Ayumi, Dooley, 1 invisible), 519 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Newest Members
Reza65, Pritamchakra, h4h4rd, ccm, Pippo
18224 Registered Users
Page 7 of 8 < 1 2 3 4 5 6 7 8 >
Topic Options
Rate This Topic
#477025 - 05/03/19 15:40 Re: Sierra Chart Plugin [Re: AndrewAMD]
AndrewAMD Offline
User

Registered: 02/21/17
Posts: 652
Loc: Chicago
Hi all,

As of Zorro 2.10, it looks like Virtual Hedging will only be a Zorro S feature from that point.

For this plugin in particular, you need NFA flag enabled, and the best Hedge setting is Hedge = 5. This will require Zorro S.

If you are using the free Zorro, you can only use NFA flag enabled and Hedge = 0. This can especially be an issue for portfolio systems using my plugin - in which case, consider Zorro S.

Top
#477091 - 05/16/19 11:34 Re: Sierra Chart Plugin [Re: AndrewAMD]
h4h4rd Offline
Newbie

Registered: 05/16/19
Posts: 9
I've tried very hard to connect SierraChart to Zorro.



Login 0 SierraChart..
!1: Connected to SC DTC Protocol server. Service=interactive_brokers.trading|SymbolSettings=interac
!1: TradeAccounts detected: DUXXXXXX,Sim1
!1: Using: DUXXXXXX
!1: Balance synchronized.
!1: TradeAccount is not set
!1: Failed to confirm historical orders
!1: Sync hist orders failure.
Can't connect!

I've tried both with Sierrachart logged into IB, or with the Sierrachart data service.

I tried various ports, TLS on off, zlib, real/demo accounts etc

I am using the latest Sierrachart 1915 and plugin versions as well as Zorro Beta 2.11, also tried non-beta 2.03.

I am able to connect to DTC from python and download data.

login string (tried a variety of alternatives here, including empty string which also works):
ta:DUXXXXXX h:127.0.0.1 p1:11099 p2:11097

script run is:
void main()
{
// Lookback = 0;
StartDate = 20190201;
EndDate = 20190315;
GapDays = 3; // detect gaps
Verbose = 2;
assetList("AssetsFix");
asset("EUR/USD");
assetHistory(0,1);
}

Please help!
Thanks a lot.


On Sierrachart the error is:

DTC client #27. 127.0.0.1 | Received logon request. | 2019-05-16 05:30:04
DTC client #27. 127.0.0.1 | Sent successful Logon response message to client. Username: _. Result text: Connected to SC DTC Protocol server. Service=interactive_brokers.trading|SymbolSettings=interactive_brokers.trading | 2019-05-16 05:30:04
DTCServer (1) | Socket gracefully closed by remote side. | 2019-05-16 05:30:04
DTCServer (1) | Close event error. Windows error code 10053: An established connection was aborted by the software in your host machine. | 2019-05-16 05:30:04 *
DTCServer (1) | Graceful close received or receive error. Shutdown complete. Closing socket now. | 2019-05-16 05:30:04





Attachments
sierrasettings.png (3 downloads)



Edited by h4h4rd (05/16/19 13:39)

Top
#477096 - 05/16/19 15:16 Re: Sierra Chart Plugin [Re: h4h4rd]
h4h4rd Offline
Newbie

Registered: 05/16/19
Posts: 9
I also tried an older version, 1.96, same issue

Top
#477097 - 05/16/19 15:33 Re: Sierra Chart Plugin [Re: h4h4rd]
h4h4rd Offline
Newbie

Registered: 05/16/19
Posts: 9
I'm on a demo account, would that be the issue?

I don't have problems accessing dtc data through python

Top
#477098 - 05/16/19 15:41 Re: Sierra Chart Plugin [Re: h4h4rd]
AndrewAMD Offline
User

Registered: 02/21/17
Posts: 652
Loc: Chicago
This might be an IB specific issue, but I cannot confirm this.

I tweaked the DLL based on your error log. Can you try it out?

See attachment.


Attachments
scplugin.zip (3 downloads)


Top
#477100 - 05/16/19 15:51 Re: Sierra Chart Plugin [Re: AndrewAMD]
h4h4rd Offline
Newbie

Registered: 05/16/19
Posts: 9
I tried it without IB, same issue, trying your plugin now.

Top
#477102 - 05/16/19 15:56 Re: Sierra Chart Plugin [Re: h4h4rd]
h4h4rd Offline
Newbie

Registered: 05/16/19
Posts: 9
works!

so the issue was that there were no historical orders?!

Thanks so much!

I wonder though what was different for me compared to other who haven't had this issue?


Edited by h4h4rd (05/16/19 15:57)

Top
#477103 - 05/16/19 16:08 Re: Sierra Chart Plugin [Re: h4h4rd]
AndrewAMD Offline
User

Registered: 02/21/17
Posts: 652
Loc: Chicago
Same issue on other brokers? This means Sierra Chart changed the DTC server again.

I tweaked it again, but this time the historical order requests syncs up the particular trade account. (Apparently they decided they require this field now.)

See attached.


Attachments
scplugin.zip (4 downloads)


Top
#477105 - 05/16/19 16:15 Re: Sierra Chart Plugin [Re: AndrewAMD]
h4h4rd Offline
Newbie

Registered: 05/16/19
Posts: 9
I was having this issue regardless of whether I was connected to IB or just using SC data service.

The first plugin you provided above fixed that.

I have an issue now, the plugin starts downloading all history for that instrument (3 gb for USDNOK) in sierrachart, while being stuck on "Data is being downloaded for a remote source. Download will start when this is done"

What's a good way of restricting 1) how much data SC will download off the web, and 2) more importantly, how much data gets transferred to Zorro, as this seems to be rather slow.

Thanks again!


Edited by h4h4rd (05/16/19 16:24)

Top
#477107 - 05/16/19 16:26 Re: Sierra Chart Plugin [Re: h4h4rd]
h4h4rd Offline
Newbie

Registered: 05/16/19
Posts: 9
The second plugin you provided recreated the problem!

Back to failed to confirm historical orders and Sync hist orders failure. Can't connect.


The first plugin you posted worked, and changed sync hist orders to warning only.

TradeAccount not set occurs on all versions of the plugin so far.




Edited by h4h4rd (05/16/19 16:30)

Top
Page 7 of 8 < 1 2 3 4 5 6 7 8 >



Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de