Topics
Replies
Bots4Us
20 Jan 2021, 01:08
Hi prosteel1,
The EntryPrice cannot be null. By contrast, the Take Profit is in the above. A double cannot be nulled.
https://ctrader.com/forum/calgo-support/7806#post-2
Bots4Us
@Bots4Us
Bots4Us
18 Jan 2021, 22:18
RE:
PanagiotisCharalampous said:
Unfortunately this information is not available via the API at the moment.
Hi Panagiotis,
That is a pity. Please consider to add this.
If you try to log the number of the respective Pass of an Optimization in OnStart() via an incrementing counter _pass++; it does not seem to increment for Passes which don't have trades.
By contrast, the Pass No. in the Grid increments for each iteration no matter if the combination of tested parameters triggered trades or not.
As a result, the counter and the Pass No in the Grid are out of sync, which shouldn't be the case. It would be much easier to check, if custom logging is complete, if the Pass Number was available via the API.
Thx, Bots4Us.
@Bots4Us
Bots4Us
18 Jan 2021, 18:06
RE: RE:
prosteel1 said:
Perhaps get the datetime of consecutive ticks and round it somehow? Perhaps using an average or similar.
Hi prosteel1,
Interesting workaround. Should do for tick vs. m1 vs. 1h. Likely not for 1m from Server vs. 1m from CSV, but at least something. Thx.
@Bots4Us
Bots4Us
08 Jan 2021, 23:34
RE: MaxDrawDown - All - Long - Short
Bots4Us said:
Dear cTrader Experts,
The above code snippet works great for the Max. DrawDown of All Trades, but I struggle to separately determine the Max. DrawDown for Long vs. Short Trades in OnPositionClosed event. However, the Trade Statistics do include separate Max. DD calculations. Can you please explain where and how to do this?
Thank you.
Bots4Us
Please consider this closed. I figured this out myself. Thx.
@Bots4Us
Bots4Us
04 Jan 2021, 17:05
MaxDrawDown - All - Long - Short
Dear cTrader Experts,
The above code snippet works great for the Max. DrawDown of All Trades, but I struggle to separately determine the Max. DrawDown for Long vs. Short Trades in OnPositionClosed event. However, the Trade Statistics do include separate Max. DD calculations. Can you please explain where and how to do this?
Thank you.
Bots4Us
@Bots4Us
Bots4Us
07 Feb 2021, 11:49 ( Updated at: 21 Dec 2023, 09:22 )
RE:
EagleMoxy said:
Hi EagleMoxy,
Thank for raising. I couldn't agree more. Particularly on font size of the pop up windows. No issue for hawk-eye, but ...
Should be an easy fix.
Thx, Bots4Us
@Bots4Us