Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 06:08:30 +0000



Live FXCM Trading from ACSIL

View Count: 1462

[2018-10-16 13:31:30]
User53496 - Posts: 34
Hi Support,

I connected sierra chart to my live FXCM trading account.
Now I want to send an order with a stop and a profit target via ACSIL.


In demo it all worked fine, but when I sent a live order, it was filled, but the stop and target that I defined
were 2 different orders in FXCM: SE order (stop entry) and LE (Limit Entry) order when looking at FXCM's Trade Station.

1. How can I send an order with a stop and profit that will match 1 order like in FXCM's trading station?

here is the acsil code I used for entering:


  s_SCNewOrder NewOrder;
  NewOrder.OrderQuantity = 1000;
  NewOrder.OrderType = SCT_ORDERTYPE_MARKET;
  NewOrder.TimeInForce = SCT_TIF_GOOD_TILL_CANCELED;

  //Define the Attached Orders to be attached to the main Market order
  //Target 1
  NewOrder.Target1Offset = 10 * sc.TickSize;
  NewOrder.AttachedOrderTarget1Type = SCT_ORDERTYPE_LIMIT;

  // Common Step Trailing Stop
  NewOrder.StopAllOffset = 10 * sc.TickSize;
  NewOrder.AttachedOrderStopAllType = SCT_ORDERTYPE_STEP_TRAILING_STOP;
  NewOrder.TrailStopStepPriceAmount = 10 * sc.TickSize;

  return sc.BuyEntry(NewOrder);

Thanks,
Eyal
[2018-10-16 21:27:47]
Sierra Chart Engineering - Posts: 104368

were 2 different orders in FXCM: SE order (stop entry) and LE (Limit Entry) order when looking at FXCM's Trade Station.

1. How can I send an order with a stop and profit that will match 1 order like in FXCM's trading station?
Yes this is true. And to have a single order on the FXCM side like you are asking about is not supported.
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
[2018-10-17 06:39:31]
User53496 - Posts: 34
OK.
So what is the best way to have an OCO pair in FXCM? how do i code it in acsil?
The problem is there is a huge difference between demo and live... so I dont understand what will work in live

Should I use "OCOGroup1Quantity"?
Should I define NewOrder.OrderType = SCT_ORDERTYPE_OCO_***;

thanks
Eyal
[2018-10-17 09:00:55]
nioko54130 - Posts: 108
Hello dear Support! and dear Sc user!

Thank's for this topic! very interesting for me!

I'm planning to use my automated alert with the SC futures data feed and trade it on a FXCM account!
i would like to test it first in a demo account with FXCM to enter my trade in simulated mode based on a futures
data feed, but filled on the fx/Cfd fxcm feed for the execution.

If i understand well this topic, we are not able to set a stop loss and a take profit with FXCM when we enter an orders? Complicated!

All help are welcome!
Thank's

