Topics

Forum Topics not found

Replies

cAlgo_Fanatic
12 Sep 2013, 14:23

RE:

itekeste said:

Hi

I've been working on an improved martingale robot based around trading certain currency pairs at specific times of the day combined with using an OCO order for the first entry but need someone to code it up. If anyone is interested in doing so then let me know as it has proved to be profitable in manual testing and trading over the last 6 months.

The code for the martingale robot is already in cAlgo so it shouldn't take long to tweak certain parameters which is what is needed for this improved version hence I don't think it will take up much time to code up but I don't have coding experience.

Anyone who's interested just respond on this post (include your email address) or email me.

Thanks and happy trading,

Isaac

Consider posting this in the Jobs section. 


@cAlgo_Fanatic

cAlgo_Fanatic
10 Sep 2013, 16:08

RE:

sim_trader said:

Dear Forum,

Sorry for the really simple question. I have been reading for 3 hrs and cannot work it out.

I want to get the value of the zigzag indicator for X bars ago, where X is an external integer.

I thought I could change this line

double lastValue = _zigZag.Result.LastValue;

and use this instead

 double lastValue = _zigZag.Result[backstep_bars];
        

backstep_bars is a declared external integer.

While it compiles it does not seem to return the correct value. I would have assumed that if I set "backstep_bars" to 0 or 1
it would be the same value as _zigZag.Result.LastValue; but it does not ?

 

What am I missing ? I have been trading in MQL4 for sometime but have no experience in C#. But will to learn.

 

Thanks for your helps, Cheers, Sim

Please note that the ZigZag is not simple indicator. That is, you can not read intermediate values (so you need to interpolate).

 


@cAlgo_Fanatic

cAlgo_Fanatic
10 Sep 2013, 12:36

using cAlgo.API;
using cAlgo.API.Indicators;

namespace cAlgo.Indicators
{
    [Indicator("Bollinger Bands", ScalePrecision = 2, IsOverlay = true)]
    public class Bollinger_Bands : Indicator
    {
        private MovingAverage _movingAverage;
        private StandardDeviation _standardDeviation;

        [Parameter]
        public DataSeries Source { get; set; }

        [Parameter(DefaultValue = 20)]
        public int Periods { get; set; }

        [Parameter("Standard Dev", DefaultValue = 2.0, MinValue = 0.0001, MaxValue = 10)]
        public double StandardDeviations { get; set; }

        [Parameter("MA Type", DefaultValue = MovingAverageType.Simple)]
        public MovingAverageType MAType { get; set; }

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

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

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


        protected override void Initialize()
        {
            _movingAverage = Indicators.MovingAverage(Source, Periods, MAType);
            _standardDeviation = Indicators.StandardDeviation(Source, Periods, MAType);
        }

        public override void Calculate(int index)
        {
            var shift = _standardDeviation.Result[index] * StandardDeviations;

            Main[index] = _movingAverage.Result[index];
            Bottom[index] = _movingAverage.Result[index] - shift;
            Top[index] = _movingAverage.Result[index] + shift;
        }
    }
}

 


@cAlgo_Fanatic

cAlgo_Fanatic
10 Sep 2013, 12:23

RE:

oktrader said:

I'm agree with PsykotropyK. Tick-data is critical to high frequency trading. When do you think it will be avaliable?

Regards.

We cannot provide a time estimate for the release of tick-data for backtesting at this time. 


@cAlgo_Fanatic

cAlgo_Fanatic
10 Sep 2013, 11:01 ( Updated at: 21 Dec 2023, 09:20 )

RE:

stoko said:

Also here is the Journal where you can see the disconnection

 

This is a bug that will be fixed with the next release.


@cAlgo_Fanatic

cAlgo_Fanatic
10 Sep 2013, 10:43

RE:

stoko said:

@Support: I don't see edit button so I cannt change my post but can you please remove the windows title in the screen shot so that it doesn't show the url ?

Your image has been updated. 


@cAlgo_Fanatic

cAlgo_Fanatic
10 Sep 2013, 09:16

RE:

jccc said:

If I give you my account details and the source code , can you help me figure out what happens ?

I checked the code for hours and I dont find the smallest reason for this strange behaviour.

 

You can send us the journal file (..\Documents\cAlgo\Journals) so that we can investigate.

Send it to engage@spotware.com


@cAlgo_Fanatic

cAlgo_Fanatic
09 Sep 2013, 17:23

RE:

PCWalker said:

Dear Sirs,

Do you have any time frame or date for the release of the new Trading platform to be able to interact with Visual Studio?

Thank you.

We cannot provide a release time frame at this time.


@cAlgo_Fanatic

cAlgo_Fanatic
09 Sep 2013, 16:38

RE:

Thomas said:

Hello,

is it possible to read the actual value of a trendline in a chart window? I could not find any access functions. 

Does anybody have a suggestion how to build a work-around for this problem?

It is not possible at the moment but we have plans to implement such feature in the future.


@cAlgo_Fanatic

cAlgo_Fanatic
09 Sep 2013, 14:37 ( Updated at: 23 Jan 2024, 13:15 )

RE: RE: Improvements

Thank you for the kind words as well as suggestions. 

can I pop up a window with a message? or

a dialog to supply information on some event?,

 Please see: [/forum/calgo-reference-samples/475]

can I call other application to do some processing,

Yes. For example:

System.Diagnostics.Process.Start("C:\\Windows\\System32\\notepad.exe");

Other thing, can I start a new thread? I can only reply to others's post. Can I address questions to Calgo team directly?

