
Topics
Replies
PanagiotisCharalampous
29 Dec 2017, 09:55
Dear davide.annia,
Thanks for posting in our forum. I tried to reproduce your issue using Spotware cTrader and Spotware cAlgo but I could not. The functionality seems to be working fine. Can you please provide some more information regarding your problem e.g. your broker, the script you are trying to edit etc. If you could capture a short video demonstrating this behavior, it would be helpful as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Dec 2017, 15:26
Hi ctid258463,
The problem is with your conditions. Your conditions are not checking if the indicator has crossed a value or not but if the last value is above or below another value. You should reconsider your conditions and check HasCrossedAbove and HasCrossedBelow functions which you should use for your conditions.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Dec 2017, 15:14
Hi gunning.ernie,
I really like the System.Threading.Timer and I can specify a exact start time with this timer however according to this post (/forum/calgo-support/3577?page=1#9) cAlgo API's is not thread safe and one should not use this timer HOWEVER the post is old.
I don't think the post's author meant it this way. A more accurate inteptretation of what is suggested in the post is
"Don't do it if you don't know how to do it. cAlgo will not take care of this for you."
Concluding, you can use System.Threading.Timer as long as you know how to handle concurrency issues i.e. what should happen if two threads access the same resource at the same time e.g. start modifying the same order.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Dec 2017, 15:00
Hi henry.tsui.1222,
Thanks for posting in our forum. Yes you can modify the parameter's step accordingly. See example below
[Parameter(DefaultValue = 10, Step = 0.1)] public double Parameter { get; set; }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Dec 2017, 14:55
Hi gunning.ernie,
Yes it is still the case.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Dec 2017, 14:50
Hi gunning.ernie,
so when opening a trade you need to specify 1000 as the volume for 0.10c pip value. YOU should increase the Volume by units of the volume step to increase your pip value. For example, you cannot specify 1500 of 4300. it should be devidable by the step (1000). So correct values are 1000, 2000,3000...100 0000.
Correct.
If everything is correct above then I assumes that Quantity (double) in the PendingOrder class is the amount of units of volume you want to trade thus you can use the QuantityToVolume function that will multiply Quantity with Volume.
No, QuantityToVolume is used to covert lots to volume. You pass lots and you get volume as a results e.g. 1 lot = 100000 for EURUSD.
I still do not understand why you include leverage in your pip calculation. It is not related. To calculate pip value you just need to calculate the following formula
Volume * 10^(-PipPosition) = PipSize.
Leverage is not needed anywhere
A lot just represents a number of units of currency to be traded e.g. 1 lot = 100000€, 2 lots = 200000€ etc. Volume is the units themselves.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Dec 2017, 14:13
Hi Drummond360,
The correct way to write the condition is the following
var targetPrice = (order.TradeType == TradeType.Buy) ? Symbol.Ask + PipsAway * Symbol.PipSize : Symbol.Bid - PipsAway * Symbol.PipSize;
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Dec 2017, 14:42
RE:
Drummond360 said:
What if you want to place a sell order below the current price? Would that be a StopOrder?
and would you still use ModifyPendingOrder to trail it onTick?
Hi Drummond360,
The answer to both of your questions is yes.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Dec 2017, 11:18
Hi dordkash@gmail.com,
If you need somebody to develop the indicator for you, you can post a job in the Jobs section or contact a professional Consultant.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Dec 2017, 11:05
Hi gunning.ernie,
The percentage of your risk depends on where you will put your stop loss, not only on the volume. In leveraged accounts you can risk your entire account balance if you do not use a stop loss. The higher the volume, the less pips needed to reach your risk threshold. For example, if you open a position of $100.000 and you want to risk only $100, you need to place your stop loss at 10 pips since each pip is $10.
The leverage does not change the amount of risk. It is the size of the position itself that determines your risk. Leverage just defines the minimum margin required by the broker to open a position i.e. with a leverage of 1:100 the maximum position you can open with $1000 is $100.000.
I hope this helps.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Dec 2017, 10:26
Hi gunning.ernie,
Volume is just the amount of base currency you would like to invest in your position e.g. 100000 in EURUSD means a position of €100.000. Regarding your calculation, leverage in not related to pip size. Leverage is related to your account's margin. Pip size is only related to position size. The result of your calculation should be $1. In reality, the pip value of EURUSD is $10 since the the pip position is on the fourth decimal place.
Let me know if my explanation makes things clearer to you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Dec 2017, 09:48
Hi rewtrading,
Thanks for posting the code. However this indicator does not seem to do anything. It is an empty indicator. How did you perform the conversion? If you want to learn more on how to develop indicators you can read the guide here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Dec 2017, 17:33
Hi rewtrading,
Could you share the code with us to advise you what could be wrong?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Dec 2017, 16:54
Hi svanharmelen,
Can you please send me message you are sending as well as the ones you are receiving so that I can have a look?
Best Regards
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Dec 2017, 12:04
Hi gunning.ernie,
Indeed the message is related with the parallel loop. Have a look at this article, it might be helpful.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Dec 2017, 11:20
Hi irmscher9,
Thanks for reporting this but if Windows crashes for any reason then probably it would be better to contact Microsoft instead. There are not much things we can do about a Windows crash.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Dec 2017, 10:25
Hi svanharmelen,
Requesting multiple symbols in one market request is not available in our current FIX API implementation. Yow need to send a request for each symbol separately.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Dec 2017, 10:23
Dear Trader,
We have applied a fix on the Heiken Ashi formula in the recent update for cTrader Web. The fix will also be present in the new native mobile apps that will be released soon.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Dec 2017, 09:59
Hi tradingu,
cTrader Copy which is coming soon will feature management and performance fees. Stay tuned!
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Dec 2017, 10:57
Hi MaRCHeW,
I know that everybody is anticipating the new release however we cannot commit to release dates. Nevertheless, we are in the very final stages of development i.e. fixing bugs and stabilizing the new release. Hopefully you should not be waiting for much more.
Best Regards,
Panagiotis
@PanagiotisCharalampous