IntradingCapital's avatar
IntradingCapital
IntradingCapital's avatar

Info

Username:IntradingCapital
Name:IntradingCapital
Member since: 19 Feb 2016

About

None

Signature

None

Last Forum Posts

@I share my development . I desire to be helpful:  20 Feb 2016, 04:41


the system will copy this site. In principle was hard to make a profit , and after days of parameter changes and thousands of backtests , I think I managed to find a stable system. who cares , I'll share ! I could not test it on demo because just finished and Saturday .  think that would work ?

@I need a simple help:  19 Feb 2016, 06:31


This post was removed by moderator because it duplicates another post. /forum/cbot-support/8286?page=1#1

@I need a simple help:  19 Feb 2016, 06:30


do not know if this will be the right place because I am new to the forum. I appreciate who could help me with this issue: I need to modify the CBOT Sample Martingale just open positions for the opening of the next candle. because it opens an operation after closing the previous one, and I need to wait for the opening of the next candle to open a new order. someone could help me?

This is the code:

namespace cAlgo
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class SampleMartingalecBot : Robot
    {
        [Parameter("Initial Quantity (Lots)", DefaultValue = 1, MinValue = 0.01, Step = 0.01)]
        public double InitialQuantity { get; set; }

        [Parameter("Stop Loss", DefaultValue = 40)]
        public int StopLoss { get; set; }

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

        private Random random = new Random();

        protected override void OnStart()
        {
            Positions.Closed += OnPositionsClosed;

            ExecuteOrder(InitialQuantity, GetRandomTradeType());
        }

        private void ExecuteOrder(double quantity, TradeType tradeType)
        {
            var volumeInUnits = Symbol.QuantityToVolume(quantity);
            var result = ExecuteMarketOrder(tradeType, Symbol, volumeInUnits, "Martingale", StopLoss, TakeProfit);

            if (result.Error == ErrorCode.NoMoney)
                Stop();
        }

        private void OnPositionsClosed(PositionClosedEventArgs args)
        {
            Print("Closed");
            var position = args.Position;

            if (position.Label != "Martingale" || position.SymbolCode != Symbol.Code)
                return;

            if (position.GrossProfit > 0)
            {
                ExecuteOrder(InitialQuantity, GetRandomTradeType());
            }
            else
            {
                ExecuteOrder(position.Quantity * 2, position.TradeType);
            }
        }

        private TradeType GetRandomTradeType()
        {
            return random.Next(2) == 0 ? TradeType.Buy : TradeType.Sell;
        }
    }
}

thanks for the help Estefano Gigli Buenos Aires. Argentina

Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.

No uploaded.

Warning! Executing cBots downloaded from this section may result in loss of funds. Use them at your own risk.
paid  25 May 2021
    SMART GRID IS A EPIC SYSTEM IN CTRADER WITH MORE THAN 10K DOWNLOADS   Smart Grid Robot | Algorithmic Forex Trading | cTrader Community       This algorithm has been developed by a team that focused purely on making an efficient grid system that can be controlled with countless variables in money management. INTRADING CAPITAL WORK FOR DEVELOP THE BEST VERSION  OUR TEAM HAS DEVELOPED THE GRID FROM ITS BASES AND IMPLEMENTED RISK AND PROFIT MANAGER FOR OPTIMIZE THE ALGO   THE SYSTEM PRESENTS AN INFINITY OF VARIABLES. THE PROFITS OF A GOOD CONFIGURATION CAN BE SUPRISINGLY EFFICIENT   The algorithm has the following management functions:  Stop loss in USD and% Take profit in USD and Points Function wait x number of candles to restart the operation after the stop loss        THE GRID NOT GENERATE MARGIN CALL  MAXIMUM DRAWDOWN IN USD OR % CONTROL THE RISK AND RETURN THE GRID   WE DELIVER THE EXECUTABLE VERSION OF THE ALGORITHM FOR: US$ 29.00 TO BUY: IN GUMROAD UNDER THE PUBLICATION   TO PAY WITH CRYPTO CONTACT US: intradingcapital@gmail.com VIDEO: 20210523_173114 20210523_174721     BUY WITH BANK CARD IN GUMROAD UNDER THE PUBLICATION OR CONTACT US TO PAY WITH CRYPTO INTRADINGCAPITAL@GMAIL.COM                                                                                                                                    BUY AND DOWNLOAD HERE Smart Grid whit Risk and Profit Manager