Replies

PanagiotisChar
23 Dec 2022, 09:51

Hi there,

It's because of spread. Sell positions close on Ask prices, candles are drawn on Bid prices.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us


@PanagiotisChar

PanagiotisChar
23 Dec 2022, 09:48

Hi there,

You need to make the line interactive

            _trendLine1 = Chart.DrawTrendLine("High1", Chart.FirstVisibleBarIndex, Chart.BottomY, Chart.LastVisibleBarIndex, Chart.TopY, Color.Red);
            _trendLine1.IsInteractive = true;

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar

PanagiotisChar
23 Dec 2022, 09:45

Hi there,

If you need to hire somebody, send me an email to development@clickalgo.com.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar

PanagiotisChar
23 Dec 2022, 09:44

Hi there,

Your question is not very clear. What do you mean by "alternative to parameters". Which parameters are you talking about and why do you need to use an alternative?

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar

PanagiotisChar
23 Dec 2022, 09:41

Hi Nick,

You can only do this for the RSI, like this

            var dailyBars = MarketData.GetBars(TimeFrame.Daily);
            var rsi = Indicators.RelativeStrengthIndex(dailyBars.ClosePrices, 14);

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar

PanagiotisChar
23 Dec 2022, 09:31

Hi there,

Can you share some screenshots so that we can understand what you are seeing?

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar

PanagiotisChar
22 Dec 2022, 09:01

Hi there,

Try using 4.5.3, the issue should be solved there.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar

PanagiotisChar
22 Dec 2022, 08:59

Hi there,

The reason is written in the log. You seem to be calling an object which is null at the moment. You need to debug your code and check. From a first look it could be 

LastResult.Position.EntryTime

Try checking if it is null before accessing it.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us


@PanagiotisChar

PanagiotisChar
21 Dec 2022, 13:37

Hi Alex,

Please share the complete code and explain what do you think is wrong.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar

PanagiotisChar
21 Dec 2022, 09:57

Hi there,

If you could share some screenshots of the things you are describing, it would help.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar

PanagiotisChar
21 Dec 2022, 09:40

Hi again,

Make sure your SL is set outside the spread. Else it won't be placed.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us


@PanagiotisChar

PanagiotisChar
21 Dec 2022, 09:35

Hi there,

You need to provide some more information

  1. Which symbol and dates do you backtest?
  2. What exception do you get in the log?

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar

PanagiotisChar
21 Dec 2022, 09:31

Hi there,

Try commenting the lines below

if (_supertrend.DownTrend.Last(1) > 0)
if (_supertrend.UpTrend.Last(1) > 0)

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us


@PanagiotisChar

PanagiotisChar
20 Dec 2022, 12:06

But what i dont understand is why it was working fine on older versions and now it doens't. 

Because the previous version was just swallowing the exception, the new one doesn't. You need to handle it

In fact they are NaN, i should have told this on the first post, and thats the problem, dont know howw to work with that.

Check that they are not NaN before you use them

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us


@PanagiotisChar

PanagiotisChar
20 Dec 2022, 09:40

Hi there,

Here is your problem. You should check if your values are NaN

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar