Topics
Replies
PanagiotisCharalampous
14 Dec 2020, 08:31
Hi jeremy.ayres,
To show the indicator on the main chart, just set IsOverlay=True. See below
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2020, 16:38
( Updated at: 21 Dec 2023, 09:22 )
Hi fx.pro,
Your problem is here
You need to check if the IndicatorArea is not null before you draw objects on it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2020, 12:18
Hi xabbu,
You need to check if the position that triggered this event has the same symbol as the one the instance is running on. Like below
private void OnPositionsClosed(PositionClosedEventArgs args)
{
if (args.Position.SymbolName == Symbol.Name)
{
// Run your code
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2020, 10:21
Hi ctid2032775,
Please try again now. Seems something went wrong in the upload process.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2020, 08:56
Hi francescomenin96,
Please use the Suggestions section for suggestions.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2020, 08:55
Hi brunoreiz14,
You just need to double click on the .algo file and the indicator will be installed on your cTrader.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2020, 08:54
Hi a_j_cliff,
Here it is https://ct.ftmo.com.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2020, 08:52
Hi fx.pro,
Please post the complete cBot code and parameters so that we can check.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2020, 08:47
Hi amirus.stark,
You should make your parameters public
//parameter
[Parameter("Volume Retrace - % Backward Limit", DefaultValue = 50)]
public int volBackwardLimit { get; set; }
[Parameter("Volume Retrace - % Forward Minimum", DefaultValue = 125)]
public int volForwardMinimum { get; set; }
[Parameter("Volume SPIKE - % Spike Restriction", DefaultValue = 300)]
public int volSPIKERestriction { get; set; }
[Parameter("Volume SPIKE - EMA Period", DefaultValue = 36)]
public int volSPIKEMA { get; set; }
[Parameter("Volume EMA Period", DefaultValue = 100)]
public int lengthEMA { get; set; }
[Parameter("WMA Period 1", DefaultValue = 20)]
public int WMA1 { get; set; }
[Parameter("WMA Period 2", DefaultValue = 100)]
public int WMA2 { get; set; }
[Parameter("WMA Period 3", DefaultValue = 400)]
public int WMA3 { get; set; }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2020, 08:31
Hi Nobody,
Please provide the complete cBot code and steps to reproduce the problem, like cBot parameters, backtesting dates etc.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2020, 08:28
( Updated at: 21 Dec 2023, 09:22 )
Hi brunoreiz14,
If your indicator has been installed properly, then you should be able to find it here
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Dec 2020, 08:23
Hi l.kratinov,
Please provide us with a screenshot and the information requested above.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Dec 2020, 15:27
Hi notzen,
This is not a standard statistic but you can do this calculation yourself and print the results in the log.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Dec 2020, 14:44
Hi xabbu,
if you plan to run the cBot only on D1 timeframe, then placing the code in OnBar() should work as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Dec 2020, 14:41
Hi notzen,
This is the definition of equity drawdown. Equity drawdown is calculated by measuring the difference between an equity peak and an equity low. The balance in this case is irrelevant. We cannot calculate it differently.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Dec 2020, 14:35
Hi xabbu,
I still do not understand why you do not check the symbol of the closed position. You posted the solution yourself in the first post.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Dec 2020, 11:39
Hi to both,
No this information is not available in the API.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Dec 2020, 10:33
Hi xabbu,
I am not sure why do you think that the check will not work. It should work. Did you check it and it didn't? What is the actual code you used? What happened?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Dec 2020, 10:30
Hi xeulav,
You can post a Job here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Dec 2020, 08:37
Hi Mario,
Yes it is. You should change the code as follows
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous