Topics
05 Dec 2014, 00:00
 2735
 1
Replies

admin
07 Dec 2012, 12:00

Thank you for the suggestion. We are currently working on adding more build in indicators to the platform. We will look into Gartley patterns as well.

 


@admin

admin
06 Dec 2012, 14:39

Hello,

Tick volumes have been included and will be available very soon.

 


@admin

admin
06 Dec 2012, 09:30 ( Updated at: 15 Jan 2024, 14:51 )

You can set notifications like PlaySound and SendEmail.

Please look at the examples here: [/docs/api/internals/inotifications]

 


@admin

admin
05 Dec 2012, 16:04

We apologize for the inconvenience and thank you for reporting this. In order to expedite the investigation of this matter could you please post or email us your code?

 


@admin

admin
04 Dec 2012, 14:44 ( Updated at: 21 Dec 2023, 09:20 )

using cAlgo.API;

namespace cAlgo.Indicators
{
    [Indicator(IsOverlay = false, ScalePrecision = 5)]
    public class Level2 : Indicator
    {
        [Output("BidEntries", Color = Colors.Red, PlotType = PlotType.Histogram, Thickness = 5)]
        public IndicatorDataSeries BidResult { get; set; }

        [Output("AskEntries", Color = Colors.Blue, PlotType = PlotType.Histogram, Thickness = 5)]
        public IndicatorDataSeries AskResult { get; set; }

        MarketDepth GBPUSD;

        private int _askNo;
        private int _bidNo;

        protected override void Initialize()
        {
            GBPUSD = MarketData.GetMarketDepth(Symbol);
            GBPUSD.Updated += OnGbpUsdUpdated;
        }

        void OnGbpUsdUpdated()
        {
            _askNo = 0;
            _bidNo = 0;

            var index = MarketSeries.Close.Count - 1;


            for (var i = 0; i < AskResult.Count; i++)
                AskResult[i] = double.NaN;

            foreach (var entry in GBPUSD.AskEntries)
            {
                AskResult[index - _askNo] = (-1) * entry.Volume;
                _askNo++;
            }

            for (var i = 0; i < BidResult.Count; i++)
                BidResult[i] = double.NaN;

            foreach (var entry in GBPUSD.BidEntries)
            {
                BidResult[index - _bidNo] = entry.Volume;
                _bidNo++;
            }
        }

        public override void Calculate(int index) { }

    }
}

 


@admin

admin
04 Dec 2012, 09:27

Thank you for your suggestion.  For the time being it would be very easy to calculate with a field that holds the bar count at the entry point and then that is subtracted from the current bar count. 

 

 


@admin

admin
03 Dec 2012, 16:38

A sample has been uploaded here: Martket Depth Volume Histogram.


@admin

admin
03 Dec 2012, 16:32

It is not available in cTrader yet. It is in the future plans for implementation for cTrader and it will be available very soon in the cTrader Web version.

 

 


@admin

admin
03 Dec 2012, 16:26

Currently we do not provide that but we will provide it in the future.

 

 

 


@admin

admin
03 Dec 2012, 16:22

If you are using OnPositionClosed and if you have a global field of type Position similar to the sample robots, the global field position will need to be set to null in the OnPositionClosed event. For your convenience we will implement funtionality to do this automatically so that you do not have to worry about such issues.

 


@admin

admin
03 Dec 2012, 16:01

Are you asking if you can get the value of a different symbol than the one the robot is using when executed? If so it is not currently possible. Multi-time frames will be available soon.

 

 


@admin

admin
03 Dec 2012, 15:58

We are not sure what you mean. Could you please elaborate? Are you refering to the number of bars elapsed since an entry point? 

 


@admin

admin
03 Dec 2012, 15:48

There is no method currently to do this. It may be available in the future. But for your purposes it might be sufficient to do something similar to this indicator:/algos/show/60

 

 


@admin

admin
03 Dec 2012, 15:38

It has been changed so that the error will be visible on multiple lines if it does not fit in one. It will be available in the next update of cAlgo, very soon.

 


@admin

admin
03 Dec 2012, 15:37

This example is setting stop loss value equal to the last value of parabolic sar in the OnTick event. There are two things to keep in mind. One, the OnTick event occurs many times for the same bar until the time is up, therefore it cannot coinside with the actual value produced on the chart. That value is known only when the execution of the next bar begins. In other words the last value of the parabolic sar will keep changing on each tick for the duration of the bar. Second, the value at the OnTick event is as close to the actual value that occured as possible but it is not identical due to the fact that the ticks are generated by interpolation for the backtesting. It is in our future plans though to include the actual ticks in the backtesting.

 

 

 


@admin

admin
03 Dec 2012, 14:05

All open positions under the account are in Account.Positions list. So, in the code you may check for the opened positions by accessing this list. For the specific positions opened just by one Robot it has not been made available yet.  It will be available very soon though.

 


@admin

admin
03 Dec 2012, 09:36

Hello,

It is not actually a problem just something that has not been implemented yet. There is no workaround for it, unfortunately.

Once it is added you will see it in the What's new section which is available from the top menu under the Help item.

 

 


@admin

admin
30 Nov 2012, 12:02

Thank you for your suggestion. We will take it into consideration for the future plans.

 


@admin

admin
30 Nov 2012, 10:27

No, it is not possible at the moment. We will think about implementing this in the future.

 


@admin

admin
29 Nov 2012, 17:09 ( Updated at: 21 Dec 2023, 09:20 )

In cTrader you can click on the chartshot icon from the toolbar to the right. This will turn the cursor into a camera button. You may click it on the chart.

 

Files are saved by default in this location: C:\Users\...\Documents\cTrader\Chartshots

They are also saved on the web at http://spotware.ctrader.com/images/screens/...

After you click on the camera button it will pop up a new browser page with the information.

 

 


@admin