Gold cbot no Loss by> Durrani free

by sameershaikh.ss13477 in category Trend at 30/07/2022

always use 1 minute or 5 minute chart (candlestick)

always use 0.01 lot for good returns

only work on XAUUSD 

open and close bot on same day after 24 hours or after sufficient profit 

close the bot after the target is achieved


Warning! Executing the following cBot may result in loss of funds. Use it at your own risk.
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.
Formula / Source Code
Language: C#
Trading Platform: cAlgo
using cAlgo.API;
using cAlgo.API.Indicators;
using System;
using System.Linq;

namespace cAlgo.Robots
    [Robot(AccessRights = AccessRights.None)]
    public class NdnghiaMACD : Robot
        private MacdCrossOver _MACD;

        [Parameter("Initial Volume Percent", DefaultValue = 0.01, MinValue = 0.01)]
        public double InitialVolumePercent { get; set; }

        [Parameter("Period", DefaultValue = 1100)]
        public int Period { get; set; }

        [Parameter("Long Cycle", DefaultValue = 2)]
        public int LongCycle { get; set; }

        [Parameter("Short Cycle", DefaultValue = 1)]
        public int ShortCycle { get; set; }

        [Parameter("Stop Loss", DefaultValue = 200)]
        public int StopLoss { get; set; }
        [Parameter("Take Profit", DefaultValue = 200)]
        public int TakeProfit { get; set; }

        [Parameter("Signal-line crossover true:if Signal-line crossover false: Zero crossover", DefaultValue = true)]
        public bool IsSignalLineCrossover { get; set; }

        protected override void OnStart()
            _MACD = Indicators.MacdCrossOver(LongCycle, ShortCycle, Period);

        protected override void OnBar()
            var volumne = Math.Floor(Account.Balance * 0 * InitialVolumePercent / 100) + 1;


                if (_MACD.MACD.Last(2) < _MACD.Signal.Last(2) && _MACD.MACD.Last(1) > _MACD.Signal.Last(1))
                    var position = Positions.Find("NdnghiaMACD");
                    if (position != null && position.TradeType == TradeType.Sell)

                    ExecuteMarketOrder(TradeType.Buy, Symbol.Name, volumne, "NdnghiaMACD", 0, 60);

                    // ExecuteMarketOrder(TradeType.Buy, Symbol.Name, volumne, "NdnghiaMACD", StopLoss, TakeProfit);

                if (_MACD.MACD.Last(2) < _MACD.Signal.Last(2) && _MACD.MACD.Last(1) > _MACD.Signal.Last(1))
                    var position = Positions.Find("NdnghiaMACD");
                    if (position != null && position.TradeType == TradeType.Buy)

                    ExecuteMarketOrder(TradeType.Sell, Symbol.Name, volumne, "NdnghiaMACD", 0, 60);
                    // ExecuteMarketOrder(TradeType.Sell, Symbol.Name, volumne, "NdnghiaMACD", StopLoss, TakeProfit);






sameershaikh.ss13477 - July 30, 2022 @ 14:54

only use on 1 minute and 5 minute 


use 0.01 lot size

evgrinaus - July 31, 2022 @ 08:12

Looks like a Martingale system?

sameershaikh.ss13477 - July 31, 2022 @ 11:28

its hedging strategy 


JFXLive - July 31, 2022 @ 20:39

Problem is, it keeps on booking small profits...and at the same time, it will be accumulating loosing trades as Floating Negative Balance. It will eventually blow the account.  Daily reset of the Bot is something to test.

sameershaikh.ss13477 - July 31, 2022 @ 21:14

Rule: Daily closing at 5 percent or 10 percent gain 

start cBot at tokyo session or as per your risk no 1 cbot  happy journey

sameershaikh.ss13477 - July 31, 2022 @ 21:17


account size is 10000 Dollar lot size 0.50 lot max 

means 0.50percent risk per cbot trade

padik11 - August 01, 2022 @ 10:26

Is the stop loss hidden from the broker or is it removed / sent?

katebuilding - August 02, 2022 @ 14:42

