Topics
Replies
yeril123@hotmail.com
27 Apr 2020, 22:58
RE:
PanagiotisCharalampous said:
Hi there,
If you need to access all positions, then you just need to stop filtering them by label. Just use the Positions collection directly.
Best Regards,
Panagiotis
How can i implement that? when i put to find the selling position for example for ""var sellPositions = Positions.FindAll(SymbolName, TradeType.Sell);"" if i dont put the label before the "SymbolName" i get an error telling me that it requires a label. thanks for helping me.
@yeril123@hotmail.com
yeril123@hotmail.com
10 Feb 2020, 21:21
RE:
PanagiotisCharalampous said:
Hi yeril123,
You can have a condition to place orders only when there are 0 pending orders. You can check the number of pending orders using PendingOrders.Count property.
Best Regards,
Panagiotis
Hello, that helps a lot controlling all those pending orders, but by any chance do you know how to keep one buying and one selling? using PendingOrders.Count can limit the total numbers of pending order but if i put that limit to 2 then it will have 2 selling and i would like to have one buying and one selling. if you know how to i really appreciate your help.
@yeril123@hotmail.com
yeril123@hotmail.com
09 Jan 2020, 22:01
RE: You are right
PanagiotisCharalampous said:
Hi there,
As the message says, you are using more parameters than needed. You should be using only two e.g. EMA1_Series.Close. What is SourceSeries?
Best Regards,
Panagiotis
The SourceSerires was a DataSeries type, i put it there because i thought it needed it but it looks like it doesnt need that, thanks you very very much!! i am learning c# and i am still trying to learn how it works in ctrader, do you mind if i ask you if there is a place where i can learn the ctrader API or is just in the guides? and thanks a lot!
@yeril123@hotmail.com
yeril123@hotmail.com
28 Apr 2020, 20:06
RE:
PanagiotisCharalampous said:
Thanks a lot i really appreaciate it!!
@yeril123@hotmail.com