Topics
05 Dec 2014, 00:00
 2490
 1
Replies

admin
09 Jan 2013, 15:58

Thank you for your suggestions.  Could you please state where exactly only one open order is visible without scrolling?

We are aware of the issue of moving the t/p and s/l bands on the chart and are working on a solution for it.

 


@admin

admin
09 Jan 2013, 15:48

You may subscribe by clicking the subscribe button next the the Reply, after the new thread  has been created and this way you will be notified when someone replies.


@admin

admin
09 Jan 2013, 15:36

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

 


@admin

admin
09 Jan 2013, 15:34

Thank you for the suggestion.  If you need a horizontal line it is easily implemented by either using the Levels attribute for indicators or setting a constant value to an Outpout Indicator Result, e.g.

        [Output("Main")]
        public IndicatorDataSeries Result { get; set; }

        public override void Calculate(int index)
        {
            Result[index] = 1;
        }




@admin

admin
09 Jan 2013, 11:05

Please look at this already implemented Demark Indicator. It may be what you are looking for: Demark


@admin

admin
07 Jan 2013, 14:24

Hello,

This feature is in our list for implementation but we cannot provide an exact time for it's availability. 


@admin

admin
07 Jan 2013, 11:48

Yes, tick volume is now available through the MarketSeries Interface. If the version you are using does not already have it, it should be available by next Monday.

double tickVolume = MarketSeries.TickVolume[index];



 


@admin

admin
07 Jan 2013, 11:24

At the time being you cannot do this.  The reason is to avoid the possibility of malware being distributed through cTDN.


@admin

admin
04 Jan 2013, 17:24

The reason this is, is that the Stop Loss and Take Profit are set right after the OnPosistionOpened event.  The workaround for this would be to modify the SL/TP in another function called if a Position field set in the OnPositionOpened is not null.

i.e.

        Position _pos;

        protected override void OnTick()
        {
            if (Trade.IsExecuting) return;
            double targetPrice = Symbol.Ask + Symbol.PipSize;

            if (Account.PendingOrders.Count == 0 && Account.Positions.Count == 0)
                Trade.CreateBuyLimitOrder(Symbol, 1000, targetPrice, targetPrice - Symbol.PipSize, targetPrice + Symbol.PipSize, Server.Time.AddMinutes(10));

            if (_pos != null)
            {
                // call method to modify SL/TP
                Print("Stop Loss {0}", _pos.StopLoss);
                Print("Take Profit {0}", _pos.TakeProfit);
            }

        }
        protected override void OnPendingOrderCreated(PendingOrder newOrder)
        {
            Print("Pending order created");
            Print("Stop Loss {0}", newOrder.StopLoss);
            Print("Take Profit {0}", newOrder.TakeProfit);

        }

        protected override void OnPositionOpened(Position openedPosition)
        {
            _pos = openedPosition;
        }




@admin

admin
04 Jan 2013, 16:55 ( Updated at: 21 Dec 2023, 09:20 )

What is being printed is in the second parameter.

The third parameter is the index (x-axis), the fourth is the price (y-axix) giving the position on the chart where the text is drawn.

see the intellisense.

 


@admin

admin
04 Jan 2013, 16:29

We will look into this. Thank your for bringing it to our attention.

 


@admin

admin
04 Jan 2013, 16:06

There is no logic behind this, it is just the number of trendbars received.


@admin

admin
04 Jan 2013, 15:58

Hello,

You may create a field of type DateTime which you will set Server.Time to in the event OnPositionOpened.  

e.g.

private DateTime last = DateTime.MinValue;
//...
     protected override void OnPositionOpened(Position pos)
     {
           last  = Server.Time;            
} //...

 


@admin

admin
04 Jan 2013, 15:40

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


@admin

admin
04 Jan 2013, 15:29 ( Updated at: 21 Dec 2023, 09:20 )

The Market Depth has been implemented. The partial close is in the future list for implementation. cTrader has the DOM prices under each symbol on the left.

 


@admin

admin
04 Jan 2013, 15:03

Thank you for the suggestion. We are exploring the possiblility of implementing Trade copying at the moment. We are currently working on implementing Mirror Trading.

 


@admin

admin
04 Jan 2013, 11:05

Hello,

The example here is using the OnTick event but you may also use the OnBar instead.

        protected override void OnTick()
        {
            
            if(X < previousBid)
            {
                //...
            }

            else if (X > previousOffer)
            {
                //...
            }
            previousBid = Symbol.Bid;
        }


X and previousOffer are declared as fields and will be set according to your algorithm.

 


@admin

admin
04 Jan 2013, 10:52

Yes, please use 

using System.Collections.Generic;

see this example: /forum/calgo-reference-samples/56

 


@admin

admin
03 Jan 2013, 12:46 ( Updated at: 23 Jan 2024, 13:16 )

Please look at the example here [/docs/api/levelsattribute/levels].

 


@admin

admin
03 Jan 2013, 12:05

Hello,

Set you "Exp" variable to 11:59:59.

DateTime Exp = MarketSeries.OpenTime.LastValue.Date.AddHours(24).AddSeconds(-1);

@admin