You can start a new thread in any category section. e.g. /forum/cbot-support.
There is a button on the top right corner.
Of-course you can direct questions to the cAlgo support team directly.

I am new to C# but I know what coding is about. 

Please visit the following links to familiarize yourself with C#

http://msdn.microsoft.com/en-us/library/67ef8sbd.aspx
http://www.csharp-station.com/Tutorial.aspx 

 


@cAlgo_Fanatic

cAlgo_Fanatic
05 Sep 2013, 18:02

RE:

themchose said:

Hi, I have selected 'position' and 'order' in the view option icon, but when I move the cursor to the position line, it can't highlight the line and allow me to modify the stop and take profit level, any other setting? Thank you

 You can modify the SL and TP by right click on the position/order row in positions/orders and select modify position/order.


@cAlgo_Fanatic

cAlgo_Fanatic
05 Sep 2013, 14:45

RE:

hermoso said:

Sorry, i think i was not clear. I want to know if its possible to start a backtest from inside a robot

Something like this:

for(var i=1;i>10;i++

results = myrobot.Backtest (GBPJPY, h4, 4500000, i, 54, 10, 1000, 80);

end

This is useful to optimize the value used for the indicators. Is it clear now? 

Tks guys

It is not possible to do that right now. We will consider adding such a feature in the future. 


@cAlgo_Fanatic

cAlgo_Fanatic
04 Sep 2013, 10:51

RE:

hermoso said:

Hi everybody,

I was looking for a file generated by the backtesting 2013-09-03 21-45-16 History - SR_Fibo (GBPJPY, h4, 4500000, 21, 54, 10, 1000, 80) and i thought to myself, is there a way to open the backtesting inside another robot... call it as a method

SR_Fibo (GBPJPY, h4, 4500000, 21, 54, 10, 1000, 80)

This way i can right a simple program to optimze the features of my trading system.

Is it possible?

Tks in advance

Do you mean to read the backtesting file from a method? 


@cAlgo_Fanatic

cAlgo_Fanatic
03 Sep 2013, 12:52

RE:

kricka said:

Bringing up this so important step for the Spotware team to pay attention to. Hot keys to start robots in cAlgo and to stop them as well. Smaller devises is taking over the stationary PC industry and to be able to use these devices full out, hot keys is a necessary and need to be integrated, both in cAlgo, cTrader and cTrader Web. Hope this is under development and that we'll see in the near future on the platforms.

What specifically would you like to do with the hot keys? For instance, a hot key to start all created instances, to start the selected instance, to start all instances of the selected robot?


@cAlgo_Fanatic

cAlgo_Fanatic
03 Sep 2013, 12:26

RE:

johnswentworth said:

When a library has a dependency which is also present in the Robot file, cAlgo fails to compile. In this case I tried to import both the MathNet.Numerics dll and the usual System dlls. However, since MathNet also uses the System dlls, the compile failed, complaining that the System dlls had already been imported. VS does not have any trouble handling the same dependencies.

Please post or send us an example of your code to engage@spotware.com.


@cAlgo_Fanatic

cAlgo_Fanatic
03 Sep 2013, 12:03

RE:

t4fast said:

should i try the jobs sections ?

I would like to know if it is possible prior posting a job !

Posting in the jobs section is as easy as posting on the forum.  

  1. Click the "Add New Job" button which will direct you to fill out a simple form. 
  2. Enter the job description, budget and payment method
  3. For the payment method choose from the drop down list either freelancer.com, odesk.com or direct payment.

If you choose freelancer/oDesk enter the URL link of the job post in the respective website, in the Job Listing text box.
The payment method is not handled by cTDN. You will have to choose between using a well known website for freelancers such as freelancer.com or odesk.com, or paying the developer directly.
Paying via freelancer or oDesk gives you the security of disputing the payment if something goes wrong. Certain fees apply. Please visit the respective websites for more details.

The developers will contact you either privately at the email address of your cTDN account or will post a reply.
Please note that anyone who will contact you, will not have access to your email address initially but only after you have replied back to them.  

 


@cAlgo_Fanatic

cAlgo_Fanatic
03 Sep 2013, 11:34

RE:

johnswentworth said:

I find that when I set many takeprofits, the PositionClosed event does not consistently fire. In fact, the function is simply not called on takeprofit execution almost as often as it is called. As a result, I must either set limit positions and then pay spreads to close them, or abandon an event-driven architecture and query every second to see whether a takeprofit has executed.

Please explain your algorithm or send us your code or relevant code snippet to engage@spotware.com in order to investigate. 


@cAlgo_Fanatic

cAlgo_Fanatic
03 Sep 2013, 11:12 ( Updated at: 15 Jan 2024, 14:51 )

RE:

johnswentworth said:

I have seen many errors due to network connectivity and to business constraints. I have never seen OnError fire. What errors is it supposed to handle?

Please see [/api/errorcode].


@cAlgo_Fanatic

cAlgo_Fanatic
03 Sep 2013, 11:03

RE:

kricka said:

Hi,

Would like the feature to be able to stop other robots from a main robot. The purpose of doing this is strictly to have control over other robots not placing new positions and orders when certain criteria is met. 

Thanks..

Thank you for the suggestion. We are aware of the necessity of this feature and it is in our plans for future implementation.  


@cAlgo_Fanatic

cAlgo_Fanatic
03 Sep 2013, 11:00

RE: The link to the example is broken

Garcho said:

Hello, 

Is there a way to modify the target price in a pending order. The link to the workaround is broken. 

 

Best regards, 

The link is fixed. Please try again.


@cAlgo_Fanatic