Topics
13 Nov 2019, 16:23
 3
 1176
 1
10 Oct 2019, 12:02
 4
 1208
 1
04 Sep 2019, 08:56
 1
 1031
 2
01 Jul 2019, 17:26
 0
 1133
 1
20 Jun 2019, 08:51
 2
 1135
 1
19 Mar 2019, 12:48
 3230
 6
04 Feb 2019, 08:52
 0
 976
 1
Replies

TonNcie
26 Jun 2019, 10:51

user definable bricksize on Renko (also from cbot)

user definable bricksize on Renko (also from cbot)


@TonNcie

TonNcie
26 Jun 2019, 10:45

define your own Renko Bricksize

Make bricksize variable (so you can set it yourself( also from code))


@TonNcie

TonNcie
03 Jun 2019, 15:38

RE:

Panagiotis Charalampous said:

Hi El Antonio,

No it shouldn't. Leverage is only related to the amount of margin required to open a position. If the volume of the position is the same then the result of backtesting will stay the same.

Best Regards,

Panagiotis

OK .

 

 

 


@TonNcie

TonNcie
03 Jun 2019, 15:09

RE:

Any idea why the edit of the Post title did not work?


@TonNcie

TonNcie
03 Jun 2019, 11:47

Hi Panagiotis,
As always: Sorry I can't share the bot (NDA). But the discrepancy is quit obvious. If I encounter it again I will let you know. If I have an idea where it comes from I'll also get in touch.


@TonNcie

TonNcie
01 Jun 2019, 09:48

tried to edit Dicrepancy to Discrepancy  but pressing update resulted in nothing changed.


@TonNcie

TonNcie
26 Mar 2019, 17:39

RE:

You always oversee the obvious!

thanks

 

 


@TonNcie

TonNcie
26 Mar 2019, 16:20 ( Updated at: 21 Dec 2023, 09:21 )

RE:

Hi Panagiotis



26/03/2019 09:36:24.580 | Minute 3/26/2019 9:30:00 AM Minute15 3/26/2019 9:30:00 AM 2753 8585 145.310173787739
26/03/2019 09:36:24.580 | Minute 3/26/2019 9:15:00 AM Minute15 3/26/2019 9:15:00 AM 2738 8584 145.317484328844
26/03/2019 09:36:24.580 | Minute 3/26/2019 9:00:00 AM Minute15 3/26/2019 9:00:00 AM 2723 8583 145.298410661536
26/03/2019 09:36:24.580 | Minute 3/26/2019 8:45:00 AM Minute15 3/26/2019 8:45:00 AM 2708 8582 145.302612184613

The index parameter is taken from the 15m timeframe (see print log. minute & minute 15 both have the same opentime.)
The problem is that 

public override void Calculate(int index)

is not firing on the minute timeframe as the printout and the chart show. it only fires in the m15 frame

Best Regards,


@TonNcie

TonNcie
26 Mar 2019, 11:56

RE:

ChartMouseEventArgs

Provides data for the mouse related routed events.

Name Description

AltKey  Defines whether the Alt key is pressed during the mouse event.

BarIndex Gets the exact bar index of the mouse event.

Chart Gets the chart.

ChartArea Gets the chart area.

CtrlKey

MouseX Gets the X-axis value of the mouse event.

MouseY Gets the Y-axis value of the mouse event.

ShiftKey Defines whether the Shift key is pressed during the mouse event.

TimeValue Gets the time value on the X-axis where the mouse event occurs.

YValue Gets the Y-axis value of the mouse event.

 

 


@TonNcie

TonNcie
26 Mar 2019, 11:53

      protected override void Initialize()
       {
           Chart.MouseDown += Chart_MouseDown;
      }

      private void Chart_MouseDown(ChartMouseEventArgs MouseEvent)
      {
           Print( MouseEvent.YValue);
     }

 


@TonNcie

TonNcie
19 Mar 2019, 16:20

RE:

Hi Panagiotis

Sorry i overlooked that.

The indicator is a selfmade indicator that needs a datafeed/timeframe that does not exist in ctrader and can be filled in the OnTick event handler.

 

 

 


@TonNcie

TonNcie
19 Mar 2019, 13:06

RE:

 

using System;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class Renner : Robot
    {
        private IMySeries MySeries;
        MyOwnIndicator _signalIndicator;

        protected override void OnStart()
        {
            MySeries = new IMySeries(Symbol);
            _signalIndicator = Indicators.GetIndicator<MyOwnIndicator>(MySeries);
        }

        protected override void OnTick()
        {
            double jo = MySeries.High[1];
            MySeries.High[1] = jo;
        }
    }
    public class IMySeries : MarketSeries
    {
        public DataSeries Open { get; set; }
        public DataSeries High { get; set; }
        public DataSeries Low { get; set; }
        public DataSeries Close { get; set; }
        public DataSeries TickVolume { get; set; }
        public DataSeries Median { get; set; }
        public DataSeries Typical { get; set; }
        public DataSeries Weighted { get; set; }
        public DataSeries WeightedClose { get; set; }
        public TimeSeries OpenTime { get; set; }
        public TimeFrame TimeFrame { get; set; }
        public string SymbolCode { get; set; }

        private Symbol symbol;
   
        public IMySeries(Symbol symbol)
        {
            this.symbol = symbol;
        }
    }
}

 


@TonNcie

TonNcie
05 Mar 2019, 21:22

Well the 'i love' was a bit quick.
What a disappointment. No backtestingsupport and no optimizesupport for multi-symbol.
In the first post i saw of about 6 years ago it was clear this is an important  issue for the ctrader development community.
So could you atleast give a timeframe when it will be available or a good reason why this is not being made available?

Best to all of you
ElAntonio
 


@TonNcie

TonNcie
05 Mar 2019, 17:23

RE:

I love cTrader !!!!


@TonNcie

TonNcie
05 Feb 2019, 15:50

the properties of the cs file should be set to compile I guess to compile to cAlgo..


@TonNcie

TonNcie
04 Feb 2019, 09:37

Wrong Quantity

change to Symbol.QuantityToVolumeInUnits( Quantity)


@TonNcie

TonNcie
04 Feb 2019, 08:53

RE:

that would have my vote. put it up in suggestions. https://ctrader.com/forum/suggestions


@TonNcie

TonNcie
04 Feb 2019, 08:49

RE:

Please make a settin to skip sourceformatting in Ctrader editor.
Now when you build the code gets reformatted and Visualstudio needs to reload.


@TonNcie

TonNcie
04 Feb 2019, 08:40

Please tell us who your broker is, so others wont fall into the same 'account closed by no reason' trap.


@TonNcie

TonNcie
04 Feb 2019, 08:35

+10

Please take moderating responsability and do as this guy asks

 


@TonNcie