Topics
Replies
PanagiotisCharalampous
31 Jul 2020, 08:23
Hi aderc,
Can you please provide more information about this issue like your strategy name and some screenshots?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jul 2020, 08:20
Hi rgasch,
There is not constructor for Bars. You cannot generate new Bars objects.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jul 2020, 08:15
Hi jacekj067,
If you refer to cTrader Copy, then the answer is no, you do not need to have cTrader running. Copying takes place on our servers.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jul 2020, 08:14
Hi karopega,
You cannot use Spotware Beta with your live account. Broker accounts can be used only using the broker's cTrader.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jul 2020, 08:12
Hi pankuolung0804
See below the correct code
var text1 = Chart.DrawText(Bars.Count.ToString(), "CrossedOver", openTimeA, highPriceA, Color.Red);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jul 2020, 08:11
( Updated at: 21 Dec 2023, 09:22 )
Hi ironmanwulf10,
You can do this by dragging the time counter to the left.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jul 2020, 08:08
Hi karopega,
You can only access your live accounts using your broker's cTrader applications.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jul 2020, 08:07
Hi Luca,
Sleep() method is a .Net method, it suspends the execution of the thread for the specified timespan. It has nothing to do with backtesting.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jul 2020, 08:04
Hi japah.marques,
You can use the TimeFrame property to check which timeframe for cBot/Indicator is using and act accordingly.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jul 2020, 08:01
Hi Sascha,
There is no function to load historical data in the API.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jul 2020, 08:00
Hi Luca,
No there is not specific function. You have to order them by time and pick the penultimate.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Jul 2020, 11:50
Hi lennoxconnerlc303,
I cannot reproduce such a behavior on Pepperstone cTrader. Can you send us a video demonstrating this behavior?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Jul 2020, 11:41
Hi pankuolung0804,
If you use the code in OnBar then this is what you should expect. When the bar opens then the close price is the same with the open price.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Jul 2020, 11:37
Hi koktos632,
Based on your description the feature works as designed. If you want to avoid reordering in this case then you should use Free Chart mode.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Jul 2020, 11:23
Hi Luca,
Try this
if(args.Position.Label == "MyLabel1")
{
// Do something...
}
You need to use a more precise language.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Jul 2020, 11:14
Hi pankuolung0804,
If you mean the current bar then use Last(0).
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Jul 2020, 10:32
Hi pankuolung0804,
Try the below
Print("closeprice: " + Bars.ClosePrices.Last(1));
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Jul 2020, 09:36
Hi alexnikon,
MarketSeries has been replaced by Bars.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Jul 2020, 08:40
Hi ctraderftmo+115,
Can you please provide more information about the issue i.e. steps to reproduce?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jul 2020, 08:27
Hi Mason,
Historical data is provided by the brokers. You need to contact your broker regarding this.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous