Replies

twoheartzin1soul
21 Aug 2020, 16:42

RE:

PanagiotisCharalampous said:

Hi twoheartzin1soul,

No, you will need to reinitialize the indicator with the new parameters.

Best Regards,

Panagiotis 

Join us on Telegram

 


 
thank you very much for the answer, ok, but can I reintialize the indicator in a specific event or do I have to switch the bot off and on again?

@twoheartzin1soul

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 

Join us on Telegram

 

Thanks a lot!!!!!


@twoheartzin1soul

twoheartzin1soul
28 May 2020, 04:07

ok ill try 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 

Join us on Telegrathanks a lot for your answer, i tried with your method and BarsCount too and i have the sam problem, the bot goes fast to the moment i need but when he has sto start operate it doesent go and he freeze on this date like he is blocked

 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 

Join us on Telegram

 

ooook i'll try it thanks a lot ;)


@twoheartzin1soul