Profitable robot - It is posible from $ 1000 to 45000 in one week ?

Created at 20 Oct 2013, 16:47
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
breakermind's avatar

breakermind

Joined 17.07.2013

Profitable robot - It is posible from $ 1000 to 45000 in one week ?
20 Oct 2013, 16:47


Hello,

This is my simple robot F@#$Forex

Is it possible (one week test)?

 

this is code (can someone test it):

 

// -------------------------------------------------------------------------------------------------
//
//    F@#$Forex Copyright © breakermind.com
//
//    This robot is intended to be used as a sample and does not guarantee any particular outcome or
//    profit of any kind. Use it at your own risk.
//    
//    Start Monday 00:00:00 Stop Friday or when earn 
//    Monday to Friday robot tested M5
// -------------------------------------------------------------------------------------------------

using System;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Requests;
using cAlgo.Indicators;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC)]
    public class SampleTrendRobot : Robot
    {

//=====================================================================================================
// Parametrs
//=====================================================================================================
        [Parameter("MA Type")]
        public MovingAverageType MAType { get; set; }

        [Parameter()]
        public DataSeries SourceSeries { get; set; }

        [Parameter("Slow Periods", DefaultValue = 10)]
        public int SlowPeriods { get; set; }

        [Parameter(DefaultValue = 10000, MinValue = 0)]
        public int Volume { get; set; }

        private MovingAverage slowMa;
        private Position position;
        private double daystart;

//=====================================================================================================
// Trailing Parametrs
//=====================================================================================================
        [Parameter("Stop Loss (pips)", DefaultValue = 25)]
        public int StopLoss { get; set; }

        [Parameter("Take Profit (pips)", DefaultValue = 25)]
        public int TakeProfit { get; set; }

        [Parameter("Trigger (pips)", DefaultValue = 5)]
        public int Trigger { get; set; }

        [Parameter("Trailing Stop (pips)", DefaultValue = 5)]
        public int TrailingStop { get; set; }


        private Position _position;


//=====================================================================================================
// OnStart
//=====================================================================================================
        protected override void OnStart()
        {
            slowMa = Indicators.MovingAverage(SourceSeries, SlowPeriods, MAType);
            daystart = Symbol.Ask;
        }

//=====================================================================================================
// OnTick
//=====================================================================================================
        protected override void OnTick()
        {
            if (Trade.IsExecuting)
                return;

            int lastIndex = slowMa.Result.Count - 1;
            int prevIndex = slowMa.Result.Count - 3;

            double currentSlowMa = slowMa.Result[lastIndex];
            double previousSlowMa = slowMa.Result[prevIndex];

            bool isLongPositionOpen = position != null && position.TradeType == TradeType.Buy;
            bool isShortPositionOpen = position != null && position.TradeType == TradeType.Sell;

            if (previousSlowMa < daystart && currentSlowMa > daystart && !isLongPositionOpen)
            {
                ClosePosition();
                Buy();
            }

            if (previousSlowMa > daystart && currentSlowMa < daystart && !isShortPositionOpen)
            {
                ClosePosition();
                Sell();
            }


//=====================================================================================================
// Trailing
//=====================================================================================================
            if (_position == null)
                return;

            double distance = _position.EntryPrice - Symbol.Ask;

            if (distance >= Trigger * Symbol.PipSize)
            {
                double newStopLossPrice = Symbol.Ask + TrailingStop * Symbol.PipSize;
                if (_position.StopLoss == null || newStopLossPrice < _position.StopLoss)
                {
                    Trade.ModifyPosition(_position, newStopLossPrice, _position.TakeProfit);
                }
            }

        }

//=====================================================================================================
// onPositionsOpened
//=====================================================================================================
        protected override void OnPositionOpened(Position openedPosition)
        {
            _position = openedPosition;

            double? stopLossPrice = null;
            double? takeProfitSize = null;

            if (StopLoss != 0)
                stopLossPrice = _position.EntryPrice + StopLoss * Symbol.PipSize;

            if (TakeProfit != 0)
                takeProfitSize = _position.EntryPrice - TakeProfit * Symbol.PipSize;

            Trade.ModifyPosition(openedPosition, stopLossPrice, takeProfitSize);
        }

//=====================================================================================================
// onPositionsClosed
//=====================================================================================================
        protected override void OnPositionClosed(Position closedPosition)
        {
            // Stop();
        }

//=====================================================================================================
// functions
//=====================================================================================================
        private void ClosePosition()
        {
            if (position != null)
            {
                Trade.Close(position);
                position = null;
            }
        }

        private void Buy()
        {
            Trade.CreateBuyMarketOrder(Symbol, Volume);
        }

        private void Sell()
        {
            Trade.CreateSellMarketOrder(Symbol, Volume);
        }


    }
}

 

Thanks and good luck :]


@breakermind
Replies

Old Account
20 Oct 2013, 18:17

Sorry, but i don't find this robot proffiteble. I think you only got lucky, so i don't thin you wil get simular results in the future. I backtested it one year whit the setings you show in the picture and it ended up whit -6600 dollars. I will try testing it whit some other setting too.

 


@Old Account

breakermind
20 Oct 2013, 20:27

RE:

MRSV said:

Sorry, but i don't find this robot proffiteble. I think you only got lucky, so i don't thin you wil get simular results in the future. I backtested it one year whit the setings you show in the picture and it ended up whit -6600 dollars. I will try testing it whit some other setting too.

 

Hello,