Thanks for the post! The world does not stand still and I think that bots are a very good invention. It can be useful in many businesses and in life. I also liked It is very convenient to use, you can communicate with people from different cities and countries, which is very interesting.

celsodonini - August 04, 2022 @ 14:36

Orders are coming in without stop loss, how do I activate stop in bot?

padik - August 05, 2022 @ 21:05

The stop loss activates itself at the set value. Test a few days days and you will see how the account is reset.

celsodonini - August 18, 2022 @ 05:27

sameershaikh.ss13477 Congratulations on the robot, I've been running it for a week without loss. One question, can you insert into the schedule a command to close all orders when you reach profit?

sameershaikh.ss13477 - August 27, 2022 @ 22:49

celsodonini profits have to be closed after target achieved manually 

and bot is running well any problem


pewiyit443 - August 29, 2022 @ 19:02

Nice bot, thanks. I use it to spend less time and to automate the process. This link will also help you to enjoy the process

gmkenneyy - September 03, 2022 @ 20:16

Anything multiplied by zero would equal zero

Your formula for volume is a bit flawed "Account.Balance * 0 * InitialVolumePercent" - The zero should be 1

DonDemon - September 06, 2022 @ 15:20

Any chance to limit the open orders with max open positions or something like that?

Great bot thank you..:)

ciyep55675 - September 07, 2022 @ 14:29

Wendy's is one of America's favorite fast-food restaurants, it was founded in 1969, and since then, it has been looking for the best mechanisms to keep its customers happy. However, Apple Pay is not part of their payment methods - does wendy's take apple pay

tomc52856 - September 09, 2022 @ 14:24

Gold options expire at the close of trading four business days prior to the end of the previous month of the option month.

cuervotorres.r - September 09, 2022 @ 16:21

Man, this is great, it really works no matter what the price does. Floating drowdown stays more or less the same throughout the day, but the gains add up over time and always outweigh it. With an account of 10,000 and 0.01 lots it works perfectly. Starting with the Tokyo session and turning it off an hour or two before the next one. It's really great. Thank you (I have been using it for 10 days and all of them have been a significant gain)

tjhurry - September 14, 2022 @ 13:45

Hi, how can you increase the lot size to 0.02, 0.05, and so on? Nice cbot by the way thanks.

cuervotorres.r - September 14, 2022 @ 19:54

But let me tell you something, if you set the tp to 10pips the profit is much more sustained and healthy. Stop holding many failed trades throughout the day, hold much less, that allows you to have a much healthier floating drowdown and always have liquidity to open new trades during the day. Also being able to always follow the price closely and have a profit when you turn off at any time, without waiting. And the profit in the end will be similar, you are taking profit from all the micro movements continuously the same. Just replace the "60s" with "10s" and you're good to go. And don't use the automatic backtest. Use it for a few days in demo better. Looks very different. :)

cuervotorres.r - September 14, 2022 @ 20:04

tjhurry If you cannot directly from the settings you can duplicate the bot and replace the default values ​​from the code. Find the number that matches the lots you are buying and simply change the number (Duplicate it and rename the copy, try not to break anything)

cuervotorres.r - September 14, 2022 @ 23:22

tjhurry well, that doesn't work, but if in each instance it operates with 0.01 lots what you can do is start two or three instances at the same time, it's the same

lakshminarayana - October 10, 2022 @ 13:15

Hey guys, 

Thank you for preparing such a great post and you guys are truly talented. In recent times im researching on something. I have got that here. im so great full to you guy's. At the same time you can visit my website which is useful yo train your employees. Here is the link: Corporate Learning

w.alexander3105 - October 11, 2022 @ 10:12

Thanks for such a pleasant post. This post is loaded with lots of useful information. Keep it up. If you are looking for the best information and suggestions related to sulphur manufacturers then visit us.

ekram.ali - November 18, 2022 @ 11:50

I am testing this bot on a demo account but its not profitable. Anything I am missing. I run the bot at the start of Tokyo session and wait for 5-10 percent profit on a $1000 ac with .01 lot but it never achieves it.

Any help would be appreciated.

Thanks nd Regards!