Nico
[2018-10-17 09:48:16]
User53496 - Posts: 34
Hi, more details (i'm beginning to figure out things):

The problem is with defining a bracket order. In fxcm's Trading Station it is defined as 1 order,
but SC sends 2 orders.
My live fxcm account is defined as a MT4 account. possibly this is the problem?

As written in SC fxcm page:

"When using Attached Orders in Sierra Chart, whether they are managed on the client-side or the server-side, both the Target order and Stop order are distinct orders which are managed by Sierra Chart either on the client-side or the server-side. These are not FXCM managed orders. The parent order, the Target order and the Stop order are three separate orders. That is how they will appear in FXCM Trading Station. Sierra Chart does not use any child order functionality on the FXCM side for Target or Stop orders since it is incompatible and for various other reasons."

Eyal.
[2018-10-17 17:30:48]
Sierra Chart Engineering - Posts: 104368

So what is the best way to have an OCO pair in FXCM? how do i code it in acsil?
This is not supported and it is not possible. And from our perspective, this is never anything we would support. Server-side bracket orders almost always have all kinds of problems when used by outside programs which they do in the case of FXCM which results in complaints, and they simply cannot be properly supported. Sierra Chart server-side managed bracket orders work very well.



If i understand well this topic, we are not able to set a stop loss and a take profit with FXCM when we enter an orders? Complicated!
You can but they are managed by Sierra Chart. To use them you need to enable this option:
http://www.sierrachart.com/index.php?page=doc/GlobalTradeSettings.html#UseServerSideBracketOrders
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
Date Time Of Last Edit: 2018-10-17 18:19:00
[2018-10-17 19:22:18]
User53496 - Posts: 34
you did not answer one important question:
Is it the account type (FXCM mt4 account) that causes a problem?

i tried to send a bracket via acsil with no success. Hedging is disabled for the account
will try again with UseServerSideBracketOrders enabled.


Thanks,
Eyal
[2018-10-17 20:43:35]
Sierra Chart Engineering - Posts: 104368
you did not answer one important question:
Is it the account type (FXCM mt4 account) that causes a problem?
No if you are able to use your FXCM account at this time with Sierra Chart.

i tried to send a bracket via acsil with no success.
We need to understand what you mean by this. Could you explain more why you say with no success. We reviewed your source code just now and it is correct. That is good.
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
[2018-10-18 06:45:44]
User53496 - Posts: 34
What I do is:
Send an entry order with attached target and stop (as in the code I sent)
Defined UseServerSideBracketOrders to true in settings.
Hedging is disabled in the fxcm account

When I look at FXCM Trading Station, I see the position, and two seperate orders for the profit and stop.
Once one of the orders get hit (profit or stop) it creates an opposit position (a hedge) instead of closing the existing one
and Trading Station collapse.
Only when I close one of the positions via the fxcm app on my phone, I can reload Trading Station.
[2018-10-19 16:50:58]
Sierra Chart Engineering - Posts: 104368

Once one of the orders get hit (profit or stop) it creates an opposit position (a hedge) instead of closing the existing one
Okay we need to look into this. Was this with live trading? Or demo trading? And what is the Service Order ID of the parent order? We will look at this and contact FXCM about it.

and Trading Station collapse.
Only when I close one of the positions via the fxcm app on my phone, I can reload Trading Station.
This is some kind of problem on the Trading Station side. Not with Sierra Chart.
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
Date Time Of Last Edit: 2018-10-19 16:51:21
[2018-10-21 05:28:31]
User53496 - Posts: 34
"Okay we need to look into this. Was this with live trading? Or demo trading? And what is the Service Order ID of the parent order? We will look at this and contact FXCM about it."

live trading:

Parent order:
2018-10-18 07:25:01.653  EURAUD  FXCM
Service Order ID:1660091277  Market  1000 Sell

Hedged by child:
2018-10-18 07:25:55.192  EURAUD  FXCM
Service Order ID:1660091279  Limit  1000  Buy

thanks,
Eyal
[2018-10-24 23:58:52]
Sierra Chart Engineering - Posts: 104368
We have looked at this, now and what we can see is that you are not using the Sierra Chart FXCM DTC connection. So we have no ability to look into this. You need to ask FXCM about this. If you are using the FXCM FIX connection directly, we do not provide any support for that. And we do not recommend using it.

You need to follow the instructions here to use your live FXCM account with Sierra Chart:
FXCM Trading Service
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
Date Time Of Last Edit: 2018-10-25 00:04:24
[2018-10-25 05:38:24]
User53496 - Posts: 34
thanks.
i have changed my fxcm account type (from mt4 to tradingStation) and waiting for a DTC connection approval from you (sent the LOD).

Eyal
[2018-10-25 16:22:46]
Sierra Chart Engineering - Posts: 104368
The approval is by FXCM. There is no approval required from us. This whole process is inefficient because of FXCM. We will make sure that letter of direction has been sent.
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
[2018-10-28 15:13:12]
User53496 - Posts: 34
Hi,

I got the FIX credentials from FXCM, and managed to connect via FIX.

But as you reccommended, I prefer using the FXCM DTC connection.
How do I do it? where do I put the Login and Password?


Thanks,
Eyal
[2018-10-30 05:01:58]
Sierra Chart Engineering - Posts: 104368
We apologize for the delay.

Until such time that we hear from FXCM stating they have assigned your FXCM account to our common FIX order routing connection, you cannot use the DTC connection.

But at that time you will need to follow the instructions starting at step 5 here:
FXCM Trading Service: Setup Instructions

In that case there is no need for a username or password.
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
Date Time Of Last Edit: 2018-10-30 05:02:17

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

Login

Login Page - Create Account