API Support Forum
User Profile

Viewing User Profile for: MFrasson3344


About

Nov 09, 2015 05:19 PM

Sep 05, 2018 09:19 AM

Sep 05, 2018 09:53 AM



Post Statistics
MFrasson3344 has contributed to 23 posts out of 4435 total posts (0.52%) in 1346 days (0.00 posts per day).

20 most recent posts:

API Support » Introducing Broker Sep 05, 2018 @ 09:19 AM (Total replies: 1)

Hi,

it is possible to have the introducing broker ID or Name or something like that (by API .NET) to identify who is the introducing broker?

Thanks.
Mauro frasson


API Support » Bracket Order -> Price Modification Sep 14, 2017 @ 05:54 AM (Total replies: 5)

Yes, I did not see the second overload of the function. Now works!

And... Can you describe OSOGroupingMethod? I cannot find it in documentation.

Thanks.
Mauro frasson


API Support » Trailing Stop Loss & Trailing Stop Limit Sep 08, 2017 @ 09:43 AM (Total replies: 5)

Perfect! Good choice.

Thanks
Mauro frasson


API Support » Bracket Order -> Price Modification Aug 24, 2017 @ 05:09 AM (Total replies: 5)

I tried, but it does not work. I've tried setting DeltaTicks and DeltaTicks2 of the primary order, and then also of the linked orders, but nothing happens. The price of linked orders does not change if I change the price of the main order. If I change the quantity instead of the price, everything works.

Are you sure DeltaTick and Deltatick2 work? Can you write a sample code please?
Mauro frasson


API Support » Trailing Stop Loss & Trailing Stop Limit Aug 24, 2017 @ 04:55 AM (Total replies: 5)

>>What version are you using?
Last Version -> 3.5.14.36 (Api.dll)
Environment: Developer (api.gainfutures.com)


>>Was the behavior different previously? If so, when did it change?
I do not know. We are adding now Trailing Stop to our application.


>>Could you please elaborate on the programmatic context in which you are seeing the missing ExtData?

1) Insert a Trailing Stop Loss or a Trailing Stop Limit using SetTSData to set Reference and Delta (ExtData is not null)
2) Wait until the price of trailing order change automatically.
3) check the ExtData of order and you can see that it is null.
Mauro frasson

Edited by MFrasson3344 on Aug 24, 2017 07:57 AM
Edited by MFrasson3344 on Aug 24, 2017 09:07 AM
Edited by MFrasson3344 on Aug 24, 2017 09:08 AM

API Support » Trailing Stop Loss & Trailing Stop Limit Aug 22, 2017 @ 08:04 AM (Total replies: 5)

Hi,

The ExtData of a Trailing Stop Loss and a Trailing Stop Limit order type is null after the first price update.
Is this correct? or could be an API bug?
Mauro frasson


API Support » Bracket Order -> Price Modification Aug 22, 2017 @ 04:43 AM (Total replies: 5)

Hi,

If I place a bracket order from Trader Developer and I modify the price of the "main" order on DOM (drag & drop), the linked orders are changed maintaining the same offset.

But, if I place a bracket order from my application and I modify the price of the "main" order from my application or from Trader developer the linked orders are NOT changed.

I think I forgot to set some property. Maybe DeltaTicks and/or DeltaTicks2? And if so, how should they be set?

Thank you.
Mauro frasson


API Support » OCO orders between 2 apps Jul 18, 2017 @ 01:11 PM (Total replies: 2)

I connected Trader dev and my application at the same time.
I have placed 2 OCO orders from Trader dev.
My application correctly receives the various OnOrderStateChanged, OnOrderConfirmed events, but the OCO property of the order is empty. Instead, I would expect it to be valued.
Now, if i disconnect my application and reconnect it, the OCO property is valued.

I think there is a synchronization problem with OCO when 2 apps are connected at the same time.
Mauro frasson


API Support » Subscription disappeared Jun 13, 2017 @ 03:25 PM (Total replies: 1)

In my own application i subscribe a symbol (for example "ESM7") to receive Price/Bid/Ask on OnPriceTick event.

Now, if i execute an order (buy or sell is the same) using OEC Trader developer, and after i exit the position using "Exit All (MKT)" button (in the position form), the subscription of "ESM7" in my own application disappears.

AutoSubscribe property is False. If i set AutoSubscribe = True the problem is solved.

Could be an API bug?
Edited by MFrasson3344 on Jun 13, 2017 03:51 PM

API Support » What is the last API version? May 25, 2017 @ 06:17 PM (Total replies: 9)

I found the problem. In the references I removed "System.Xml.Linq" and now your project is compiled successfully. There seems to be an ambiguous reference that the compiler fails to solve. So please, try to investigate about this conflict between System.Xml.Linq and your dlls (in particolar CommLib).

Mauro frasson

Edited by MFrasson3344 on May 25, 2017 06:17 PM
Edited by MFrasson3344 on May 25, 2017 06:38 PM

API Support » What is the last API version? May 25, 2017 @ 05:32 PM (Total replies: 9)

Even with your project, I continue to have the same problem.

I'm using Visual Studio 2013 and framework 4.5.2.
Instead, you used the framework 4.6 and, what version of Visual Studio?

The problem may be the version of the Framework or the Visual Studio version.
Please try to test your project using Framework 4.5.2 and, if possible, Visual Studio 2013.
Mauro frasson

Edited by MFrasson3344 on May 25, 2017 05:33 PM

API Support » What is the last API version? May 25, 2017 @ 12:58 PM (Total replies: 9)

Yes sure! I do not mix dll's. it was just a test.
Mauro frasson


API Support » What is the last API version? May 25, 2017 @ 11:41 AM (Total replies: 9)

I tried replacing CommLib with the old version (distributed with the API 3.5.14.1) and the compilation also works in VB.net. So I confirm that the problem is in CommLib.
Mauro frasson


API Support » What is the last API version? May 25, 2017 @ 10:51 AM (Total replies: 9)

I tried adding the three DLLs one at a time to the references. Compiling fails when I add Commlib.dll (Api.dll and Protosharp.core.dll already added). So the problem is in Commlib that for any reason it is not compatible with VB.net.
Mauro frasson


API Support » What is the last API version? May 25, 2017 @ 10:01 AM (Total replies: 9)

I'm using the framework 4.5.2, I created a new project in VB (Windows form), I added references to APIs and I compiled. Visual Studio (2013) fails to compile but it does not report any specific error. He only tells me that he can not compile because there are some mistakes. But there is nothing on my list of errors, and there are no lines of code written by me, just the form and API references.

Then I did the same thing with a C# project (always windows form) and it worked.

So there must be something that does not work with VB.net.
Mauro frasson


API Support » What is the last API version? May 25, 2017 @ 05:28 AM (Total replies: 9)

I use api version 3.5.14.1 downloaded from nuget.org and it works.
But now OEC Trader Developer use the 3.5.14.26 version.
I tried to compile my project (C#) using 3.5.14.26 but does not work.
Is the 3.5.14.1 the last version for external projects? or am I wrong?

Thank you.
Mauro frasson


API Support » PriceMultiplier (Contract) Feb 16, 2016 @ 12:17 PM (Total replies: 0)

The price in Market data (Trade/Bid/Ask/DOM) is a double.
Is it already ok with PriceMultiplier or not?

Thanks.

Mauro frasson

Market Data » Tick Subscriptions Feb 12, 2016 @ 10:43 AM (Total replies: 1)

Other question...

Is there a way to understand if a SubscribeTick fail for Max Number of subscriptions reached?
I know an OnError event is raised.. but in the event there is no reference to subscription.

Edited by MFrasson3344 on Feb 12, 2016 at 11:53:59

Market Data » Tick Subscriptions Feb 12, 2016 @ 10:42 AM (Total replies: 1)

I know there are some limits about the subscriptions, but it is not clear if RequestTicks decrements or not the number of subscriptions that i have.
so, i have 5 tick subscriptions available. If i use RequestTicks to request historical data, it decrements this number or not?

I ask this because i'm not sure that the subscriptions process works fine (using SubscribeTicks).
Sometimes i can subscribe 5 symbols, sometimes 4. I use an intensive multitasking and could it be a problem?
I must lock incoming subscription requests until the current subscription is done?

Thanks in advaced


Mauro frasson
Edited by MFrasson3344 on Feb 12, 2016 at 10:44:29

API Support » OECapi inside a DLL (No UI thread) Jan 26, 2016 @ 05:03 PM (Total replies: 6)

Ok thank you.

I think i'll run a secondary thread from my class using your first solution.

Mauro frasson