Topics
28 Jan 2014, 17:41
 3200
 1
19 Jan 2014, 17:03
 3010
 4
12 Dec 2013, 14:48
 2038
 1
10 Sep 2013, 17:45
 5228
 6
Replies

Cerunnos
09 Nov 2013, 11:48

RE:

jhtrader said:

I would like to know how to have a robot that opens positions in the Demo account and then open positions in the live account.. So switch between accounts... managing positions in two separate accounts.

 

 

I had the same problem. You can not access multiple accounts with a single robot. But you run a robot with a demo account and the other on another cAlgo instance with your live account. And the two robots communicating with each other via a bridge. I use the third-party software RobotLink (scyware.com).


@Cerunnos

Cerunnos
05 Nov 2013, 10:32

Winning trades 68 / 69 ! One can hardly believe :-)
What do you mean by price analysis without indicators ? Do you mean price action? Are you working with the confluence of several parameters such as S&R, FTA, engulfing bars (BUEB / BEEB) etc.?


@Cerunnos

Cerunnos
05 Nov 2013, 08:29

RE:

Hyperloop said:

I know we can use MarketSeries.Close.LastValue to obtain the close value last bar, but how do we get the value of the close, say 5 bars ago?

Index = MarketSeries.Close.Count;
... MarketSeries.Close[Index-5]

 


@Cerunnos

Cerunnos
01 Nov 2013, 22:46

RE: RE:

Hyperloop said:

Cerunnos said:

I am also of the opinion that there should exist only a few "miracle machines" that make constant profits over several years without changing the settings. My current live-robot has almost 30 parameters and because of the market dynamics I'll have to change the settings after a few months ..

If it's not too much to ask, how do you go about knowing when to change these settings? Not to mention to what?

If the backtesting results for a shorter period with adapted settings are much better than in comparison to the live robot. Then in my view it's time for a change ... Or not?


@Cerunnos

Cerunnos
01 Nov 2013, 20:33

RE:

bp2012 said:

Yes. I checked the notifications and sound options in both cAlgo and cTrader.

Does the code sample work for you? I hear nothing for the initialize, but if I uncomment the SendAlert call in the calculate method, I hear the sound file.

Strange. But it is important that it works with Calculate () :-)
With OnStart() it works too...


@Cerunnos

Cerunnos
01 Nov 2013, 20:00

Are the following options enabled:
cAlgo / cTrader -> preferences -> sounds
                         -> notifications -> show all


@Cerunnos

Cerunnos
01 Nov 2013, 19:39

RE:

bp2012 said:

My apologies if I've missed the answer in the documentation. I've searched the APIs and forums and couldn't find an answer to my question. Calling Notification.PlaySound(...) will play a sound but does not allow for a visual pop up alert. So it seems that if the user is not within earshot, they simply miss the alert. But let's assume that they hear the alert and come to their computer. They have 10 charts open, how will they know which chart generated the sound?

So it seems that email alerts are the only way to truly inform the user of an alert. That doesn't feel realtime enough for me. Too many things can get in the way to cause an email to not appear timely enough to capture a trade opportunity.

Is there perhaps a notifications history that we can write to? Can we log a notification to the journal tab? I haven't been able to find anything of that nature. It leaves me having to send an email, play a sound file, and then write to a log file. When the user hears the sound played they can check the log file. But that seems unwieldy.

I'd be very grateful if someone could point me in a better direction.I feel like I am missing something fundamental.

-bp

Pop up message box: /forum/calgo-reference-samples/475


@Cerunnos

Cerunnos
01 Nov 2013, 14:14

I am also of the opinion that there should exist only a few "miracle machines" that make constant profits over several years without changing the settings. My current live-robot has almost 30 parameters and because of the market dynamics I'll have to change the settings after a few months ..


@Cerunnos

Cerunnos
01 Nov 2013, 11:17

Great work! From such a drawdown I still dream - my currently stands at just over 10%. Maybe you should use realistic commissions and because of your low number of trades 2 years of backtesting would be no disadvantage. Can you tell us something more about your highly successful trading system? Which indicators do you use?


@Cerunnos

Cerunnos
30 Oct 2013, 09:54

RE: Stop robot

jeex said:

Following this matter: is it possible to stop a robot by code at a certain point?

You can stop robot execution with stop().


@Cerunnos

Cerunnos
30 Oct 2013, 09:41

