noob7
noob7's avatar

Info

Username:noob7
Name:noob7
Member since: 20 Mar 2020

About

None

Signature

None

Last Forum Posts

@ProtoOATrendbarPeriod.H2 missing:  22 Sep 2022, 15:20


Hi,

Is there option to get trendbars for H2 from open api? I couldnt find it in documentation. 

@Get info if position has been closed by stop loss or take profit:  25 Aug 2022, 12:15


PanagiotisCharalampous said:

Hi noob7,

Did you try checking executionEvent.Position.HasStopLoss and  executionEvent.Position.HasTakeProfit?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

Yes and it was false also.

@Get info if position has been closed by stop loss or take profit:  24 Aug 2022, 21:07


I have code that listens to all trading messages. I`m checking if given message is: PROTO_OA_EXECUTION_EVENT and order ClosingOrder and order type STOP_LOSS_TAKE_PROFIT. But I cannot find which of these 2 closed position. Was it by stop loss or take profit? I`m trying to use code:

var executionEvent = ProtoOAExecutionEvent.CreateBuilder().MergeFrom(msg.Payload).Build();

var byStopLoss = executionEvent.Order.HasStopLoss

var byTakeProfit = executionEvent.Order.HasTakeProfit

but they are always false.

@Logout doenst seem to work:  14 Jul 2022, 00:31


I found that I havent been disposing sslStream as well after Logout. Issue is resolved.

@Logout doenst seem to work:  14 Jul 2022, 00:26


I open around 10 connection at the same time. After the job is done I logout them. Then open again 10 connections then logout then again 10 connections. Problem is that on 26th connection I got error. I guess is related to limitations of 25 concurrent connections per application. I`m sure that I never have over 10 active connections because I logout from them each time I go to next batch. What I`m doing wrong here?

@Unable to log onto my live accounts:  12 May 2022, 19:01


amusleh said:

noob7 said:

@amusleh

Because of this change Ive lost over 100 euro.

Why you didnt notify me about this breaking changes?

Hi,

The change was not a breaking change, our old proxies are still working and they resolve to new nearest proxies.

We are still investigating the connection issue.

On Old proxy I couldnt connect. On new one everything is working fine.

@Unable to log onto my live accounts:  12 May 2022, 12:01


@amusleh

Because of this change Ive lost over 100 euro.

Why you didnt notify me about this breaking changes?

@Order with stoploss lower than spread:  28 Jan 2022, 14:12


When I want to open position with stop loss that is lower than spread, system opens position but doesnt set stop loss. Why is that? Is there a way to force opening posiiton with stop loss or to just not open position without stop loss in this case?

@Errors on login:  07 Jan 2022, 10:08


I`m using code from your old examples:

var msgFactory = new OpenApiMessagesFactory();

var authMsg = msgFactory.CreateAppAuthorizationRequest(_clientId, _clientSecret);
await SendAndWaitForMessage(_apiSocket, authMsg);

var authAccMsg = msgFactory.CreateAccAuthorizationRequest(token, (long) _accountId);
var response = await SendAndWaitForMessage(_apiSocket, authAccMsg);

When sending SendAndWaitForMessage of authAccMsg I`m getting error:

"An established connection was aborted by the software in your host machine."

This error started to popup few days ago. Before this time everything was working fine I didnt change my sourcecode.

Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.

No uploaded.

Warning! Executing cBots downloaded from this section may result in loss of funds. Use them at your own risk.

No uploaded.