Topics
Replies
twoheartzin1soul
19 Aug 2020, 14:48
RE:
PanagiotisCharalampous said:
Hi twoheartzin1soul,
You can use the GetBars() method and retrieve the monthly timeframe bars.
Best Regards,
Panagiotis
Thanks a lot!!!!!
@twoheartzin1soul
twoheartzin1soul
26 May 2020, 18:21
Thanks for the reply, the problem that History.FindLast (). Closingtime provides a given dd / mm / YYYY HH / Minutes Example:23/0/1999 12:30 instead Server.Time provides DD / MM / YYYY HH / MM / Seconds example: 23/05/1999 12:30:15 how could I make this comparison?
@twoheartzin1soul
twoheartzin1soul
27 Mar 2020, 16:26
it works until the bot start
PanagiotisCharalampous said:
Hi twoheartzin1soul,
You can use Server.Time, check the date and decide if the cBot will execute any actions or not.
Best Regards,
Panagiotis
protected override void OnTick()
{
if ((Server.Time.Year == 2014) || (Server.Time.Year == 2015) || (Server.Time.Year == 2016) || (Server.Time.Year == 2017) || (Server.Time.Year == 2018) || (Server.Time.Year == 2019) || (Server.Time.Year == 2020))
{
var macd1 = macd.MACD;
var signal = macd.Signal;
var histomacd = macd.Histogram;
var trigg = fibtrg.Trigger;
var adxx = adx.ADX;
var dIplus = adx.DIPlus;
var dIminus = adx.DIMinus;
it's like freezed with no giving error but the time doesent go further
@twoheartzin1soul
twoheartzin1soul
30 Jan 2020, 12:40
RE:
PanagiotisCharalampous said:
Hi twoheartzin1soul,
If you want to avoid such a scenario, I would suggest to place the stoploss after the position is opened at a certain distance from the bid/ask price, to make sure that it falls outside the spread. You can use ModifyStopLossPrice() to do so.
Best Regards,
Panagiotis
ooook i'll try it thanks a lot ;)
@twoheartzin1soul
twoheartzin1soul
21 Aug 2020, 16:42
RE:
PanagiotisCharalampous said:
@twoheartzin1soul