But maybe you should check again the parameters. For the correct settings and improvements do I need a few more days. With turtle soup I actually meant the opposite strategy :-)


@Cerunnos

Cerunnos
30 Oct 2013, 00:17

RE:

jeex said:

That was a good laugh. I build the exact Turtle method as a Robot. According to the "legend" that was the essence of Turtle trading: machine like. Not being lead by emotions.

The turtle bot served both systems based on de Donchian channel. Tested them on several pairs and commodities. In all cases a straight and narrow line down hill.

Then you have to eat the turtle soup ;-)


@Cerunnos

Cerunnos
29 Oct 2013, 16:41

Thread about the ability to communicate between robots: 

/forum/cbot-support/1781


@Cerunnos

Cerunnos
29 Oct 2013, 10:26

RE:

jeex said:

 var koopn = new MarketOrderRequest(TradeType.Buy, lots);
 koopn.SlippagePips = 1;
 koopn.Label = _LABEL;
 Trade.Send(koopn);

After the example above, i would like to get the object of this trade as a Position, if the marketorderrequest is executed. Is there a shortcut?

Like:

Position pos = koopn...

 

private Position pos_koopn;
...
protected override void OnPositionOpened(Position openedPosition)
        {
          if(openedPosition.Label == _LABEL)   
            pos_koopn = openedPosition;
        }
        
      
          


@Cerunnos

Cerunnos
29 Oct 2013, 08:33

RE:

Hyperloop said:

Hi,

I'm just wondering if it's possible to use another Robot (.algo) as a reference and use its methods.

Many thanks. :)

Hi!
Following variant did not work for me: /forum/cbot-support/219
Now I'm using a third-party software (scyware.com). So I can communicate between different robots (also on different instances of cAlgo) . Alternatively you can use a boolean value stored in an external text file which can be read by the other robot. For example:  tradeIsAllowed == true -> begin trading on second robot


@Cerunnos

Cerunnos
28 Oct 2013, 14:00

RE: RE:

breakermind said:

Hi,

exactly as you write.


Maybe the admin does not know it :D:D:D:D

Admin can not know what is intellectual property, maybe want to learn ...

 

 

"...intellectual property..." simply delicious :-) :-) :-)
 


@Cerunnos

Cerunnos
24 Oct 2013, 15:15

RE:

Spotware said:

The results may depend on the robot logic. If you like send us the code or code snippet to engage@spotware.com.

I don't think so. My Robot also runs on my VPS (demo account) and in the past two days three new orders have been closed ...


@Cerunnos

Cerunnos
21 Oct 2013, 18:54

RE:

Futuresmo said:

Thanks for response.

The point is that i want to have set stop immediately when opening with position, so opening and modifying position seem like one step too far.

Will try MarketOrderRequest(), also SellStop and BuyStop() methods can serve the purpose.

 

 

 

 

This should succeed with Market Order Request (). With Trade.ModifyPosition () I had problems when using a trailing stop. No SL was set twice for some reason!


@Cerunnos

Cerunnos
21 Oct 2013, 13:07

RE: RE: RE: RE:

virtuesoft said:

breakermind said:

Hello,

somehow it seems to me that none of you have earned nothing for those of your works
if you do have such secrets.
it's ridiculous to put the results of the strategy without code.

buahahaha ridiculous .... bye

Okay. So let me get this straight. It's ridiculous to post your results without the code. However, it isn't ridiculous to give away the code to your successful strategy for nothing in return, with the added risk that if too many people use your code it may completely ruin your strategy. I'm sorry but that doesn't make sense.

I've been a C# developer for around 8 years and a trader for 3 years. The skills I have are my edge over the market. I only have one successful robot, which took me months to develop and test. However, I've probably coded around 100 different robots over the past year or so. I'm not going to give away my only successful robot for free unless I think that I'm getting something else equally as good in return. I've worked too hard on my robot to do this. If it was easy to develop a successful robot I might think differently.

I fully agree with you. But a few interested parties could work together to develop a new robot and all in this forum would benefit from it (like the great project by user nobulart)...


@Cerunnos

Cerunnos
21 Oct 2013, 12:54

RE: RE: RE:

breakermind said:

Hello,

somehow it seems to me that none of you have earned nothing for those of your works
if you do have such secrets.
it's ridiculous to put the results of the strategy without code.

buahahaha ridiculous .... bye

Indeed !
buahahaha ridiculous .... bye my friend

 


@Cerunnos