Topics
Replies
PanagiotisCharalampous
05 Oct 2024, 06:16
RE: failed to get trading status
bronzeboyvn2011 said:
1) My quickfix C++ client can log in IcMarkets cServer now.
20241004-13:42:08.267808000 outgoing >
8=FIX.4.4|9=124|35=A|49=demo.icmarkets.9208883|56=cServer|34=1|57=QUOTE|52=20241004-13:42:08.267|98=0|108=30|141=Y|553=9208883|554=PZOS2560|10=234|
20241004-13:42:08.627457000 incoming <
8=FIX.4.4|9=99|35=A|34=1|49=cServer|50=QUOTE|52=20241004-13:41:40.825|56=demo.icmarkets.9208883|98=0|108=30|141=Y|10=115|
It seems fine!
2) Then I send request to get trading status
20241004-13:42:08.627571000 outgoing >
8=FIX.4.4|9=106|35=g|34=2|49=demo.icmarkets.9208883|52=20241004-13:42:08.627|56=cServer|57=QUOTE|263=0|335=2|336=PRE-OPEN|10=185|
20241004-13:42:08.814645000 incoming <
8=FIX.4.4|9=135|35=3|34=2|49=cServer|50=QUOTE|52=20241004-13:41:41.009|56=demo.icmarkets.9208883|45=2|58=Invalid MsgType, field=35|371=35|372=g|373=11|10=042|
20241004-13:42:08.667864000 outgoing >
8=FIX.4.4|9=106|35=g|34=3|49=demo.icmarkets.9208883|52=20241004-13:42:08.667|56=cServer|57=QUOTE|263=0|335=3|336=PRE-OPEN|10=191|
20241004-13:42:08.846056000 outgoing <
8=FIX.4.4|9=135|35=3|34=3|49=cServer|50=QUOTE|52=20241004-13:41:41.044|56=demo.icmarkets.9208883|45=3|58=Invalid MsgType, field=35|371=35|372=g|373=11|10=043|
The responses have 35=3 (MsgType = Reject). I'm not sure about TradingSessionID of IcMarkets (336=PRE-OPEN). How we can get the correct value for TradingSessionID of IcMarkets' cTrader ?
Hi there,
Message 35=g is not supported by cTrader FIX API. You can find the available messages in the link below
https://help.ctrader.com/fix/specification/
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Oct 2024, 13:53
Hi there,
Please talk to your broker regarding execution issues.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Oct 2024, 13:50
Hi there,
The tool is currently under development.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Oct 2024, 13:48
Hi there,
For the TP, my bot is managing multiple position at the same time, I have to change the TP when the position is opened. So the only option I was thinking about is to store in LocalStorage the TargetPrice for every position and then calculate manually the TP and modify it. Is it my only way?
More or less, yes, you would need to track the orders on your side. It would be better to use the label or comment and a guid to identify them though.
About the Stop Limit order entry, you say that the spread is irrelevant but on some US30 position yesterday I was not filled and I was thinking of the spread.
Let s say that the spread is 3 and I set a Long Stop Limit with a TargetPrice at 100 and a range at 2, is it possible to be filled?
Yes. The spread is not relevant, you need to look at the VWAP DoM instead.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Oct 2024, 08:11
Hi there,
No that is not possible.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Oct 2024, 05:57
Hi there,
See below :)
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Oct 2024, 05:56
Hi there,
Isn't the message self explanatory? You are missing tag 57 in your logon message.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Oct 2024, 05:45
RE: RE: RE: RE: Syncronisation lack of alternative
eliezer_barros said:
PanagiotisCharalampous said:
eliezer_barros said:
PanagiotisCharalampous said:
Hi there,
You can't skip this as you cannot have full access cBots on the cloud. You need to choose one of the two choices.
Best regards,
Panagiotis
How can I stop syncing or choose between using cloud or local scripts?
You can disable synchronization in Settings
ok, that's solved.
Please, another question, if I want to have access to the cloud or the local script without synchronization. How to do it?
Tks
Eli
You can't have access to the cloud without synchronization
@PanagiotisCharalampous
PanagiotisCharalampous
04 Oct 2024, 05:44
Hi there,
This feature is not available on cTrader for Mac at the moment.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Oct 2024, 05:42
Hi there,
It's a bug in the forum and it was posted twice. Also this is not a suggestion therefore it will be deleted.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Oct 2024, 05:41
Hi there,
Before answering your question, can you please provide a practical example of a problem you face with the existing structure?
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Oct 2024, 05:33
Hi there,
The spread is irrelevant to the stop limit price. If you set a buy order at 100 and the range at 2, then what you are asking is the slippage not to exceed 2. Therefore the worst executed price will be 102 and only the volume that can fulfill this requirement will be filled. The spread is irrelevant, the bid price can be at 99 or 50.
Regarding TP, it can only be set in relative pips at the moment. If you need to set an exact price, you would have to modify the opened position.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Oct 2024, 05:26
Hi there,
It will be hard to get help by just throwing dozens of lines of code and ask for people why it doesn't work. This is because readers don't know what you expect the code to do and what it does instead. Even if they spend time interrogating you, then they will need to spend hours to figure out what you did wrong in your logic. Not many people have this surplus of time.
Did you try debugging your strategy first? Did you place a break point at the line where the conditions are evaluated to check what are the values when a trade is expected to be placed? It will help you understand why the trade is not placed when you expect it to do so.
You need to narrow down the problem to a question that can be answered by somebody in 10-15 minutes before asking for help.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Oct 2024, 13:11
Hi there,
If your funds are insufficient, there isn't much you can do than lowering your volume or increasing your leverage.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Oct 2024, 09:01
Hi there,
Try getting your statements from https://ct.spotware.com until this issue is resolved.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Oct 2024, 08:59
RE: RE: costum indicators not showing
ayman.tawil said:
PanagiotisCharalampous said:
Hi there,
We have released a hotfix (5.0.38). Can you please advise if it resolves your issue?
Best regards,
Panagiotis
Hi, Costum indicators still not loading after the newest release installed
Hi there,
Can you share the indicators code and screenshots/videos demonstrating the issue?
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Oct 2024, 05:36
Hi there,
It is better to contact the developer regarding this matter.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Oct 2024, 05:35
Hi there,
We have released a hotfix (5.0.38). Can you please advise if it resolves your issue?
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Oct 2024, 05:35
Hi there,
We have released a hotfix (5.0.38). Can you please advise if it resolves your issue?
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Oct 2024, 06:20
Hi there,
Can you please share the cBot code so that we can reproduce the issue?
Best regards,
Panagiotis
@PanagiotisCharalampous