!!!! You dont read this i think:

//    Start Monday 00:00:00 Stop Friday or when earn

//    Monday to Friday robot tested M5

it is monday to friday robot :]

start on monday stop in friday

Thanks


@breakermind

Cerunnos
20 Oct 2013, 20:55

Perhaps some improvements are still needed :-)

Starting capital: 1000,-
Loss in 4 weeks: -38758,-
Maximum loss: -65000,-
Max drawdown: 6018%


@Cerunnos

breakermind
20 Oct 2013, 21:21

RE:

Cerunnos said:

Perhaps some improvements are still needed :-)

Starting capital: 1000,-
Loss in 4 weeks: -38758,-
Maximum loss: -65000,-
Max drawdown: 6018%

Hi it maybe ... but

$ 50 000 for the last two months with weeks with loss (-$1000)

how can you lose more than you have in your account?

ok it does not matter :)

whether I asked just this week that the test also distinguished colleagues have the same results as me?

Thanks adn bye.


@breakermind

Old Account
20 Oct 2013, 22:23

30/9/2013 - 4/10/2013

-59632 USD

At this point I see this robot as too risky. But keep ut the good work.

 


@Old Account

Cerunnos
20 Oct 2013, 22:39

RE: RE:

breakermind said:

Hi it maybe ... but

$ 50 000 for the last two months with weeks with loss (-$1000)

how can you lose more than you have in your account?

ok it does not matter :)

whether I asked just this week that the test also distinguished colleagues have the same results as me?

Thanks adn bye.

Right, with the real account such losses are not possible -  your account balance is after three days only at zero :-)
It's not about the maximum profit in the shortest possible time with high risk. It's about steady profits over a longer period of time with minimal risk :-)


@Cerunnos

Kate
21 Oct 2013, 09:43

You can modify your robot so that logic stays the same, but it's possible to backtest it on whole period. Just initialize everything you need on every Monday, not on robot start. And then we will see the real picture.


@Kate

breakermind
21 Oct 2013, 10:20

RE:

Kate said:

You can modify your robot so that logic stays the same, but it's possible to backtest it on whole period. Just initialize everything you need on every Monday, not on robot start. And then we will see the real picture.

Hi,
yes you are right.

This forum is hopeless and I know that.

Please admin delete my profile posts and indicator from this forum !!!


@breakermind

Cerunnos
21 Oct 2013, 10:30

RE: RE:

breakermind said:

Kate said:

You can modify your robot so that logic stays the same, but it's possible to backtest it on whole period. Just initialize everything you need on every Monday, not on robot start. And then we will see the real picture.

Hi,
yes you are right.

This forum is hopeless and I know that.

Please admin delete my profile posts and indicator from this forum !!!

Hi Breakermind,

this forum is not hopeless. You should just not post half-finished robots. Then there are no misunderstandings ... Stay tuned, you're on the right track!


@Cerunnos

breakermind
21 Oct 2013, 11:03

RE: RE: RE:

Cerunnos said:

breakermind said:

Kate said:

You can modify your robot so that logic stays the same, but it's possible to backtest it on whole period. Just initialize everything you need on every Monday, not on robot start. And then we will see the real picture.

Hi,
yes you are right.

This forum is hopeless and I know that.

Please admin delete my profile posts and indicator from this forum !!!

Hi Breakermind,

this forum is not hopeless. You should just not post half-finished robots. Then there are no misunderstandings ... Stay tuned, you're on the right track!

 

Hi,
Yeah, it not a forum just "people".

That was the question:
Is it possible (one week test)?
not year, 4 weeks etc ...

and where I wrote that this robot is completed?

Thanks

Admin Please remove my profile, posts and indicators immediately!

 


@breakermind

Cerunnos
21 Oct 2013, 11:32

I agree with you! You're just too good for this forum. Leave this hopeless area. You should instead go to the casino ;-) Good luck!


@Cerunnos

breakermind
21 Oct 2013, 11:36

RE:

Cerunnos said:

I agree with you! You're just too good for this forum. Leave this hopeless area. You should instead go to the casino ;-) Good luck!

Yes of course.

But first let Admin delete my posts and indicators.

Thanks and bye and good luck.


@breakermind

Cerunnos
21 Oct 2013, 11:41

RE: RE:

breakermind said:

Cerunnos said:

I agree with you! You're just too good for this forum. Leave this hopeless area. You should instead go to the casino ;-) Good luck!

Yes of course.

But first let Admin delete my posts and indicators.

Thanks and bye and good luck.

I hope he does not delete it - your postings are simply delicious and should definitely be archived :-) Bye!


@Cerunnos

jeex
12 Nov 2013, 22:24 ( Updated at: 21 Dec 2023, 09:20 )

nevertheless

Tested the robot. Glas i did it in a demo account...


@jeex

breakermind
13 Nov 2013, 11:32

RE: nevertheless

Hi,

It's like the Lord Admin already learned, let it delete this post too

: D: D: D

 


@breakermind

breakermind
13 Nov 2013, 11:58

RE: RE: nevertheless

breakermind said:

Hi,

It's like the Lord Admin already learned, let it delete this post too

: D: D: D

 

hmm maybe admin can also block user?

Let see ...

dukascopy.com rules cool strategy with 100% per month ....


@breakermind

... Deleted by UFO ...

webarmen4
18 Oct 2020, 20:23

RE:

is it true for now"? 

 


... Deleted by UFO ...

... Deleted by UFO ...