Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 15:56:47 +0000



trying to use IQfeed and IB to trade

View Count: 4311

[2013-05-06 01:52:40]
Sierra Chart Engineering - Posts: 104368
What version of Sierra Chart are you running?

Also, could you please login to this Support Board using the very same account that you log into Sierra Chart with. You can log out and log in at the top left of this page.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2013-05-06 18:58:09]
Sierra Chart Engineering - Posts: 104368
Update the version 970 to 971.

It is possible the problem relates to Administrator level access. Please run all copies of Sierra Chart with Administrator access:
http://www.sierrachart.com/index.php?l=doc/MultipleServices.html#SharingWithAdminAccess



Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2013-05-07 15:26:33]
User32496 - Posts: 26
i updated to 971
now i have 2 SC with both IQfeed and IB
but:
but one of the dll i downloaded isn't loading.
when trying to recompile it i get an error:
"Source file "DeltaDivergence.cpp" is missing the SCDLLName line. Refer to ACSIL documentation."
can it be that i had the v5 (which i found on the support board) and sc added it to user contribution as v3?
when finished that and tried to compile i got this:

-- Starting build of Custom Studies Source File: DeltaDivergence_v5.cpp. -- 18:14:37
"C:\SierraChart\CPPCompiler\bin\g++.exe" "C:\SierraChart\ACS_Source\DeltaDivergence_v5.cpp" -march=i686 -mtune=i686 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -o "C:\SierraChart\Data\DeltaDivergence_v5.dll"

In file included from c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/string:54:0,
from C:\SierraChart\ACS_Source\DeltaDivergence_v5.cpp:8:
c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.h: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(const std::basic_string<_CharT, _Traits, _Alloc>&) const':
c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.h:2226:31: error: expected unqualified-id before '(' token
In file included from c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/string:55:0,
from C:\SierraChart\ACS_Source\DeltaDivergence_v5.cpp:8:
c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.tcc: In member function 'std::basic_string<_CharT, _Traits, _Alloc>::size_type std::basic_string<_CharT, _Traits, _Alloc>::rfind(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type) const':
c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.tcc:786:17: error: expected unqualified-id before '(' token
c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const std::basic_string<_CharT, _Traits, _Alloc>&) const':
c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.tcc:923:36: error: expected unqualified-id before '(' token
c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const std::basic_string<_CharT, _Traits, _Alloc>&, std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type) const':
c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.tcc:940:36: error: expected unqualified-id before '(' token
c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT*) const':
c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.tcc:956:36: error: expected unqualified-id before '(' token
c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _CharT*) const':
c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.tcc:972:36: error: expected unqualified-id before '(' token
c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type) const':
c:\sierrachart\cppcompiler\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/basic_string.tcc:988:36: error: expected unqualified-id before '(' token
C:\SierraChart\ACS_Source\DeltaDivergence_v5.cpp: In function 'int scdll_DLLVersion()':
C:\SierraChart\ACS_Source\DeltaDivergence_v5.cpp:10:1: error: redefinition of 'int scdll_DLLVersion()'
C:\SierraChart\ACS_Source\DeltaDivergence_v5.cpp:9:1: error: 'int scdll_DLLVersion()' previously defined here
C:\SierraChart\ACS_Source\DeltaDivergence_v5.cpp: In function 'const char* scdll_DLLName()':
C:\SierraChart\ACS_Source\DeltaDivergence_v5.cpp:10:1: error: redefinition of 'const char* scdll_DLLName()'
C:\SierraChart\ACS_Source\DeltaDivergence_v5.cpp:9:1: error: 'const char* scdll_DLLName()' previously defined here
-- End of Build -- 18:14:39

[2013-05-07 19:32:44]
User32496 - Posts: 26
1 more q. pls
after connecting ib as execution, when trying to send an order (not simulated) from the trade window - i get nothing. no rejection nor execution on my ib account. also when connecting to ib at the open there is no request on ib tws for api connection
any idea?
thanks
[2013-05-07 20:43:15]
Sierra Chart Engineering - Posts: 104368
Do you have Trade >> Trade Simulation Mode On disabled?

Check the Trade >> Trade Service Log for any Error messages when you submit the order.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2013-05-07 20:45:47]
Sierra Chart Engineering - Posts: 104368
We need to see the complete source code you are building a custom studies DLL for. Please post it here.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2013-05-08 04:57:23]
User32496 - Posts: 26
trade simulation mode on is disabled
trade service log is empty
orders and positions window: i do get the orders but non are sent to IB (although sc do get the correct positions from IB)

the code i trying to compile is the delta divergence that was posted by one of the users


attachmentDeltaDivergence_v5.cpp - Attached On 2013-05-08 04:55:43 UTC - Size: 12.31 KB - 654 views
[2013-05-09 02:28:32]
Sierra Chart Engineering - Posts: 104368
Use the attached file.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
attachmentDeltaDivergence_v5.cpp - Attached On 2013-05-09 02:28:29 UTC - Size: 12.28 KB - 749 views
[2013-05-09 02:30:05]
Sierra Chart Engineering - Posts: 104368
Is the status of the orders you are sending stuck in the Order Sent state?

If so, please contact Interactive Brokers about this.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2013-05-09 05:24:26]
User32496 - Posts: 26
thanks for fixing the cpp

regarding the orders execution:
the status of the orders are pending open (and the child orders are pending as well due to the parent not filled)
that's what you call "stuck"?
i have no problem getting from IB the correct position for that account...
[2013-05-09 05:54:52]
User32496 - Posts: 26
i spoke with IB api support in london
after several tests they are sure i don't have any issues sending manual orders.

after trying more thing i found that the problem is because i get @ES# from another SC (with IQfeed) and trying to send orders with that symbol to IB. when sending orders for the IB contract name
ES-201306-GLOBEX there is no problem sending.
so. how do i tell SC that @ES# = ES-201306-GLOBEX when executing orders?
[2013-05-09 21:00:24]
Sierra Chart Engineering - Posts: 104368
You need to set the Alternate Real-time Update Symbol to ES-201306-GLOBEX . This is explained in step 9 here:
http://www.sierrachart.com/index.php?l=doc/MultipleServices.html#Sharing
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2013-05-12 11:03:56]
User32496 - Posts: 26
thanks.
finally it's working and sending orders to ib
now i went to do some backtesting
i followed here http://www.sierrachart.com/index.php?l=doc/doc_Backtesting.php#ReplayBackTestingAutomatic
but when tried to look over the results as in here http://www.sierrachart.com/index.php?l=doc/doc_Backtesting.php#ViewingBackTestResults
i couldn't find a single trade (though i can c them on the chart)... any idea what am i doing wrong?
here is the cpp file used
attachmentnew_system_test.cpp - Attached On 2013-05-12 11:03:38 UTC - Size: 6.91 KB - 749 views
[2013-05-13 14:02:52]
User32496 - Posts: 26
bump
[2013-05-13 16:17:50]
Sierra Chart Engineering - Posts: 104368
How do you have the controls at the top of the Trade >> Trade Activity Log set?

Did you select Replay/Backtest?

It could be the automated trading system did not generate any trades at all.

We do not provide help with automated trade system debugging. So we did not look at your source code.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account