Topics
23 Oct 2017, 19:51
 2072
 2
18 Aug 2017, 14:57
 2129
 2
Replies

obaum1@gmail.com
03 Aug 2018, 14:02

Hey, 

you are remembering to add 1 after each message to tag 34=?

Tag=34 is the message number and for each message you need to increase by 1.

Example:

TRADE:

        1) Login message: 34=1

        2) Next message: 34=2

Price:

         1) Login message: 34=1

         2) Next message: 34=2

You need  a separate counter for each-of-them. one for the TRADE and one for the Price.

 


@obaum1@gmail.com

obaum1@gmail.com
02 Aug 2018, 13:21

Hey w.zacharewicz,

from the logon messages you submitted I see that Tag 34 have a joined message counter.
*Tag 34 should have separate counter.
Trade: |34=1|
Price: |34=1|


@obaum1@gmail.com

obaum1@gmail.com
27 Jul 2018, 01:03

Hey, 

Can you share the request that work and the one that breaks?


@obaum1@gmail.com

obaum1@gmail.com
25 Jul 2018, 03:38

Hey w.zacharewicz,

senderSubID = // unique string

For each stream connection check if you are using unique SenderSubID (tag 50= in FIX message)

this is what did it for me..


@obaum1@gmail.com

obaum1@gmail.com
28 Jun 2018, 12:29

Hey megha,

The FIX API Host has changed. try: h1.p.ctrader.cn 

 


@obaum1@gmail.com

obaum1@gmail.com
12 Jan 2018, 01:10

Hey #EOL

Thanks for repaying :)

I want to sync the robot db with the actual open positions.

**I would like to get all active positions with there ClOrdID if it possible.

 

I know its indicated on a bigger problem if the db and the broker positions are not sync, but it do happens once in awhile and would like to try to track down the bug.

So for now I wouldI like to be able to re-sync the db with the broker open positions.

 

For example:

- now I have a bug:

- The Settings:  400 active positions in the db, 401 active position in the broker

---

How can I found the missing one?

Thanks!!


@obaum1@gmail.com

obaum1@gmail.com
25 Dec 2017, 00:56

Hey Again :)

Maybe the question should be, which request should I make to get all my open positions include the ClOrdID parameter, 
or how to get Execution Report (MsgType(35)=8) to each of my open positions?

I don't if I used OrderMassStatusRequest, but it OrderMassStatusRequest didn't return what I needed


Thanks!!


@obaum1@gmail.com

obaum1@gmail.com
20 Dec 2017, 14:11

Hey #EOL :)

doing what you wrote -> "just use unique SenderSubID" solved the problem!!
Thank you for that!!!!!


@obaum1@gmail.com

obaum1@gmail.com
14 Dec 2017, 02:25

Hey #EOL,

Thanks for the reply!!
But it doesn't work for me. I get an empty string from the stream in the first response and it dies.

Any ideas? 

The Spotware team says "not possible to have two connections to a single set of credentials."
I tried opening two applications(with two sets credentials.) one for each client and, still doe not work.
Any ideas here? 

Thanks!!


@obaum1@gmail.com

obaum1@gmail.com
13 Dec 2017, 22:32

Thanks guys!!! real help here!!

 Request For Positions kill me :)

 

Thanks!!


@obaum1@gmail.com

obaum1@gmail.com
13 Dec 2017, 02:35

Hey Panagiotis,

It doesn't return 0,. and my loop until I get an error ""Unable to read data from the transport connection: A non-blocking socket operation could not be completed immediately"

What can I do?


@obaum1@gmail.com

obaum1@gmail.com
13 Dec 2017, 01:48

Hey Team :)

Thanks for the reply!!
I have bot running in one machine and I want to access the same account form a custom view I build i build for debug.
How can I make it work?

Thanks!!


@obaum1@gmail.com

obaum1@gmail.com
09 Nov 2017, 01:40

Anyone?

Maybe the question should be, would it be possible to create a system with no slippage? 

Thanks!!


@obaum1@gmail.com

obaum1@gmail.com
15 Oct 2017, 17:27

I just understated that I don't need the IP and I can use the Host name. His doesn't changed.

You can try and be smart all day long but in the end sometimes you are just plain stupid :)

Go Algo!


@obaum1@gmail.com

obaum1@gmail.com
09 Oct 2017, 20:00

Hey Panagiotis,

OK, the tag 721 was super helpful!!!

And thanks in general!!! :)


@obaum1@gmail.com

obaum1@gmail.com
07 Oct 2017, 01:08

Hey :)

Thanks for the reply!!

If I understood right. I can't set TakeProfit and StopLoss via the FIX API.

To overcome this problem I need to work with Limit Order & Stop Order.

EXAMPLE:

  • 1) I have the following position running:
    • 1) (EURUSD, Buy, 1,000, EnterPrice 1.17852)
  • 2) I want to set TakeProfit of 10 pips for that position
  • 3) I set LimitOrder with (Sell, 1,000, TargetPrice: 1.17952)
  • 4) when the target price is triggered now I have two running positions 
    • 1) (EURUSD, Buy, 1,000, EnterPrice 1.17852)
      • 2) (Sell, 1,000, EnterPrice: 1.17952)
  • 5) secondPosition - firstPosition = 10 pips

Each trade commission is around 0.08 -> so I payed 0.16 in commission because I opened two positions.

If I open my position via Connect API I can set TakeProfit & StopLoss and the position will "close it self" and I paid 0.08

If this is correct, so maybe I can create trades with the FIX API and modify the position TakeProfit & StopLoss with Connect API?

Thanks!!!


@obaum1@gmail.com

obaum1@gmail.com
05 Oct 2017, 23:23

Hey :)

If I understand right, If I have for the following EXAMPLE: (Buy, EURUSD, 1,000, EnterPrice 1.17852) and I want
To associated Limit Order & Stop Order I need to do the following:

TakeProft Steps:
1) Set Buy, EURUSD, 1,000, EnterPrice: 1.17852 
2) Set Limit Order for Sell, 1,000, TargetPrice: 1.17952
3) When target price trigged, I have two positions that hold the profit of 10 pips


StopLoss Steps:
1) Set Buy, EURUSD, 1,000, EnterPrice: 1.17852 
2) Set Stop Order for Sell, 1,000, TargetPrice: 1.17752
3) When target price trigged, I have two positions that hold the loss of 10 pips

So far I'm good?

If this is case it seems that the cost in commissions is higher then using 
The Connect API which holds the option for setting position TakeProfit & StopLoss.


@obaum1@gmail.com

obaum1@gmail.com
05 Oct 2017, 23:08

Hey :)

 

Yes I can reproduce this using the example project. 
But now I understand why.. Its happens because the size of the buffer is 1024 which is to small in that case.

Is there a way to get the size of the incoming message before I call SslStream.Read?

Or, should I just set my buffer to be bigger?

Thanks!!


@obaum1@gmail.com

obaum1@gmail.com
05 Oct 2017, 16:06

Hey :)

Thanks for the Reply.

It's look like it return a truncate message every 5-8 responses when getting the positions at the first* time.
*After you requested the account positions for the first time.

Is this a normal behavior?

Thanks!!!  


@obaum1@gmail.com

obaum1@gmail.com
26 Sep 2017, 09:46

Cool thank you my friend!!


@obaum1@gmail.com