Replies

gb1980be
18 Oct 2013, 23:51

Hi MRSV,

A good way to follow with your robot isn't to add a SL. Trust me.

Robot forex is a martingale. So your SL activated suppose that you arrive to the end of your 5th position opened without gain.

With a martingale robot, your robot will follow a way to the end of the max count positions settings (here is 5). And after ?

Imagine, the robot opened 5 positions (10k, 20k, 30k, 40k & 50k buy or sell). And after... the market never comes in the other way. You loose your money !

A good way to follow is to add something in the "controlseries" but not a SL.

In the control series, try to makes the robot, after your pipstep (300 here) overtaken, open a 6th position but in the other way with 70k of more to limit the loss.

And then, try to make your robot begin @ the startvolume.

If you do that, your robot will be a success.

 private void ControlSeries()
        {
            int _pipstep, NewVolume, Rem;
            int BarCount = 25;
            int Del = MaxOrders - 1;
             
            if(PipStep == 0)
                _pipstep = GetDynamicPipstep(BarCount, Del);
            else
                _pipstep = PipStep;
             
            if(Account.Positions.Count < MaxOrders)
                switch(GetPositionsSide())
                {
                    case 0:
                        if(Symbol.Ask < FindLastPrice(TradeType.Buy) - _pipstep * Symbol.PointSize)
                        {
                            NewVolume = Math.DivRem((int)(FirstLot + FirstLot*Account.Positions.Count), LotStep, out Rem) * LotStep;
                            if(!(NewVolume < LotStep))
                                Trade.CreateBuyMarketOrder(Symbol, NewVolume);
                        }
                    break;
                    case 1:
                        if(Symbol.Bid > FindLastPrice(TradeType.Sell) + _pipstep * Symbol.PointSize)
                        {
                            NewVolume = Math.DivRem((int)(FirstLot + FirstLot*Account.Positions.Count), LotStep, out Rem) * LotStep;
                            if(!(NewVolume < LotStep))
                                Trade.CreateSellMarketOrder(Symbol, NewVolume);
                        }
                    break;
                }
        }

Try to duplicate this serie (case 0 and case 1).

But inverse the Trade.CreateBuyMarketOrder to a Trade.CreateSellMarketOrder.

It is just a key for you to begin.


@gb1980be

gb1980be
17 Oct 2013, 18:54 ( Updated at: 21 Dec 2023, 09:20 )

I agree with MRSV. It's the goal of a forum : exchange advices and share our knowledge.

Here is my robot (start with 1000€) but only show pictures of profitable robot has no sense.

 

 

 

 


@gb1980be

gb1980be
16 Oct 2013, 22:45

Hi Wisek,

Your robot looks good and profitable :-) Good job mate.

But without the settings, it's hard to evaluate it.

SL ? TP ? ... Martingale ? what is the strategy ?

Can you share it to the community ?

 

 


@gb1980be